From 859277eb3045f3a94e663a8cfde9d75d79406276 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 27 Oct 2023 18:39:19 +0200 Subject: [PATCH] test: use upload_targets for edge in api s3.sh When making the upload request for edge commit image types, use the new upload_targets array to define the aws.s3 upload options. Leave other upload target definitions as is for now to test the old options. --- test/cases/api/common/s3.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/cases/api/common/s3.sh b/test/cases/api/common/s3.sh index 881a77acde1..88045d4a794 100644 --- a/test/cases/api/common/s3.sh +++ b/test/cases/api/common/s3.sh @@ -46,9 +46,14 @@ function createReqFileEdge() { "ostree": { "ref": "${OSTREE_REF}" }, - "upload_options": { - "region": "${AWS_REGION}"${public_block} - } + "upload_targets": [ + { + "type": "org.osbuild.aws.s3", + "upload_options": { + "region": "${AWS_REGION}"${public_block} + } + } + ] } } EOF