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 f266732
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 180 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
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ spec:
ports:
- protocol: TCP
port: mysql-port

- direction: in
action: drop
Loading

0 comments on commit f266732

Please sign in to comment.