From f965d55eae3df142d81b0355e891eb1040abc8d4 Mon Sep 17 00:00:00 2001 From: Akihito INOH Date: Thu, 6 Sep 2018 09:28:13 +0900 Subject: [PATCH] Fix failure message of e2e test about kubectl At e2e test for "apply set/view last-applied", failure message is `Missing "replicas": 2 in kubectl view-last-applied`, in spite of `replicas` key is contained. This changes `Missing` to `Presenting`. --- test/e2e/kubectl/kubectl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/kubectl/kubectl.go b/test/e2e/kubectl/kubectl.go index 25f44a0fd1e..35d6ced59b8 100644 --- a/test/e2e/kubectl/kubectl.go +++ b/test/e2e/kubectl/kubectl.go @@ -799,11 +799,11 @@ metadata: By("apply file doesn't have replicas") framework.RunKubectlOrDieInput(deployment2Yaml, "apply", "set-last-applied", "-f", "-", nsFlag) - By("check last-applied has been updated, annotations doesn't replicas") + By("check last-applied has been updated, annotations doesn't have replicas") output = framework.RunKubectlOrDieInput(deployment1Yaml, "apply", "view-last-applied", "-f", "-", nsFlag, "-o", "json") requiredString = "\"replicas\": 2" if strings.Contains(output, requiredString) { - framework.Failf("Missing %s in kubectl view-last-applied", requiredString) + framework.Failf("Presenting %s in kubectl view-last-applied", requiredString) } By("scale set replicas to 3")