From 4248564a55f1127f464614296bba75d3df875220 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 17 Sep 2024 13:53:32 +0200 Subject: [PATCH] cloudapi: update expected image type test for gcp-rhui gce-rhui is now gone from RHEL 9 [1] and the old name simply aliases to gce. gcp-rhui in the cloudapi now resolves to 'gce' in RHEL 9 and 'gce-rhui' in RHEL 8. [1] https://github.com/osbuild/images/pull/857 --- internal/cloudapi/v2/compose_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/cloudapi/v2/compose_test.go b/internal/cloudapi/v2/compose_test.go index 08458d60d..f7f8dc7b7 100644 --- a/internal/cloudapi/v2/compose_test.go +++ b/internal/cloudapi/v2/compose_test.go @@ -674,7 +674,13 @@ func TestGetImageRequests_ImageTypeConversion(t *testing.T) { }, { requestedImageType: ImageTypesGcpRhui, - requestedDistros: []string{rhel8, rhel9}, + requestedDistros: []string{rhel9}, + expectedImageType: "gce", + expectedTargetName: target.TargetNameGCP, + }, + { + requestedImageType: ImageTypesGcpRhui, + requestedDistros: []string{rhel8}, expectedImageType: "gce-rhui", expectedTargetName: target.TargetNameGCP, },