Skip to content

Commit

Permalink
feat: changes to improve the E2E Tests covering
Browse files Browse the repository at this point in the history
  • Loading branch information
cxlucas committed Nov 3, 2021
1 parent 1f28569 commit 726999f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions e2e/testcases/e2e-cli-018_scan_exclude-categories.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ func init() { //nolint
Args: []cmdArgs{
[]string{"scan", "--exclude-categories", "Observability,Insecure Configurations", "-s",
"-q", "../assets/queries", "-p", "fixtures/samples/terraform-single.tf"},

[]string{"scan", "-s",
"-q", "../assets/queries", "-p", "fixtures/samples/terraform-single.tf"},
},
},
WantStatus: []int{20, 40},
WantStatus: []int{20},
}

Tests = append(Tests, testSample)
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcases/e2e-cli-031_scan_report-formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ func init() { //nolint
Args: args{
Args: []cmdArgs{
[]string{"scan", "--output-path", "output", "--output-name", "E2E_CLI_031_RESULT",
"--report-formats", "json,sarif,glsast,html",
"--report-formats", "json,SARIF,glsast,Html",
"-q", "../assets/queries", "-p", "fixtures/samples/terraform.tf"},
},
ExpectedResult: []ResultsValidation{
Expand Down
2 changes: 1 addition & 1 deletion e2e/testcases/e2e-cli-039_scan_log-path_log-level.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func init() { //nolint
Args: []cmdArgs{

[]string{"scan", "--log-path", "output/E2E_CLI_039_LOG",
"--log-level", "TRACE",
"--log-level", "Trace",
"-q", "../assets/queries", "-p", "fixtures/samples/terraform-single.tf"},
},

Expand Down
2 changes: 1 addition & 1 deletion e2e/testcases/e2e-cli-043_scan_cloud-provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func init() { //nolint
"--cloud-provider"},

[]string{"scan", "-q", "../assets/queries", "-p", "fixtures/samples/positive.yaml",
"--cloud-provider", "aws"},
"--cloud-provider", "aWs"},
},
},
WantStatus: []int{126, 126, 50},
Expand Down

0 comments on commit 726999f

Please sign in to comment.