M #-: Allow configurable marketapp filename (#1035)

To avioid failure in tests while using the same bucket.
This commit is contained in:
Jan Orel authored and GitHub committed 2021-03-28 22:23:40 +02:00
1 parent a75086d36b
commit 3dfc7218a0
1 file changed
+2 -1
+2 -1
View File
@@ -77,12 +77,13 @@ bucket = xpath(xml, 'MARKETPLACE/TEMPLATE/BUCKET')
region = xpath(xml, 'MARKETPLACE/TEMPLATE/REGION')
# optional
app_prefix = xpath(xml, 'MARKETPLACE/TEMPLATE/APP_PREFIX') || 'marketapp'
signature_version = xpath(xml, 'MARKETPLACE/TEMPLATE/SIGNATURE_VERSION')
endpoint = xpath(xml, 'MARKETPLACE/TEMPLATE/ENDPOINT')
force_path_style = xpath(xml, 'MARKETPLACE/TEMPLATE/FORCE_PATH_STYLE')
read_length = xpath(xml, 'MARKETPLACE/TEMPLATE/READx_LENGTH')
name = "marketapp-#{id}"
name = "#{app_prefix}-#{id}"
source = "s3://#{bucket}/#{name}"
s3_config = {