From cbb8abd3524d3e7f446e35e9ce5c0184ba55397c Mon Sep 17 00:00:00 2001 From: hrj Date: Mon, 4 Apr 2022 20:27:35 +0530 Subject: [PATCH] functional tests: use new api path --- tests/locustfile-functional.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/locustfile-functional.py b/tests/locustfile-functional.py index 5034e43..9224494 100644 --- a/tests/locustfile-functional.py +++ b/tests/locustfile-functional.py @@ -24,7 +24,7 @@ class QuickStartUser(SequentialTaskSet): def captcha(self): captcha_params = {"level":"debug","media":"image/png","input_type":"text"} - with self.client.post(path="/v1/captcha", json=captcha_params, name="/captcha", catch_response = True) as resp: + with self.client.post(path="/v2/captcha", json=captcha_params, name="/captcha", catch_response = True) as resp: if resp.status_code != 200: resp.failure("Status was not 200: " + resp.text) captchaJson = resp.json() @@ -32,7 +32,7 @@ class QuickStartUser(SequentialTaskSet): if not uuid: resp.failure("uuid not returned on /captcha endpoint: " + resp.text) - with self.client.get(path="/v1/media?id=%s" % uuid, name="/media", stream=True, catch_response = True) as resp: + with self.client.get(path="/v2/media?id=%s" % uuid, name="/media", stream=True, catch_response = True) as resp: if resp.status_code != 200: resp.failure("Status was not 200: " + resp.text) @@ -41,7 +41,7 @@ class QuickStartUser(SequentialTaskSet): ocrAnswer = self.solve(uuid, media) answerBody = {"answer": ocrAnswer,"id": uuid} - with self.client.post(path='/v1/answer', json=answerBody, name="/answer", catch_response=True) as resp: + with self.client.post(path='/v2/answer', json=answerBody, name="/answer", catch_response=True) as resp: if resp.status_code != 200: resp.failure("Status was not 200: " + resp.text) else: