Skip to content

Commit c38da9d

Browse files
authored
cryptography build prevention + increase build timeouts + test cleanup
Signed-off-by: GitHub <noreply@github.com>
1 parent 6ba48e4 commit c38da9d

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/docker_prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
docker:
1919
runs-on: ubuntu-latest
20-
timeout-minutes: 30
20+
timeout-minutes: 60
2121
permissions:
2222
contents: read
2323
packages: write

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ RUN apk add --no-cache \
3636
libffi-dev \
3737
openssl-dev \
3838
git \
39-
rust \
40-
cargo \
4139
&& python -m venv /opt/venv
4240

4341
# Upgrade pip/wheel/setuptools and install Python packages
4442
RUN python -m pip install --upgrade pip setuptools wheel && \
45-
pip install --no-cache-dir -r /tmp/requirements.txt && \
43+
pip install --prefer-binary --no-cache-dir -r /tmp/requirements.txt && \
4644
chmod -R u-rwx,g-rwx /opt
47-
45+
4846
# second stage is the main runtime stage with just the minimum required to run the application
4947
# The runner is used for both devcontainer, and as a base for the hardened stage.
5048
FROM alpine:3.22 AS runner

test/api_endpoints/test_graphq_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_graphql_debug_get(client):
3838

3939

4040
def test_graphql_post_unauthorized(client):
41-
"""POST /graphql without token should return 401"""
41+
"""POST /graphql without token should return 403"""
4242
query = {"query": "{ devices { devName devMac } }"}
4343
resp = client.post("/graphql", json=query)
4444
assert resp.status_code == 403

0 commit comments

Comments
 (0)