mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-05 01:31:49 -07:00
test fix + increase build timeout + add buildd cache
This commit is contained in:
4
.github/workflows/docker_dev.yml
vendored
4
.github/workflows/docker_dev.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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", "")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user