Skip to content

Commit

Permalink
[e2e] Enable namedport e2e tests
Browse files Browse the repository at this point in the history
Add back namedport e2e test cases, but only check Securitypolicy
creation/deletion without traffic check.
  • Loading branch information
timdengyun committed May 14, 2024
1 parent 380db33 commit 3ca509e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 517 deletions.
4 changes: 1 addition & 3 deletions test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,7 @@ func applyYAML(filename string, ns string) error {
return nil
}

//Temporarily disable traffic check
/*
// Temporarily disable traffic check
func runCommand(cmd string) (string, error) {

Check failure on line 646 in test/e2e/framework.go

View workflow job for this annotation

GitHub Actions / build

func `runCommand` is unused (unused)
err := wait.PollUntilContextTimeout(context.TODO(), 1*time.Second, defaultTimeout, false, func(ctx context.Context) (bool, error) {
var stdout, stderr bytes.Buffer
Expand All @@ -665,7 +664,6 @@ func runCommand(cmd string) (string, error) {
})
return "", err
}
*/

func deleteYAML(filename string, ns string) error {
cmd := fmt.Sprintf("kubectl delete -f %s -n %s", filename, ns)
Expand Down
Loading

0 comments on commit 3ca509e

Please sign in to comment.