Skip to content

Commit 2c879eb

Browse files
Remove ubuntu 2004 pro integration tests (#8353)
1 parent e22a0d0 commit 2c879eb

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

integration/tests/custom_ami/custom_ami_test.go

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ var (
4242
customAMIAL2 string
4343
customAMIAL2023 string
4444
customAMIBottlerocket string
45-
customAMIUbuntuPro2004 string
4645
customAMIUbuntuPro2204 string
4746
customAMIUbuntuPro2404 string
4847
)
@@ -81,14 +80,6 @@ var _ = BeforeSuite(func() {
8180
Expect(err).NotTo(HaveOccurred())
8281
customAMIBottlerocket = *output.Parameter.Value
8382

84-
// retrieve Ubuntu Pro 20.04 AMI
85-
input = &awsssm.GetParameterInput{
86-
Name: aws.String(fmt.Sprintf("/aws/service/canonical/ubuntu/eks-pro/20.04/%s/stable/current/amd64/hvm/ebs-gp2/ami-id", params.Version)),
87-
}
88-
output, err = ssm.GetParameter(context.Background(), input)
89-
Expect(err).NotTo(HaveOccurred())
90-
customAMIUbuntuPro2004 = *output.Parameter.Value
91-
9283
// retrieve Ubuntu Pro 22.04 AMI
9384
input = &awsssm.GetParameterInput{
9485
Name: aws.String(fmt.Sprintf("/aws/service/canonical/ubuntu/eks-pro/22.04/%s/stable/current/amd64/hvm/ebs-gp2/ami-id", params.Version)),
@@ -183,28 +174,6 @@ var _ = Describe("(Integration) [Test Custom AMI]", func() {
183174

184175
})
185176

186-
Context("ubuntu-pro-2004 un-managed nodegroups", func() {
187-
188-
It("can create a working nodegroup which can join the cluster", func() {
189-
By(fmt.Sprintf("using the following EKS optimised AMI: %s", customAMIUbuntuPro2004))
190-
content, err := os.ReadFile(filepath.Join("testdata/ubuntu-pro-2004.yaml"))
191-
Expect(err).NotTo(HaveOccurred())
192-
content = bytes.ReplaceAll(content, []byte("<generated>"), []byte(params.ClusterName))
193-
content = bytes.ReplaceAll(content, []byte("<generated-region>"), []byte(params.Region))
194-
content = bytes.ReplaceAll(content, []byte("<generated-ami>"), []byte(customAMIUbuntuPro2204))
195-
cmd := params.EksctlCreateCmd.
196-
WithArgs(
197-
"nodegroup",
198-
"--config-file", "-",
199-
"--verbose", "4",
200-
).
201-
WithoutArg("--region", params.Region).
202-
WithStdin(bytes.NewReader(content))
203-
Expect(cmd).To(RunSuccessfully())
204-
})
205-
206-
})
207-
208177
Context("ubuntu-pro-2204 un-managed nodegroups", func() {
209178

210179
It("can create a working nodegroup which can join the cluster", func() {

0 commit comments

Comments
 (0)