Skip to content

Commit

Permalink
optional flatcar tests will create a loadbalancer
Browse files Browse the repository at this point in the history
- and check if loadbalancer can spin up successfully
  • Loading branch information
nawazkh committed Apr 3, 2023
1 parent 93443fa commit a2435bd
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions test/e2e/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ var _ = Describe("Workload cluster creation", func() {
})
})

Context("Creating a Flatcar cluster [OPTIONAL]", func() {
Context("Creating a Flatcar cluster [OPTIONAL]", Ordered, func() {
It("With Flatcar control-plane and worker nodes", func() {
clusterName = getClusterName(clusterNamePrefix, "flatcar")

g
clusterctl.ApplyClusterTemplateAndWait(ctx, createApplyClusterTemplateInput(
specName,
withFlavor("flatcar"),
Expand All @@ -309,8 +309,28 @@ var _ = Describe("Workload cluster creation", func() {
withControlPlaneWaiters(clusterctl.ControlPlaneWaiters{
WaitForControlPlaneInitialized: EnsureControlPlaneInitialized,
}),
withPostMachinesProvisioned(func() {
EnsureDaemonsets(ctx, func() DaemonsetsSpecInput {
return DaemonsetsSpecInput{
BootstrapClusterProxy: bootstrapClusterProxy,
Namespace: namespace,
ClusterName: clusterName,
}
})
}),
), result)
})

It("can create and access a load balancer", func() {
AzureLBSpec(ctx, func() AzureLBSpecInput {
return AzureLBSpecInput{
BootstrapClusterProxy: bootstrapClusterProxy,
Namespace: namespace,
ClusterName: clusterName,
SkipCleanup: skipCleanup,
}
})
})
})

Context("Creating a ipv6 control-plane cluster [REQUIRED]", func() {
Expand Down

0 comments on commit a2435bd

Please sign in to comment.