Cherry pick to 1.10 Add verification for CRD installation

Signed-off-by: danfengl <danfengl@vmware.com>
This commit is contained in:
danfengl
2022-11-25 03:43:24 +00:00
parent 0ea1c06928
commit 95d8134bd8
4 changed files with 17 additions and 2 deletions
@@ -115,6 +115,7 @@ func APIExtensionsVersionsTest() {
By(fmt.Sprintf("Install CRD of apiextenstions v1beta1 in cluster-A (%s)", VeleroCfg.DefaultCluster), func() {
Expect(installCRD(context.Background(), srcCrdYaml)).To(Succeed())
Expect(CRDShouldExist(context.Background(), crdName)).To(Succeed())
Expect(WaitForCRDEstablished(crdName)).To(Succeed())
Expect(AddLabelToCRD(context.Background(), crdName, label)).To(Succeed())
})