cryptography build prevention + increase build timeouts + test cleanup

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Jokob @NetAlertX
2025-12-07 22:26:44 +00:00
committed by GitHub
parent 6ba48e499c
commit c38da9db0b
3 changed files with 4 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 60
permissions:
contents: read
packages: write

View File

@@ -36,15 +36,13 @@ RUN apk add --no-cache \
libffi-dev \
openssl-dev \
git \
rust \
cargo \
&& python -m venv /opt/venv
# Upgrade pip/wheel/setuptools and install Python packages
RUN python -m pip install --upgrade pip setuptools wheel && \
pip install --no-cache-dir -r /tmp/requirements.txt && \
pip install --prefer-binary --no-cache-dir -r /tmp/requirements.txt && \
chmod -R u-rwx,g-rwx /opt
# second stage is the main runtime stage with just the minimum required to run the application
# The runner is used for both devcontainer, and as a base for the hardened stage.
FROM alpine:3.22 AS runner

View File

@@ -38,7 +38,7 @@ def test_graphql_debug_get(client):
def test_graphql_post_unauthorized(client):
"""POST /graphql without token should return 401"""
"""POST /graphql without token should return 403"""
query = {"query": "{ devices { devName devMac } }"}
resp = client.post("/graphql", json=query)
assert resp.status_code == 403