Skip to content

Commit 102f132

Browse files
committed
update gradual traffic routes e2e with annotations to debug
1 parent 22a9cc8 commit 102f132

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/routegroup.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ rBackend: Path("/backend") -> inlineContent("%s") -> <shunt>;`,
542542
framework.ExpectNoError(err)
543543

544544
// POD
545-
By("Creating 2 PODs with prefix " + nameprefix + " and " + nameprefix + " in namespace " + ns)
545+
By("Creating 2 PODs with prefix " + nameprefix + " and " + nameprefix2 + " in namespace " + ns)
546546
expectedResponse := "blue"
547547
pod := createSkipperPod(
548548
nameprefix,
@@ -654,8 +654,8 @@ rBackend: Path("/blue-green") -> status(202) -> inlineContent("%s") -> <shunt>;`
654654
// +/- 5 for 80/20
655655
res201 := cnt[201] > 75 && cnt[201] < 85
656656
res202 := cnt[202] > 15 && cnt[202] < 25
657-
Expect(res201).To(BeTrue())
658-
Expect(res202).To(BeTrue())
657+
Expect(res201).To(BeTrue(), "201 count should be between 75 and 85, got %d", cnt[201])
658+
Expect(res202).To(BeTrue(), "202 count should be between 15 and 25, got %d", cnt[202])
659659
})
660660

661661
It("Should create NLB routegroup [RouteGroup] [Zalando]", func() {

0 commit comments

Comments
 (0)