From fa0ce15d47d2688dcc57d41dcfbd350fbf288da4 Mon Sep 17 00:00:00 2001 From: Janet Kuo Date: Mon, 26 Mar 2018 09:58:15 -0700 Subject: [PATCH] Stop checking hash labels of adopted resources in e2e tests --- test/e2e/apps/deployment.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/e2e/apps/deployment.go b/test/e2e/apps/deployment.go index 07f011afcdb..fa55de8c300 100644 --- a/test/e2e/apps/deployment.go +++ b/test/e2e/apps/deployment.go @@ -274,10 +274,6 @@ func testRollingUpdateDeployment(f *framework.Framework) { _, allOldRSs, err := deploymentutil.GetOldReplicaSets(deployment, c.ExtensionsV1beta1()) Expect(err).NotTo(HaveOccurred()) Expect(len(allOldRSs)).Should(Equal(1)) - // The old RS should contain pod-template-hash in its selector, label, and template label - Expect(len(allOldRSs[0].Labels[extensions.DefaultDeploymentUniqueLabelKey])).Should(BeNumerically(">", 0)) - Expect(len(allOldRSs[0].Spec.Selector.MatchLabels[extensions.DefaultDeploymentUniqueLabelKey])).Should(BeNumerically(">", 0)) - Expect(len(allOldRSs[0].Spec.Template.Labels[extensions.DefaultDeploymentUniqueLabelKey])).Should(BeNumerically(">", 0)) } func testRecreateDeployment(f *framework.Framework) {