debian-forge-composer/internal
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
..
blueprint rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
boot internal/boot/azure: set storage account 2021-03-06 15:40:48 +00:00
client test: Add tests for trying to override a system source repo 2021-01-29 08:25:23 -08:00
cloud/gcp cloud-cleaner: clean up image and vm after GCP integration test 2021-03-15 16:48:40 +00:00
cloudapi distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
common weldr: move common.ComposeState to weldr 2020-11-09 14:17:19 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk distro/rhel84: remove hardcoded root partition UUIDs 2020-12-15 16:43:39 +01:00
distro distro/rhel84/qcow2: add net-tools 2021-03-14 15:03:58 +00:00
distroregistry distroregistry/test: add test for GetDistro 2021-03-12 08:29:30 +01:00
jobqueue jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
mocks distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
osbuild rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
rpmmd distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
store distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
target target/azure: document what it does 2021-03-06 15:40:48 +00:00
test test: add arch to the generate test artifact names 2020-12-01 08:27:44 +01:00
upload internal: Move GCP library to internal/cloud 2021-03-15 16:48:40 +00:00
weldr distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
worker distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00