Skip to content

Commit 07e9420

Browse files
updated the string in tests
1 parent 79c8408 commit 07e9420

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/commands/scan_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const (
6363
SCSScoreCardError = "SCS scan failed to start: Scorecard scan is missing required flags, please include in the ast-cli arguments: " +
6464
"--scs-repo-url your_repo_url --scs-repo-token your_repo_token"
6565
outputFileName = "test_output.log"
66-
noUpdatesForExistingProject = "No tags to update. Skipping project update."
66+
noUpdatesForExistingProject = "No tags or branch to update. Skipping project update."
6767
ScaResolverZipNotSupportedErr = "Scanning Zip files is not supported by ScaResolver.Please use non-zip source"
6868
)
6969

@@ -400,6 +400,7 @@ func TestCreateScanBranches(t *testing.T) {
400400
// Bind cx_branch environment variable
401401
_ = viper.BindEnv("cx_branch", "CX_BRANCH")
402402
viper.SetDefault("cx_branch", "branch_from_environment_variable")
403+
assert.Equal(t, viper.GetString("cx_branch"), "branch_from_environment_variable")
403404

404405
// Test branch from environment variable. Since the cx_branch is bind the scan must run successfully without a branch flag defined
405406
execCmdNilAssertion(t, "scan", "create", "--project-name", "MOCK", "-s", dummyRepo)

0 commit comments

Comments
 (0)