Skip to content

Commit

Permalink
Fixing issue with test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrolds committed Nov 22, 2024
1 parent 442e488 commit d07708f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ func (s *testingSuite) TestConfigureVirtualHostOptions() {
// TestConfigureInvalidVirtualHostOptions confirms that an invalid VirtualHostOption is rejected
func (s *testingSuite) TestConfigureInvalidVirtualHostOptions() {
s.T().Cleanup(func() {
output, err := s.testInstallation.Actions.Kubectl().DeleteFileWithOutput(s.ctx, manifestVhoWebhookReject)
s.testInstallation.Assertions.ExpectObjectDeleted(manifestVhoWebhookReject, err, output)
if s.testInstallation.Metadata.ValidationAlwaysAccept {
// delete the VHO
output, err := s.testInstallation.Actions.Kubectl().DeleteFileWithOutput(s.ctx, manifestVhoWebhookReject)
s.testInstallation.Assertions.ExpectObjectDeleted(manifestVhoWebhookReject, err, output)
}
})

err := s.testInstallation.Actions.Kubectl().ApplyFile(s.ctx, manifestVhoWebhookReject)
Expand Down

0 comments on commit d07708f

Please sign in to comment.