From e94ea9a4786228fcdf93e132aa62d0f0bbbf0e7b Mon Sep 17 00:00:00 2001 From: Jumana B Date: Mon, 22 Jan 2024 10:41:35 -0500 Subject: [PATCH] Revert "Fix smoke test" --- tests_smoke/smoke/test_api_bulk.py | 2 +- tests_smoke/smoke/test_api_one_off.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests_smoke/smoke/test_api_bulk.py b/tests_smoke/smoke/test_api_bulk.py index e31455589d..1817a2b552 100644 --- a/tests_smoke/smoke/test_api_bulk.py +++ b/tests_smoke/smoke/test_api_bulk.py @@ -25,7 +25,7 @@ def test_api_bulk(notification_type: Notification_type): "template_id": template_id, "csv": rows_to_csv([[header, "var"], *job_line(to, 2)]), }, - headers={"Authorization": f"ApiKey-v1 {Config.API_KEY}"}, + headers={"Authorization": f"ApiKey-v1 {Config.API_KEY[-36:]}"}, ) if response.status_code != 201: pretty_print(response.json()) diff --git a/tests_smoke/smoke/test_api_one_off.py b/tests_smoke/smoke/test_api_one_off.py index 643192bb64..1c19ec1018 100644 --- a/tests_smoke/smoke/test_api_one_off.py +++ b/tests_smoke/smoke/test_api_one_off.py @@ -57,7 +57,7 @@ def test_api_one_off(notification_type: Notification_type, attachment_type: Atta response = requests.post( f"{Config.API_HOST_NAME}/v2/notifications/{notification_type.value}", json=data, - headers={"Authorization": f"ApiKey-v1 {Config.API_KEY}"}, + headers={"Authorization": f"ApiKey-v1 {Config.API_KEY[-36:]}"}, ) if response.status_code != 201: pretty_print(response.json())