mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-29 06:31: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
|
- 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:
|
||||||
|
|
Loading…
Reference in a new issue