Skip to content

Commit b09331d

Browse files
committed
Updated yaml for multi-zone in new test
1 parent 442f9a2 commit b09331d

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

test/e2e/data/infrastructure-cloudstack/v1beta1/cluster-template-second-cluster/cloudstack-cluster.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,12 @@ kind: CloudStackCluster
33
metadata:
44
name: ${CLUSTER_NAME}
55
spec:
6+
zones:
7+
- name: ${CLOUDSTACK_ZONE_NAME}
8+
network:
9+
name: ${CLOUDSTACK_NETWORK_NAME}
10+
account: ${CLOUDSTACK_INVALID_ACCOUNT_NAME}
11+
domain: ${CLOUDSTACK_DOMAIN_NAME}
612
controlPlaneEndpoint:
7-
port: ${CLUSTER_ENDPOINT_PORT_2}
13+
host: ${CLUSTER_ENDPOINT_IP}
14+
port: ${CLUSTER_ENDPOINT_PORT_2}

test/e2e/second_cluster.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,22 @@ func SecondClusterSpec(ctx context.Context, inputGetter func() CommonSpecInput)
8888
It("should successfully add and remove a second cluster", func() {
8989
mgmtClient := input.BootstrapClusterProxy.GetClient()
9090

91-
By("create the first cluster and verify that it's ready")
91+
By("Create the first cluster and verify that it's ready")
9292
createCluster(clusterctl.DefaultFlavor, namespace1, clusterResources1)
9393
Expect(IsClusterReady(ctx, mgmtClient, clusterResources1.Cluster)).To(BeTrue())
9494

95-
By("create the second cluster and verify that it's ready")
95+
By("Create the second cluster and verify that it's ready")
9696
createCluster("second-cluster", namespace2, clusterResources2)
9797
Expect(IsClusterReady(ctx, mgmtClient, clusterResources2.Cluster)).To(BeTrue())
9898

99-
By("delete the second cluster")
99+
By("Delete the second cluster")
100100
dumpSpecResourcesAndCleanup(ctx, specName, input.BootstrapClusterProxy, input.ArtifactFolder, namespace2,
101101
cancelWatches2, clusterResources2.Cluster, input.E2EConfig.GetIntervals, false)
102102

103-
By("verify the second cluster is gone")
103+
By("Verify the second cluster is gone")
104104
Expect(ClusterExists(ctx, mgmtClient, clusterResources2.Cluster)).To(BeFalse())
105105

106-
By("verify the first cluster is still ready")
106+
By("Verify the first cluster is still ready")
107107
Expect(IsClusterReady(ctx, mgmtClient, clusterResources1.Cluster)).To(BeTrue())
108108

109109
By("PASSED!")

0 commit comments

Comments
 (0)