debian-forge-composer/test/cases
Tomas Hozza 1fd151ce28 test/api.sh: fix generation of predictable TEST_ID in GitLab CI
The `test/cases/api.sh` script relied on environment variables specific
to Jenkins for detecting it if is running in a CI environment. If this
was the case, it used other environment variables to construct a
predictable `TEST_ID` which could be used for names of resources created
in cloud-provider environment as part of the test. This is important to
ensure that `cloud-cleaner` can "guess" resource names and delete them
in case the test script fails to clean up after itself.

With the move from Jenkins to GitLab CI, this stopped to work and the
script started to generate random `TEST_ID`, which can not be guessed by
the `cloud-cleaner` tool.

Modify the `test/cases/api.sh` to detect the CI environment using the
`CI` environment variable, which is always predefined in the GitLab CI
environment [1].

[1] https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-07-16 10:14:30 +02:00
..
api.sh test/api.sh: fix generation of predictable TEST_ID in GitLab CI 2021-07-16 10:14:30 +02:00
aws.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00
azure.sh tests: make azure.sh easier to run locally 2021-07-09 19:52:52 +01:00
azure_hyperv_gen2.sh Test Azure images on HyperV Gen1 and Gen2 2021-06-22 13:44:19 +03:00
base_tests.sh base_tests.sh: make the test self-contained 2020-11-10 10:44:13 +00:00
image_tests.sh tests: modify image_tests for Gitlab CI 2021-06-28 13:49:57 +03:00
installers.sh test/cases: fix installers test 2021-07-02 17:57:22 +02:00
koji.sh tests: move some integration tests to gitlab CI 2021-05-12 15:38:30 +03:00
libvirt.sh test/libvirt: don't test vhd images 2021-05-17 14:55:50 +02:00
ostree-ng.sh test/cases/ostree: test new image types 2021-06-29 17:26:43 +01:00
ostree.sh tests: remove all traces of Fedora 32 2021-07-05 11:16:08 +02:00
regression-include-excluded-packages.sh test/cases: Introduce common "regression" test for all distros 2021-05-20 13:07:07 +03:00
regression.sh test/cases: Introduce common "regression" test for all distros 2021-05-20 13:07:07 +03:00
vmware.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00