From 2d2c7631dedc04cd86d3c90b68c594d1853647d5 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Mon, 16 Oct 2023 20:21:35 +0200 Subject: [PATCH] cloudapi: add GetTarget() test case for pulp.ostree --- internal/cloudapi/v2/imagerequest_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/cloudapi/v2/imagerequest_test.go b/internal/cloudapi/v2/imagerequest_test.go index 0bb2d5e5c3e..58a958686f8 100644 --- a/internal/cloudapi/v2/imagerequest_test.go +++ b/internal/cloudapi/v2/imagerequest_test.go @@ -209,6 +209,17 @@ func TestGetTargets(t *testing.T) { targets: []UploadTargetType{UploadTargetTypeOrgOsbuildAwsS3}, expected: []target.TargetName{target.TargetNameAWSS3}, }, + "edge:pulp": { + imageType: ImageTypesEdgeCommit, + targets: []UploadTargetType{UploadTargetTypeOrgOsbuildPulpOstree}, + expected: []target.TargetName{target.TargetNamePulpOSTree}, + }, + "edge:pulp+default": { + imageType: ImageTypesEdgeCommit, + targets: []UploadTargetType{UploadTargetTypeOrgOsbuildPulpOstree}, + includeDefault: true, + expected: []target.TargetName{target.TargetNamePulpOSTree, target.TargetNameAWSS3}, + }, "edge:gcp:fail": { imageType: ImageTypesEdgeCommit, targets: []UploadTargetType{UploadTargetTypeOrgOsbuildGcp},