debian-forge-composer/test/cases/api
Tomáš Hozza d1325aaf45 Test/API/GCP: don't set gcloud format to JSON by default
Previously, the `--format=json` was always set in the `$GCP_CMD`. This
was working OK in general, but it is creating issues when using
`$GCP_CMD compute ssh` to execute commands on the provisioned VM. In
such case, an extra `[]` is added to the output, which then causes
various checks to fail, since the captured stdout is different than
expected.

Instead remove the `--format=json` by default from `$GCP_CMD` and use it
explicitly only in cases when `jq` is used to parse the command's
output. In all other cases, it should be OK to not set the output format
to JSON and it is very much desirable to do so when SSH-ing to the VM.

Also by default pass the `--quiet` option to `gcloud` when using it from
the container. This was previously done only when using the tool
installed on the system.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-22 12:17:36 +01:00
..
common test: add iot-commit to api tests by name 2022-09-20 18:29:28 +02:00
aws.s3.sh test: add iot-commit to api tests by name 2022-09-20 18:29:28 +02:00
aws.sh test/api/aws: Fix cloned image cleanup 2022-09-20 11:11:19 +02:00
azure.sh test/api: don't provide Resource Group Location when testing Azure 2022-10-27 19:33:43 +02:00
container.registry.sh tests: Add comment to make it more obvious what's happening 2022-08-11 13:12:55 +02:00
gcp.sh Test/API/GCP: don't set gcloud format to JSON by default 2023-02-22 12:17:36 +01:00
generic.s3.sh test/api/common: add cleanupVSphere() and use it where appropriate 2022-09-19 10:37:32 +02:00