From 170527cfdf6c9a404921aca98958a4eb14e4bdcc Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 29 Apr 2024 12:05:25 -0700 Subject: [PATCH] add API HOST NAME to workaround --- .github/workflows/checks.yml | 2 +- tests/end_to_end/conftest.py | 2 ++ tests/end_to_end/test_create_new_template.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index c7a323c01..f286f0417 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -130,7 +130,7 @@ jobs: # Debugging for now to troubleshoot a connectivity issue to the local servers # run: curl --request GET --url "http://localhost:6012" env: - API_HOST_NAME: https://notify-api-staging.app.cloud.gov/ + E2E_API_HOST_NAME: https://notify-api-staging.app.cloud.gov/ # API_HOST_NAME: http://localhost:6011 E2E_DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }} E2E_SECRET_KEY: ${{ secrets.SECRET_KEY }} diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py index 83193272c..d09941337 100644 --- a/tests/end_to_end/conftest.py +++ b/tests/end_to_end/conftest.py @@ -94,6 +94,8 @@ def pytest_generate_tests(metafunc): os.environ['ADMIN_CLIENT_SECRET'] = os.getenv('E2E_ADMIN_CLIENT_SECRET') os.environ['ADMIN_CLIENT_USERNAME'] = os.getenv('E2E_ADMIN_CLIENT_USERNAME') os.environ['NOTIFY_ENVIRONMENT'] = os.getenv('E2E_NOTIFY_ENVIRONMENT') + os.environ['API_HOST_NAME'] = os.getenv('E2E_API_HOST_NAME') + diff --git a/tests/end_to_end/test_create_new_template.py b/tests/end_to_end/test_create_new_template.py index 1bc896dab..5b21d5f59 100644 --- a/tests/end_to_end/test_create_new_template.py +++ b/tests/end_to_end/test_create_new_template.py @@ -19,7 +19,8 @@ def _setup(page): print(f"E2E SECRET_KEY {os.getenv('SECRET_KEY')}") print(f"E2E ADMIN_CLIENT_SECRET {os.getenv('ADMIN_CLIENT_SECRET')}") print(f"E2E ADMIN_CLIENT_USERNAME {os.getenv('ADMIN_CLIENT_USERNAME')}") - print(f"{os.environ}") + print(f"E2E API_HOST_NAME {os.getenv('API_HOST_NAME')}") + current_date_time = datetime.datetime.now()