debian-forge-composer/cmd
Tomas Hozza aa1d038b59 cloud-cleaner: clean up image and vm after GCP integration test
Extend internal GCP library to allow deleting Compute Node image and
instance. In addition provide function to load service account
credentials file content from the environment.

Change names used for GCP image and instance in `api.sh` integration
test to make them predictable. This is important, so that cloud-cleaner
can identify potentially left over resources and clean them up. Use the
same approach for generating predictable, but run-specific, test ID as
in GenerateCIArtifactName() from internal/test/helpers.go. Use SHA224
to generate a hash from the string, because it can contain characters
not allowed by GCP for resource name (specifically "_" e.g. in "x86_64").
SHA-224 was picked because it generates short enough output and it is
future proof for use in RHEL (unlike MD5 or SHA-1).

Refactor cloud-cleaner to clean up GCP resources and also to run cleanup
for each cloud in a separate goroutine.

Modify run_cloud_cleaner.sh to be able to run in environment in which
AZURE_CREDS is not defined.

Always run cloud-cleaner after integration tests for rhel8, rhel84 and
cs8, which test GCP.

Define DISTRO_CODE for each integration testing stage in Jenkinsfile.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-03-15 16:48:40 +00:00
..
cloud-cleaner cloud-cleaner: clean up image and vm after GCP integration test 2021-03-15 16:48:40 +00:00
osbuild-auth-tests test/auth: rework the test to use the new openssl setup 2020-11-05 13:48:48 +01:00
osbuild-composer distroregistry: add a default distroregistry 2021-03-12 08:29:30 +01:00
osbuild-composer-cli-tests tests: rename composer-cli tests 2020-10-06 13:08:26 +02:00
osbuild-dnf-json-tests distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
osbuild-image-tests image-tests: checkpoint build root 2021-03-15 16:40:48 +00:00
osbuild-koji upload/koji: don't pass task_id to cg_init_build 2020-09-16 00:15:02 +01:00
osbuild-koji-tests test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
osbuild-pipeline distro/*: remove redundant manifest tests 2021-03-12 08:29:30 +01:00
osbuild-store-dump distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
osbuild-upload-aws upload/aws: fix architecture for aarch64 images 2020-12-01 08:27:44 +01:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp internal: Move GCP library to internal/cloud 2021-03-15 16:48:40 +00:00
osbuild-worker internal: Move GCP library to internal/cloud 2021-03-15 16:48:40 +00:00