Skip to content

Commit

Permalink
Merge pull request #3069 from bolt/chore/update-CI
Browse files Browse the repository at this point in the history
Update `api_tests.yaml`
  • Loading branch information
bobdenotter authored Feb 2, 2022
2 parents 736b7a7 + 8308aca commit 02b828c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/api_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
- name: Initialise the database
run: |
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
./bin/console doctrine:database:create
./bin/console doctrine:schema:create
./bin/console server:start 127.0.0.1:8088
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
./bin/console doctrine:database:create
./bin/console doctrine:schema:create
./bin/console server:start 127.0.0.1:8088
- name: create api user
run: php bin/console bolt:add-user apiuser apiuser%1 [email protected] API --roles=ROLE_WEBSERVICE
- name: check API user gets content
run: curl -fkI -u apiuser:apiuser%1 https://localhost:8088/api/contents
run: curl -fkI -u apiuser:apiuser%1 http://localhost:8088/api/contents
- name: check API user gets fields
run: curl -fkI -u apiuser:apiuser%1 https://localhost:8088/api/fields
run: curl -fkI -u apiuser:apiuser%1 http://localhost:8088/api/fields
- name: check API user gets relations
run: curl -fkI -u apiuser:apiuser%1 https://localhost:8088/api/relations
run: curl -fkI -u apiuser:apiuser%1 http://localhost:8088/api/relations

0 comments on commit 02b828c

Please sign in to comment.