Skip to content

Commit

Permalink
test/e2e: Add the e2e tests for flatcar-sysext
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
  • Loading branch information
sayanchowdhury committed Mar 6, 2024
1 parent d2ad53d commit 390c99e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions test/e2e/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,44 @@ var _ = Describe("Workload cluster creation", func() {
})
})

Context("Creating a Flatcar sysext cluster [OPTIONAL]", func() {
It("With Flatcar control-plane and worker nodes", func() {
clusterName = getClusterName(clusterNamePrefix, "flatcar-sysext")
clusterctl.ApplyClusterTemplateAndWait(ctx, createApplyClusterTemplateInput(
specName,
withFlavor("flatcar-sysext"),
withNamespace(namespace.Name),
withClusterName(clusterName),
withKubernetesVersion(e2eConfig.GetVariable(capi_e2e.KubernetesVersion)),
withControlPlaneMachineCount(1),
withWorkerMachineCount(1),
withControlPlaneWaiters(clusterctl.ControlPlaneWaiters{
WaitForControlPlaneInitialized: EnsureControlPlaneInitializedNoAddons,
}),
withPostMachinesProvisioned(func() {
EnsureDaemonsets(ctx, func() DaemonsetsSpecInput {
return DaemonsetsSpecInput{
BootstrapClusterProxy: bootstrapClusterProxy,
Namespace: namespace,
ClusterName: clusterName,
}
})
}),
), result)

By("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 cluster with spot vms [OPTIONAL]", func() {
It("With spot vm machine deployments", func() {
clusterName = getClusterName(clusterNamePrefix, "spot")
Expand Down

0 comments on commit 390c99e

Please sign in to comment.