Skip to content

Commit

Permalink
RHTAPBUGS-735: fix failing e2e test due to missing target class
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwest committed Oct 3, 2023
1 parent 58d659b commit 2385b3e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests-e2e/appstudio/devsandboxdeployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2385b3e

Please sign in to comment.