Skip to content

Commit

Permalink
change tests to comply with lack of equals
Browse files Browse the repository at this point in the history
  • Loading branch information
spring1843 committed Mar 15, 2022
1 parent 2179dc6 commit a84e207
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cloudprovider/aws/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ var _ = Describe("Allocation", func() {
Expect(fakeEC2API.CalledWithCreateLaunchTemplateInput.Cardinality()).To(Equal(1))
input := fakeEC2API.CalledWithCreateLaunchTemplateInput.Pop().(*ec2.CreateLaunchTemplateInput)
userData, _ := base64.StdEncoding.DecodeString(*input.LaunchTemplateData.UserData)
Expect(string(userData)).NotTo(ContainSubstring("--use-max-pods=false"))
Expect(string(userData)).NotTo(ContainSubstring("--use-max-pods false"))
})
It("should specify --use-max-pods=false when not using ENI-based pod density", func() {
opts.AWSENILimitedPodDensity = false
Expand All @@ -640,7 +640,7 @@ var _ = Describe("Allocation", func() {
Expect(fakeEC2API.CalledWithCreateLaunchTemplateInput.Cardinality()).To(Equal(1))
input := fakeEC2API.CalledWithCreateLaunchTemplateInput.Pop().(*ec2.CreateLaunchTemplateInput)
userData, _ := base64.StdEncoding.DecodeString(*input.LaunchTemplateData.UserData)
Expect(string(userData)).To(ContainSubstring("--use-max-pods=false"))
Expect(string(userData)).To(ContainSubstring("--use-max-pods false"))
Expect(string(userData)).To(ContainSubstring("--max-pods=110"))
})
Context("Kubelet Args", func() {
Expand All @@ -651,7 +651,7 @@ var _ = Describe("Allocation", func() {
Expect(fakeEC2API.CalledWithCreateLaunchTemplateInput.Cardinality()).To(Equal(1))
input := fakeEC2API.CalledWithCreateLaunchTemplateInput.Pop().(*ec2.CreateLaunchTemplateInput)
userData, _ := base64.StdEncoding.DecodeString(*input.LaunchTemplateData.UserData)
Expect(string(userData)).To(ContainSubstring("--dns-cluster-ip='10.0.10.100'"))
Expect(string(userData)).To(ContainSubstring("--dns-cluster-ip '10.0.10.100'"))
})
})
Context("Instance Profile", func() {
Expand Down

0 comments on commit a84e207

Please sign in to comment.