Skip to content

Commit 60ec2bf

Browse files
authored
Merge pull request #3429 from Ankitasw/e2e-test-fix
[E2E] Fix failing tests because of change in cluster names
2 parents 0f18334 + 6647708 commit 60ec2bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/e2e/suites/unmanaged/unmanaged_functional_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
690690
// A private and public subnet is created in this VPC to allow for egress traffic but the workload AWSCluster is configured with
691691
// an internal load balancer and only the private subnet. All applicable resources are restricted to us-west-2a for simplicity.
692692
ginkgo.Describe("External infrastructure, external security groups, VPC peering, internal ELB and private subnet use only", func() {
693-
var specName string
694693
var namespace *corev1.Namespace
695694
var requiredResources *shared.TestResource
695+
specName := "functional-test-extinfra"
696696
mgmtClusterName := fmt.Sprintf("%s-%s", specName, util.RandomString(6))
697697
mgmtClusterInfra := new(shared.AWSInfrastructure)
698698

@@ -703,7 +703,6 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
703703

704704
// Some infrastructure creation was moved to a setup node to better organize the test.
705705
ginkgo.JustBeforeEach(func() {
706-
specName = "functional-test-extinfra-peered-internal-elb"
707706
requiredResources = &shared.TestResource{EC2Normal: 2 * e2eCtx.Settings.InstanceVCPU, IGW: 2, NGW: 2, VPC: 2, ClassicLB: 2, EIP: 5}
708707
requiredResources.WriteRequestedResources(e2eCtx, specName)
709708
Expect(shared.AcquireResources(requiredResources, config.GinkgoConfig.ParallelNode, flock.New(shared.ResourceQuotaFilePath))).To(Succeed())
@@ -941,7 +940,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
941940

942941
ginkgo.Describe("Workload cluster with AWS S3 and Ignition parameter", func() {
943942
ginkgo.It("It should be creatable and deletable", func() {
944-
specName := "functional-test-ignition-parameter"
943+
specName := "functional-test-ignition"
945944
namespace := shared.SetupSpecNamespace(ctx, specName, e2eCtx)
946945
ginkgo.By("Creating a cluster")
947946
clusterName := fmt.Sprintf("%s-%s", specName, util.RandomString(6))

0 commit comments

Comments
 (0)