Skip to content

Commit

Permalink
fix for integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
miryamfoiferCX committed Dec 5, 2024
1 parent c19a987 commit cfde426
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/integration/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,14 @@ func TestScanCreate_ExistingApplicationAndNotExistingProject_CreatingNewProjectA
assert.Assert(t, projectID != "", "Project ID should not be empty")
}

func TestScanCreate_ApplicationDoesntExist_FailScanWithError(t *testing.T) {
func TestScanCreate_WithNewProjectAndApplicationDoesntExist_ShouldFailScanWithError(t *testing.T) {
args := []string{
"scan", "create",
flag(params.ApplicationName), "application-that-doesnt-exist",
flag(params.ProjectName), getProjectNameForScanTests(),
flag(params.ProjectName), "newProject",
flag(params.SourcesFlag), ".",
flag(params.ScanTypes), params.IacType,
flag(params.BranchFlag), "dummy_branch",
flag(params.DebugFlag),
}

err, _ := executeCommand(t, args...)
Expand Down

0 comments on commit cfde426

Please sign in to comment.