Skip to content

Commit 46196a4

Browse files
committed
chore: remove boto3
1 parent 7603da1 commit 46196a4

File tree

4 files changed

+8
-39
lines changed

4 files changed

+8
-39
lines changed

.github/workflows/integration-gateway.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
run: |
7373
pushd $GATEWAY_CHECKOUT_DIR
7474
export GATEWAY_HOST=$(make gateway-host -s)
75+
make generate-token
76+
export GATEWAY_AUTH_KEY=$(make get-token)
7577
popd
7678
poetry run pytest tests/integrations/gateway -n $(nproc --all)
7779
env:

tests/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
COLD_START_TIMEOUT = 20
1111

1212
GATEWAY_HOST = os.getenv("GATEWAY_HOST")
13+
GATEWAY_AUTH_KEY = os.getenv("GATEWAY_AUTH_KEY")
1314
GATEWAY_S3_REGION = os.getenv("S3_REGION", str(DEFAULT_REGION))
1415
GATEWAY_S3_BUCKET_ENDPOINT = os.getenv(
1516
"S3_ENDPOINT", f"https://s3.{DEFAULT_REGION}.scw.cloud"

tests/integrations/gateway/test_gateway.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
from tests import constants
55
from tests.app_fixtures.routed_functions import MESSAGES
66
from tests.integrations.deploy_wrapper import run_deploy_command
7-
from tests.integrations.gateway_fixtures import auth_key # noqa
87
from tests.integrations.project_fixture import scaleway_project # noqa
98
from tests.integrations.utils import create_client
109

1110

12-
def test_integration_gateway(scaleway_project: str, auth_key: str): # noqa
11+
def test_integration_gateway(scaleway_project: str): # noqa
12+
assert constants.GATEWAY_HOST
13+
assert constants.GATEWAY_AUTH_KEY
14+
1315
client = create_client()
1416
client.default_project_id = scaleway_project
1517

@@ -21,7 +23,7 @@ def test_integration_gateway(scaleway_project: str, auth_key: str): # noqa
2123
"--gateway-url",
2224
gateway_url,
2325
"--gateway-api-key",
24-
auth_key,
26+
constants.GATEWAY_AUTH_KEY,
2527
)
2628

2729
# Check general routing configuration

tests/integrations/gateway_fixtures.py

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)