Skip to content

Commit

Permalink
example upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
nfuden committed Dec 2, 2024
1 parent c39148b commit 807a1d1
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,12 @@ func (s *testingSuite) TestLargeConfiguration() {
s.testInstallation.Metadata.InstallNamespace)
s.Assertions.NoError(err, "can delete large configuration")

err = s.testInstallation.Actions.Kubectl().DeleteFileSafe(s.ctx, testdefaults.NginxPodManifest)
s.Assertions.NoError(err, "can delete nginx pod")
err = s.testInstallation.Actions.Kubectl().DeleteFileSafe(s.ctx, validation.ExampleUpstream)
s.Assertions.NoError(err, "can delete example upstream")
})

err := s.testInstallation.Actions.Kubectl().ApplyFile(s.ctx, testdefaults.NginxPodManifest)
err := s.testInstallation.Actions.Kubectl().ApplyFile(s.ctx, validation.ExampleUpstream, "-n", s.testInstallation.Metadata.InstallNamespace)
s.Assert().NoError(err)
s.testInstallation.Assertions.EventuallyPodsRunning(s.ctx, testdefaults.NginxPod.ObjectMeta.GetNamespace(), metav1.ListOptions{
LabelSelector: "app.kubernetes.io/name=nginx",
})

err = s.testInstallation.Actions.Kubectl().ApplyFile(s.ctx, validation.LargeConfiguration, "-n",
s.testInstallation.Metadata.InstallNamespace)
s.Assert().NoError(err)
Expand Down

0 comments on commit 807a1d1

Please sign in to comment.