Skip to content

Commit

Permalink
cloudapi: update expected image type test for gcp-rhui
Browse files Browse the repository at this point in the history
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] osbuild/images#857
  • Loading branch information
achilleas-k committed Sep 17, 2024
1 parent 327edfe commit ae2f9fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/cloudapi/v2/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit ae2f9fc

Please sign in to comment.