Commit 34948db69ebf454a52bc30a964e5bc8cc6dbd913

Authored by George Vlahavas
1 parent c18cb40fc1

Split integration to two tests

Showing 1 changed file with 3 additions and 1 deletions

kea_integration.groovy View file @ 34948db
... ... @@ -32,9 +32,9 @@
32 32 // Get Keycloak auth token
33 33 String token = sh(label: "get_keycloak_token", script: "curl -s -X POST $KEYCLOAK_URL -H 'Content-Type: application/x-www-form-urlencoded' -d 'username=$USER' -d 'password=$PASSWORD' -d 'grant_type=password' -d 'client_id=$CLIENT_ID' | sed 's/.*access_token\":\"//g' | sed 's/\".*//g'", returnStdout: true)
34 34  
  35 + // MLTD
35 36 String testName = "KEA_TIE_I001"
36 37  
37   - // MLTD
38 38 String url = "$APP_URL/api/v1/mltd/start"
39 39 String responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url", returnStdout: true)
40 40 echo responseCode
... ... @@ -61,6 +61,8 @@
61 61 }
62 62  
63 63 // OD
  64 + testName = "KEA_TIE_I002"
  65 +
64 66 url = "$APP_URL/api/v1/od/start"
65 67 responseCode = sh(label: testName, script: "curl -m 10 -sL -w '%{http_code}' -H 'Authorization: Bearer $token' -H 'Accept: application/json, text/plain, */*' $url", returnStdout: true)
66 68 echo responseCode