Commit 4e12feb649a28507bb7116ee6f85c5294c275e30

Authored by George Vlahavas
1 parent ca87f0de3d

Add cat command

Showing 1 changed file with 1 additions and 1 deletions

kea_integration.groovy View file @ 4e12feb
... ... @@ -48,7 +48,7 @@
48 48 if (responseCode != '200') {
49 49 error("$testName: Returned status code = $responseCode when calling $url")
50 50 }
51   - responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw \"`pcap-data/mltd2-unix.json`\" $url -o /dev/null", returnStdout: true)
  51 + responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw \"`cat pcap-data/mltd2-unix.json`\" $url -o /dev/null", returnStdout: true)
52 52 echo responseCode
53 53 if (responseCode != '200') {
54 54 error("$testName: Returned status code = $responseCode when calling $url")