add test: query-all-services state via GraphQL API
continuous-integration/drone/push Build is failing Details

jsonnet
Alexander 2023-12-12 05:02:05 +04:00
parent fa062875e7
commit b49b801baa
1 changed files with 17 additions and 17 deletions

View File

@ -76,7 +76,7 @@ steps:
- name: sleep - name: sleep
commands: commands:
- sleep 600 - sleep 420
- name: test - name: test
environment: environment:
@ -87,22 +87,22 @@ steps:
TEST_EMAIL_PASS: TEST_EMAIL_PASS:
from_secret: TEST_EMAIL_PASS from_secret: TEST_EMAIL_PASS
commands: commands:
- > - dig api.$DOMAIN
dig api.$DOMAIN - http -v --verify=false --check-status --ignore-stdin GET https://api.$DOMAIN/services/status Authorization:"Bearer $USER_PASS"
- > - swaks --to ci@$DOMAIN -s selfprivacy.org -tls -au test@selfprivacy.org -ap $TEST_EMAIL_PASS -ahp
http -v --verify=false --check-status --ignore-stdin GET https://api.$DOMAIN/services/status Authorization:"Bearer $USER_PASS" - http -v --verify=false --check-status --ignore-stdin GET https://cloud.$DOMAIN/ocs/v2.php/apps/serverinfo/api/v1/info?format=json -a admin:$USER_PASS
- > - echo "File to test nextcloud upload" > file
swaks --to ci@$DOMAIN -s selfprivacy.org -tls -au test@selfprivacy.org -ap $TEST_EMAIL_PASS -ahp - http -v --verify=false --check-status --ignore-stdin PUT https://cloud.$DOMAIN/remote.php/dav/files/admin/file @file -a admin:$USER_PASS
- > - http -v --verify=false --check-status --ignore-stdin GET https://cloud.$DOMAIN/remote.php/dav/files/admin/file -a admin:$USER_PASS
http -v --verify=false --check-status --ignore-stdin GET https://cloud.$DOMAIN/ocs/v2.php/apps/serverinfo/api/v1/info?format=json -a admin:$USER_PASS - nix --extra-experimental-features "nix-command flakes" run git+https://git.selfprivacy.org/alexoundos/selfprivacy-tests.git#query-all-services
- > #- > #http -v --verify=false --check-status --ignore-stdin GET https://password.$DOMAIN/admin/diagnostics
echo "File to test nextcloud upload" > file
- > # - name: sleep-after-failure
http -v --verify=false --check-status --ignore-stdin PUT https://cloud.$DOMAIN/remote.php/dav/files/admin/file @file -a admin:$USER_PASS # commands:
- > # - sleep 240
http -v --verify=false --check-status --ignore-stdin GET https://cloud.$DOMAIN/remote.php/dav/files/admin/file -a admin:$USER_PASS # when:
#- > # status:
#http -v --verify=false --check-status --ignore-stdin GET https://password.$DOMAIN/admin/diagnostics # - failure
- name: teardown - name: teardown
environment: environment: