Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .vortex/tooling/tests/unit/notify-github.bats
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ load ../_helper.bash
'@curl -X POST -H Authorization: token token12345 -H Accept: application/vnd.github.v3+json -s https://api.github.com/repos/myorg/myrepo/deployments -d {"ref":"nonexistingbranch","environment":"nonexistingbranch","auto_merge":false,"required_contexts":[]} # {"message": "No ref found for: nonexistingbranch","documentation_url": "https://docs.github.com/rest/deployments/deployments#create-a-deployment","status": "422"}'
"Unable to get a deployment ID for a pre_deployment operation. Payload:"
"Wait for GitHub checks to finish and try again."
"-Marked deployment as finished."
"- Marked deployment as finished."
)

mocks="$(steps_run "setup")"
Expand Down Expand Up @@ -210,7 +210,7 @@ load ../_helper.bash
"@curl -X GET -H Authorization: token token12345 -H Accept: application/vnd.github.v3+json -s https://api.github.com/repos/myorg/myrepo/deployments?ref=nonexistingbranch # []"
"Unable to get a deployment ID for a post_deployment operation. Payload:"
"Check that a pre_deployment notification was dispatched."
"-Marked deployment as finished."
"- Marked deployment as finished."
)
mocks="$(steps_run "setup")"

Expand Down Expand Up @@ -311,7 +311,7 @@ load ../_helper.bash
"@curl -X GET -H Authorization: token token12345 -H Accept: application/vnd.github.v3+json -s https://api.github.com/repos/myorg/myrepo/deployments?ref=existingbranch # [{\"id\": \"${app_id}\", \"othervar\": \"54321\"},{\"id\": \"98765432101\", \"othervar\": \"12345\"}]"
"@curl -X POST -H Accept: application/vnd.github.v3+json -H Authorization: token token12345 https://api.github.com/repos/myorg/myrepo/deployments/${app_id}/statuses -s -d {\"state\":\"success\",\"environment_url\":\"https://develop.testproject.com\"} # {\"state\": \"notsuccess\", \"othervar\": \"54321\"}"
"Previous deployment was found, but was unable to update the deployment status. Payload:"
"-Marked deployment as finished."
"- Marked deployment as finished."
)
mocks="$(steps_run "setup")"

Expand Down
26 changes: 13 additions & 13 deletions .vortex/tooling/tests/unit/provision.bats
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -362,7 +362,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
"- Fresh database detected. Performing additional example operations."
"Existing database detected. Performing additional example operations."
" Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -537,7 +537,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -727,7 +727,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -968,7 +968,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -1137,7 +1137,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
"- Fresh database detected. Performing additional example operations."
"Existing database detected. Performing additional example operations."
" Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -1313,7 +1313,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -1672,7 +1672,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -1845,7 +1845,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -2138,7 +2138,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -2329,7 +2329,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -2572,7 +2572,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down Expand Up @@ -2902,7 +2902,7 @@ assert_provision_info() {
" > Performing an example operation."
# Assert that VORTEX_PROVISION_OVERRIDE_DB is correctly passed to the script.
" Fresh database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
"- Existing database detected. Performing additional example operations."
" ==> Finished example operations."
'Completed running of custom post-install script "./scripts/provision-40-example.sh".'

Expand Down