From a2435bd9e6d0c23f163a6eed40f2c4cf37b6c9e0 Mon Sep 17 00:00:00 2001 From: Nawaz Hussain K Date: Mon, 3 Apr 2023 15:53:56 -0700 Subject: [PATCH] optional flatcar tests will create a loadbalancer - and check if loadbalancer can spin up successfully --- test/e2e/azure_test.go | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/test/e2e/azure_test.go b/test/e2e/azure_test.go index a7d5aea02ae6..dfdbae787d03 100644 --- a/test/e2e/azure_test.go +++ b/test/e2e/azure_test.go @@ -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"), @@ -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() {