diff --git a/artifacts/ab-testing/canary.yaml b/artifacts/ab-testing/canary.yaml index 679ed18bc..f513fb049 100644 --- a/artifacts/ab-testing/canary.yaml +++ b/artifacts/ab-testing/canary.yaml @@ -40,7 +40,7 @@ spec: regex: "^(?!.*Chrome)(?=.*\bSafari\b).*$" - headers: cookie: - regex: "^(.*?;)?(user=test)(;.*)?$" + regex: "^(.*?;)?(type=insider)(;.*)?$" metrics: - name: istio_requests_total # minimum req success rate (non 5xx responses) @@ -58,4 +58,4 @@ spec: url: http://flagger-loadtester.test/ timeout: 5s metadata: - cmd: "hey -z 1m -q 10 -c 2 http://podinfo.test:9898/" + cmd: "hey -z 1m -q 10 -c 2 -H 'Cookie: type=insider' http://podinfo.test:9898/" diff --git a/docs/gitbook/usage/ab-testing.md b/docs/gitbook/usage/ab-testing.md index 50659bb45..1a67ecc53 100644 --- a/docs/gitbook/usage/ab-testing.md +++ b/docs/gitbook/usage/ab-testing.md @@ -93,7 +93,7 @@ spec: url: http://flagger-loadtester.test/ timeout: 5s metadata: - cmd: "hey -z 1m -q 10 -c 2 http://podinfo.test:9898/" + cmd: "hey -z 1m -q 10 -c 2 -H 'Cookie: type=insider' http://podinfo.test:9898/" ``` The above configuration will run an analysis for ten minutes targeting Safari users and those that have an insider cookie.