Skip to content

Commit

Permalink
Remove WAF smoke test (#4247)
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail authored Jan 20, 2022
1 parent cbe4124 commit 9d2e404
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 61 deletions.
28 changes: 27 additions & 1 deletion private/model/api/smoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,33 @@ type SmokeTestCase struct {
}

var smokeTestsCustomizations = map[string]func(*SmokeTestSuite) error{
"sts": stsSmokeTestCustomization,
"sts": stsSmokeTestCustomization,
"waf": wafSmokeTestCustomization,
"wafregional": wafRegionalSmokeTestCustomization,
}

func wafSmokeTestCustomization(suite *SmokeTestSuite) error {
return filterWAFCreateSqlInjectionMatchSet(suite)
}

func wafRegionalSmokeTestCustomization(suite *SmokeTestSuite) error {
return filterWAFCreateSqlInjectionMatchSet(suite)
}

func filterWAFCreateSqlInjectionMatchSet(suite *SmokeTestSuite) error {
const createSqlInjectionMatchSetOp = "CreateSqlInjectionMatchSet"

var testCases []SmokeTestCase
for _, testCase := range suite.TestCases {
if testCase.OpName == createSqlInjectionMatchSetOp {
continue
}
testCases = append(testCases, testCase)
}

suite.TestCases = testCases

return nil
}

func stsSmokeTestCustomization(suite *SmokeTestSuite) error {
Expand Down
30 changes: 0 additions & 30 deletions service/waf/integ_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions service/wafregional/integ_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d2e404

Please sign in to comment.