From fd81593026d7f8c19901d338e908697bf90ce6b0 Mon Sep 17 00:00:00 2001 From: Thomas Lavocat Date: Tue, 3 Aug 2021 09:16:12 +0200 Subject: [PATCH] Tests: Malformed JSON duplicate customization Fixes #1612 --- test/cases/api.sh | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/test/cases/api.sh b/test/cases/api.sh index e27b669fd..6ef86c0cb 100755 --- a/test/cases/api.sh +++ b/test/cases/api.sh @@ -442,7 +442,18 @@ function createReqFileAWS() { "customizations": { "packages": [ "postgresql" - ]${SUBSCRIPTION_BLOCK} + ]${SUBSCRIPTION_BLOCK}, + "users":[ + { + "name": "user1", + "groups": ["wheel"], + "key": "$(cat /tmp/usertest.pub)" + }, + { + "name": "user2", + "key": "$(cat /tmp/usertest.pub)" + } + ] }, "image_requests": [ { @@ -467,20 +478,7 @@ function createReqFileAWS() { } } } - ], - "customizations": { - "users":[ - { - "name": "user1", - "groups": ["wheel"], - "key": "$(cat /tmp/usertest.pub)" - }, - { - "name": "user2", - "key": "$(cat /tmp/usertest.pub)" - } - ] - } + ] } EOF }