1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

fix(newman+cf): Change query parameter delimiter to '&' (#1814)

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
This commit is contained in:
Christoph Schubert 2020-07-20 13:20:36 +02:00 committed by GitHub
parent a287afdd35
commit 9027c4ccda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ class CloudFoundry {
def getAppRefUrl(String apiEndpoint, String org, String space, String bearerToken, String appName, boolean verbose){
def orgGuid = getOrgGuid(apiEndpoint, org, bearerToken, verbose)
def spaceGuid = getSpaceGuid(apiEndpoint, orgGuid, space, bearerToken, verbose)
def appInfo = script.httpRequest url:"${apiEndpoint}/v3/apps?names=${appName},${appName}_blue,${appName}_green,${appName}-blue,${appName}-green,space_guids=${spaceGuid}", quiet: !verbose,
def appInfo = script.httpRequest url:"${apiEndpoint}/v3/apps?names=${appName},${appName}_blue,${appName}_green,${appName}-blue,${appName}-green&space_guids=${spaceGuid}", quiet: !verbose,
customHeaders:[[name: 'Authorization', value: "${bearerToken}"]]
def responseJson = script.readJSON text:"${appInfo.content}"
if (!responseJson.resources[0]) throw new Exception("Cannot find Application")
@ -59,7 +59,7 @@ class CloudFoundry {
}
def getSpaceGuid(String apiEndpoint, String orgGuid, String space, String bearerToken, boolean verbose){
def spaceInfo = script.httpRequest url: "${apiEndpoint}/v3/spaces?names=${space},organization_guids=${orgGuid}", quiet: !verbose,
def spaceInfo = script.httpRequest url: "${apiEndpoint}/v3/spaces?names=${space}&organization_guids=${orgGuid}", quiet: !verbose,
customHeaders:[[name: 'Authorization', value: "${bearerToken}"]]
def responseJson = script.readJSON text:"${spaceInfo.content}"
if (!responseJson.resources[0]) throw new Exception("Cannot find Space")