Skip to content

Commit c86e3cd

Browse files
Merge pull request #30576 from jacobsee/remove-debug-pod-label-length-check
OCPSTRAT-2728: Remove pod label length check in oc debug test
2 parents e0bb2cd + dee1044 commit c86e3cd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/extended/cli/debug.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ spec:
313313
o.Expect(err).NotTo(o.HaveOccurred())
314314
o.Expect(pods.Items).To(o.HaveLen(1))
315315
o.Expect(pods.Items[0].Labels).To(o.HaveKeyWithValue("debug.openshift.io/managed-by", "oc-debug"))
316-
o.Expect(pods.Items[0].Labels).To(o.HaveLen(1))
317316

318317
oc.AsAdmin().Run("delete").Args("pod", pods.Items[0].Name, "-n", ns).Output()
319318

@@ -336,6 +335,5 @@ spec:
336335
pods, err = oc.AdminKubeClient().CoreV1().Pods(ns).List(context.TODO(), metav1.ListOptions{LabelSelector: "debug.openshift.io/managed-by=oc-debug"})
337336
o.Expect(pods.Items).To(o.HaveLen(1))
338337
o.Expect(pods.Items[0].Labels).To(o.HaveKeyWithValue("debug.openshift.io/managed-by", "oc-debug"))
339-
o.Expect(pods.Items[0].Labels).To(o.HaveLen(1))
340338
})
341339
})

0 commit comments

Comments
 (0)