Skip to content

Commit

Permalink
Restler should be authenticated; seed the database with data
Browse files Browse the repository at this point in the history
  • Loading branch information
iainsproat committed Dec 31, 2024
1 parent 1b7cd28 commit ebbf332
Show file tree
Hide file tree
Showing 5 changed files with 990 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/rest-api-fuzzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ jobs:
run: |
docker compose --file ${{ github.workspace }}/speckle-server/docker-compose-deps.yml up --detach
- name: Seed the database
run: |
apt-get update
apt-get install --yes --no-install-recommends postgresql-client
PGPASSWORD=speckle psql -h 127.0.0.1 -U speckle -d speckle -p 5432 -w -f ${{ github.workspace }}/speckle-server/setup/fuzzer/speckle.backup.sql
- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -198,6 +204,8 @@ jobs:
if: always()
run: |
ls -la ${{ github.workspace }}/Test
ls -la ${{ github.workspace }}/Test/RestlerResults || true
ls -la ${{ github.workspace }}/Test/ResponseBuckets || true
echo ""
echo "############################################"
echo "# Engine stderr #"
Expand Down
8 changes: 7 additions & 1 deletion setup/fuzzer/settings.restler.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
"endpoint": "/api/stream/{streamId}/blobs",
"methods": ["DELETE"]
}
]
],
"authentication": {
"token": {
"location": "/home/runner/work/speckle-server/speckle-server/speckle-server/setup/fuzzer/token.txt",
"token_refresh_interval": 300
}
}
}
2 changes: 1 addition & 1 deletion setup/fuzzer/speckle-server.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"responses": {
"200": { "description": "Returns an access code in the body" },
"302": { "description": "Redirects with access code in url query" },
"400": { "description": "Invalid access code" },
"400": { "description": "Invalid access code, or the app does not exist" },
"500": { "description": "Internal error" }
}
},
Expand Down
Loading

0 comments on commit ebbf332

Please sign in to comment.