cloudapi: add GetTarget() test case for pulp.ostree

This commit is contained in:
Achilleas Koutsou 2023-10-16 20:21:35 +02:00 committed by Sanne Raymaekers
parent b711e302ba
commit 38664d1b64

View file

@ -209,6 +209,17 @@ func TestGetTargets(t *testing.T) {
targets: []UploadTypes{UploadTypesAwsS3},
expected: []target.TargetName{target.TargetNameAWSS3},
},
"edge:pulp": {
imageType: ImageTypesEdgeCommit,
targets: []UploadTypes{UploadTypesPulpOstree},
expected: []target.TargetName{target.TargetNamePulpOSTree},
},
"edge:pulp+default": {
imageType: ImageTypesEdgeCommit,
targets: []UploadTypes{UploadTypesPulpOstree},
includeDefault: true,
expected: []target.TargetName{target.TargetNamePulpOSTree, target.TargetNameAWSS3},
},
"edge:gcp:fail": {
imageType: ImageTypesEdgeCommit,
targets: []UploadTypes{UploadTypesGcp},