From a8eaac7c0ac003f060fd719315f6cde7321d59e8 Mon Sep 17 00:00:00 2001 From: mprahl Date: May 16 2019 13:32:22 +0000 Subject: Build the JSON using Groovy in the failing integration test rather manually creating a JSON string --- diff --git a/openshift/integration/koji/pipelines/tests/module-build-br-virtual-stream.groovy b/openshift/integration/koji/pipelines/tests/module-build-br-virtual-stream.groovy index 8d4f4fc..add26eb 100644 --- a/openshift/integration/koji/pipelines/tests/module-build-br-virtual-stream.groovy +++ b/openshift/integration/koji/pipelines/tests/module-build-br-virtual-stream.groovy @@ -1,4 +1,5 @@ // Build an empty module that buildrequires a virtual stream +import groovy.json.JsonOutput def runTests() { def clientcert = ca.get_ssl_cert("mbs-${TEST_ID}-koji-admin") @@ -43,10 +44,7 @@ def runTests() { documentation: https://fedoraproject.org/wiki/Fedora_Packaging_Guidelines_for_Modules """ - def buildparams = """ - {"modulemd": "${testmodule}", - "owner": "mbs-${TEST_ID}-koji-admin"} - """ + def buildparams = groovy.json.JsonOutput.toJson([modulemd: testmodule, owner: "mbs-${TEST_ID}-koji-admin"]) def resp = httpRequest( httpMode: "POST", url: "https://mbs-${TEST_ID}-frontend/module-build-service/1/module-builds/",