diff --git a/kea_integration.groovy b/kea_integration.groovy index 6e77f07..7b8597c 100644 --- a/kea_integration.groovy +++ b/kea_integration.groovy @@ -32,9 +32,9 @@ pipeline { // Get Keycloak auth token 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) + // MLTD String testName = "KEA_TIE_I001" - // MLTD String url = "$APP_URL/api/v1/mltd/start" 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) echo responseCode @@ -61,6 +61,8 @@ pipeline { } // OD + testName = "KEA_TIE_I002" + url = "$APP_URL/api/v1/od/start" 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) echo responseCode