cloudapi/v2: support local upload target
The target validation rework broke the local upload target, which is needed for cockpit-image-builder.
This commit is contained in:
parent
7c101fdef7
commit
425581fcc1
4 changed files with 112 additions and 82 deletions
|
|
@ -178,6 +178,12 @@ func TestGetTargets(t *testing.T) {
|
|||
includeDefault: true,
|
||||
expected: []target.TargetName{target.TargetNameAWSS3, target.TargetNameAWSS3},
|
||||
},
|
||||
"guest:local": {
|
||||
imageType: ImageTypesGuestImage,
|
||||
targets: []UploadTypes{UploadTypesLocal},
|
||||
includeDefault: false,
|
||||
expected: []target.TargetName{target.TargetNameWorkerServer},
|
||||
},
|
||||
"guest:azure:fail": {
|
||||
imageType: ImageTypesGuestImage,
|
||||
targets: []UploadTypes{UploadTypesAzure},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue