Skip to content

Commit

Permalink
fix: use v1 pdb object under e2e bundle test (#2398)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Sover <dsover@redhat.com>
  • Loading branch information
exdx committed Oct 8, 2021
1 parent a94b10b commit 4c3c8f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/bundle_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var _ = Describe("Installing bundles with new object types", func() {
By("first installing the VPA CRD on cluster")
const (
sourceName = "test-catalog"
imageName = "quay.io/olmtest/single-bundle-index:pdb"
imageName = "quay.io/olmtest/single-bundle-index:pdb-v1"
)

// create VPA CRD on cluster
Expand Down Expand Up @@ -139,11 +139,6 @@ var _ = Describe("Installing bundles with new object types", func() {
}

// confirm extra bundle objects are installed
Eventually(func() error {
_, err := kubeClient.KubernetesInterface().PolicyV1beta1().PodDisruptionBudgets(testNamespace).Get(context.TODO(), pdbName, metav1.GetOptions{})
return err
}).Should(Succeed(), "expected no error getting pdb object associated with CSV")

Eventually(func() error {
_, err := kubeClient.KubernetesInterface().SchedulingV1().PriorityClasses().Get(context.TODO(), priorityClassName, metav1.GetOptions{})
return err
Expand All @@ -153,6 +148,11 @@ var _ = Describe("Installing bundles with new object types", func() {
_, err := dynamicClient.Resource(resource).Namespace(testNamespace).Get(context.TODO(), vpaName, metav1.GetOptions{})
return err
}).Should(Succeed(), "expected no error finding vpa object associated with csv")

Eventually(func() error {
_, err := kubeClient.KubernetesInterface().PolicyV1().PodDisruptionBudgets(testNamespace).Get(context.TODO(), pdbName, metav1.GetOptions{})
return err
}).Should(Succeed(), "expected no error getting pdb object associated with CSV")
})

AfterEach(func() {
Expand Down

0 comments on commit 4c3c8f1

Please sign in to comment.