From 01a4e7f6a88bad17abc0b3d42e15b7f3a21c96ef Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sun, 6 Oct 2019 11:02:05 +0300 Subject: [PATCH] Add service target port to Istio e2e tests --- test/e2e-tests.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index 0e62b0c6..2da2dd06 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -159,7 +159,9 @@ spec: progressDeadlineSeconds: 60 service: portDiscovery: true - port: 9898 + port: 80 + targetPort: 9898 + portName: http-podinfo canaryAnalysis: interval: 10s threshold: 5 @@ -172,12 +174,19 @@ spec: threshold: 500 interval: 30s webhooks: + - name: http-acceptance-test + type: pre-rollout + url: http://flagger-loadtester.test/ + timeout: 30s + metadata: + type: bash + cmd: "curl -sd 'test' http://podinfo-canary/token | grep token" - name: load-test url: http://flagger-loadtester.test/ timeout: 5s metadata: type: cmd - cmd: "hey -z 5m -q 10 -c 2 http://podinfo.test:9898/" + cmd: "hey -z 5m -q 10 -c 2 http://podinfo-canary.test/" EOF echo '>>> Triggering B/G deployment' @@ -232,7 +241,9 @@ spec: progressDeadlineSeconds: 60 service: portDiscovery: true - port: 9898 + port: 80 + portName: http-podinfo + targetPort: http canaryAnalysis: interval: 10s threshold: 5 @@ -255,7 +266,7 @@ spec: timeout: 5s metadata: type: cmd - cmd: "hey -z 10m -q 10 -c 2 -H 'Cookie: type=insider' http://podinfo-canary.test:9898/" + cmd: "hey -z 10m -q 10 -c 2 -H 'Cookie: type=insider' http://podinfo-canary.test/" logCmdOutput: "true" - name: promote-gate type: confirm-promotion @@ -266,7 +277,7 @@ spec: timeout: 15s metadata: type: cmd - cmd: "curl -s http://podinfo.test:9898/" + cmd: "curl -s http://podinfo.test/" logCmdOutput: "true" EOF