Skip to content

Commit

Permalink
Must delete privileged policy before continuing to next test
Browse files Browse the repository at this point in the history
Signed-off-by: Ziv Nevo <[email protected]>
  • Loading branch information
zivnevo committed Jul 30, 2024
1 parent e79cb7c commit eef3b6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/k8s/test_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ func (s *TestSuite) TestPeerLabels() {
require.Nil(s.T(), cl[0].CreatePrivilegedPolicy(allowCl1))
_, err = cl[1].AccessService(httpecho.RunClientInPod, importedService, false, nil)
require.Nil(s.T(), err)

// privileged policies are not namespaced, so remain after the test's namespace is deleted
require.Nil(s.T(), cl[0].DeletePrivilegedPolicy(allowCl1.Name))
}

func (s *TestSuite) createTwoClustersWithEchoSvc() ([]*util.ClusterLink, *util.Service) {
Expand Down

0 comments on commit eef3b6b

Please sign in to comment.