test fix + increase build timeout + add buildd cache

This commit is contained in:
Jokob @NetAlertX
2025-12-07 21:14:35 +00:00
committed by GitHub
parent 1dee812ce6
commit 6ba48e499c
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ on:
jobs: jobs:
docker_dev: docker_dev:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 60
permissions: permissions:
contents: read contents: read
packages: write packages: write
@@ -96,3 +96,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@@ -41,7 +41,7 @@ def test_graphql_post_unauthorized(client):
"""POST /graphql without token should return 401""" """POST /graphql without token should return 401"""
query = {"query": "{ devices { devName devMac } }"} query = {"query": "{ devices { devName devMac } }"}
resp = client.post("/graphql", json=query) resp = client.post("/graphql", json=query)
assert resp.status_code == 401 assert resp.status_code == 403
assert "Unauthorized access attempt" in resp.json.get("message", "") assert "Unauthorized access attempt" in resp.json.get("message", "")
assert "Forbidden" in resp.json.get("error", "") assert "Forbidden" in resp.json.get("error", "")