Skip to content

Commit

Permalink
test: fix private cluster test
Browse files Browse the repository at this point in the history
  • Loading branch information
jigisha620 committed Sep 16, 2024
1 parent b19c64b commit c08af12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/suites/integration/tags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ var _ = Describe("Tags", func() {
Expect(spotInstanceRequest.Tags).To(ContainElement(&ec2.Tag{Key: lo.ToPtr("TestTag"), Value: lo.ToPtr("TestVal")}))
})
It("should tag managed instance profiles", func() {
if env.PrivateCluster {
Skip("skipping managed instance profiles test for private cluster")
}
nodeClass.Spec.Tags["TestTag"] = "TestVal"
env.ExpectCreated(nodeClass)

Expand All @@ -97,6 +100,9 @@ var _ = Describe("Tags", func() {
))
})
It("should tag managed instance profiles with the eks:eks-cluster-name tag key after restart", func() {
if env.PrivateCluster {
Skip("skipping managed instance profiles test for private cluster")
}
env.ExpectCreated(nodeClass)
env.EventuallyExpectInstanceProfileExists(env.GetInstanceProfileName(nodeClass))

Expand Down

0 comments on commit c08af12

Please # to comment.