mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-25 13:01:28 +00:00
add test: query-all-services state via GraphQL API
This commit is contained in:
parent
fa062875e7
commit
b49b801baa
34
.drone.yml
34
.drone.yml
|
@ -76,7 +76,7 @@ steps:
|
|||
|
||||
- name: sleep
|
||||
commands:
|
||||
- sleep 600
|
||||
- sleep 420
|
||||
|
||||
- name: test
|
||||
environment:
|
||||
|
@ -87,22 +87,22 @@ steps:
|
|||
TEST_EMAIL_PASS:
|
||||
from_secret: TEST_EMAIL_PASS
|
||||
commands:
|
||||
- >
|
||||
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://cloud.$DOMAIN/ocs/v2.php/apps/serverinfo/api/v1/info?format=json -a admin:$USER_PASS
|
||||
- >
|
||||
echo "File to test nextcloud upload" > file
|
||||
- >
|
||||
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://password.$DOMAIN/admin/diagnostics
|
||||
- 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://cloud.$DOMAIN/ocs/v2.php/apps/serverinfo/api/v1/info?format=json -a admin:$USER_PASS
|
||||
- echo "File to test nextcloud upload" > file
|
||||
- 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
|
||||
- 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
|
||||
|
||||
# - name: sleep-after-failure
|
||||
# commands:
|
||||
# - sleep 240
|
||||
# when:
|
||||
# status:
|
||||
# - failure
|
||||
|
||||
- name: teardown
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue