From 2385b3e608755e8d5103e7850f18f3727326a0c4 Mon Sep 17 00:00:00 2001 From: Jonathan West Date: Thu, 28 Sep 2023 07:55:58 -0400 Subject: [PATCH] RHTAPBUGS-735: fix failing e2e test due to missing target class --- tests-e2e/appstudio/devsandboxdeployment_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests-e2e/appstudio/devsandboxdeployment_test.go b/tests-e2e/appstudio/devsandboxdeployment_test.go index 5d4e25d358..0ab821ea9d 100644 --- a/tests-e2e/appstudio/devsandboxdeployment_test.go +++ b/tests-e2e/appstudio/devsandboxdeployment_test.go @@ -69,6 +69,22 @@ var _ = Describe("Devsandbox deployment controller tests", func() { }, } + By("create a DeploymentTargetClass") + + dtcls := appstudiosharedv1.DeploymentTargetClass{ + ObjectMeta: metav1.ObjectMeta{ + Name: "sandbox-provisioner", + Namespace: namespace, + Annotations: map[string]string{}, + }, + Spec: appstudiosharedv1.DeploymentTargetClassSpec{ + Provisioner: appstudiosharedv1.Provisioner_Devsandbox, + ReclaimPolicy: appstudiosharedv1.ReclaimPolicy_Retain, + }, + } + + Expect(k8sClient.Create(ctx, &dtcls)).To(Succeed()) + dtc = appstudiosharedv1.DeploymentTargetClaim{ ObjectMeta: metav1.ObjectMeta{ Name: fixture.DTCName,