Skip to content

Commit

Permalink
cloudapi: add GetTarget() test case for pulp.ostree
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Oct 26, 2023
1 parent a1ae531 commit 2d2c763
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/cloudapi/v2/imagerequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 2d2c763

Please sign in to comment.