test(e2e): scoped Ingress hostname and path collision

This commit is contained in:
Dario Tranchitella
2021-08-01 15:08:50 +02:00
parent df08c9e63e
commit 8949be7497
12 changed files with 851 additions and 530 deletions

View File

@@ -208,7 +208,9 @@ var _ = Describe("creating namespaces within a Tenant with resources", func() {
n := fmt.Sprintf("capsule-%s-%d", tnt.GetName(), i)
rq := &corev1.ResourceQuota{}
Expect(k8sClient.Get(context.TODO(), types.NamespacedName{Name: n, Namespace: name}, rq)).Should(Succeed())
if err := k8sClient.Get(context.TODO(), types.NamespacedName{Name: n, Namespace: name}, rq); err != nil {
return corev1.ResourceQuotaSpec{}
}
return rq.Spec
}, defaultTimeoutInterval, defaultPollInterval).Should(Equal(s))