Skip to content

Commit d67f493

Browse files
committed
test: add e2e tests for API gateway
1 parent c7a8479 commit d67f493

File tree

14 files changed

+343
-73
lines changed

14 files changed

+343
-73
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Integration tests with Pytest
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
integration-gateway:
15+
runs-on: self-hosted
16+
container: nikolaik/python-nodejs:python3.10-nodejs18
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- uses: ./.github/actions/setup-poetry
21+
22+
- name: Test with pytest
23+
working-directory: tests
24+
run: poetry run pytest integrations/gateway -n $(nproc --all)
25+
env:
26+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
27+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
28+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
29+
API_GATEWAY_S3_BUCKET: ${{ secrets.API_GATEWAY_S3_BUCKET }}

.github/workflows/pytest-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Integration tests with Pytest
2+
name: API Gateway integration tests with Pytest
33

44
on:
55
push:
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Test with pytest
3030
working-directory: tests
31-
run: poetry run pytest integrations -n $(nproc --all)
31+
run: poetry run pytest integrations -n $(nproc --all) --ignore=integrations/gateway
3232
env:
3333
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
3434
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}

0 commit comments

Comments
 (0)