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 13, 2024
1 parent 2713313 commit 35aac17
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 177 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) {
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 35aac17

Please sign in to comment.