From 6ba48e499c7a3eebb87261460212225229bb5271 Mon Sep 17 00:00:00 2001 From: "Jokob @NetAlertX" <96159884+jokob-sk@users.noreply.github.com> Date: Sun, 7 Dec 2025 21:14:35 +0000 Subject: [PATCH] test fix + increase build timeout + add buildd cache --- .github/workflows/docker_dev.yml | 4 +++- test/api_endpoints/test_graphq_endpoints.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker_dev.yml b/.github/workflows/docker_dev.yml index 5314e178..d264f8dc 100755 --- a/.github/workflows/docker_dev.yml +++ b/.github/workflows/docker_dev.yml @@ -13,7 +13,7 @@ on: jobs: docker_dev: runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 60 permissions: contents: read packages: write @@ -96,3 +96,5 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/test/api_endpoints/test_graphq_endpoints.py b/test/api_endpoints/test_graphq_endpoints.py index 26255ffb..374bd524 100644 --- a/test/api_endpoints/test_graphq_endpoints.py +++ b/test/api_endpoints/test_graphq_endpoints.py @@ -41,7 +41,7 @@ def test_graphql_post_unauthorized(client): """POST /graphql without token should return 401""" query = {"query": "{ devices { devName devMac } }"} 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 "Forbidden" in resp.json.get("error", "")