Policy API Performance Tests false true true POLICY_API_HOST ${__P(host,127.0.0.1)} = DURATION ${__P(duration, 5)} = USERS ${__P(users, 1)} = PORT ${__P(port, 6969)} = continue false -1 ${USERS} 1 true ${DURATION} 1 ${POLICY_API_HOST} 6969 https policy/api/v1/healthcheck GET true false true false Basic Health Check 200 Assertion.response_code false 1 groovy true import groovy.json.JsonSlurper; def res = []; if (prev.getResponseCode() == '200') { def jsonSlurper = new JsonSlurper(); res = jsonSlurper.parseText(prev.getResponseDataAsString()); assert res instanceof Map; assert res.code == 200; assert res.name == "Policy API"; assert res.healthy==true; assert res.message=="alive"; } Accept application/json Content-Type application/json https://${POLICY_API_HOST}:6969/policy/api/v1/healthcheck healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/api_perf_health.log continue false -1 ${USERS} 1 true ${DURATION} 1 ${POLICY_API_HOST} 6969 https policy/api/v1/statistics GET true false true false Basic Health Check 200 Assertion.response_code false 1 groovy true import groovy.json.JsonSlurper; def res = []; if (prev.getResponseCode() == '200') { def jsonSlurper = new JsonSlurper(); res = jsonSlurper.parseText(prev.getResponseDataAsString()); assert res instanceof Map; assert res.code == 200; assert res.totalApiCallCount == 0; assert res.apiCallSuccessCount==0; assert res.apiCallFailureCount==0; assert res.totalPolicyGetCount==0; assert res.totalPolicyPostCount==0; assert res.policyGetSuccessCount==0; assert res.policyGetFailureCount==0; } Accept application/json Content-Type application/json https://${POLICY_API_HOST}:6969/policy/api/v1/statistics healthcheck zb!XztG34 true false saveConfig true true true true true true true false true true false false false true false false false true 0 true true true true true true /tmp/api_perf_stats.log