From 6c982fe8273457ad35c5386a7e5c08d4a92eba72 Mon Sep 17 00:00:00 2001 From: Jumana B Date: Thu, 18 Jan 2024 12:28:28 -0500 Subject: [PATCH] Fix smoke test (#2082) --- 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 1817a2b552..e31455589d 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[-36:]}"}, + headers={"Authorization": f"ApiKey-v1 {Config.API_KEY}"}, ) 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 1c19ec1018..643192bb64 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[-36:]}"}, + headers={"Authorization": f"ApiKey-v1 {Config.API_KEY}"}, ) if response.status_code != 201: pretty_print(response.json())