diff options
author | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-11-23 11:56:30 +0000 |
---|---|---|
committer | rameshiyer27 <ramesh.murugan.iyer@est.tech> | 2023-11-23 16:32:08 +0000 |
commit | 55dce11197ad74b84c07764072015444949be2ed (patch) | |
tree | 456468297f5752cf88a3d6da6fe1497ce504552e /testsuites/stability | |
parent | 0800769e5eef120b290de12125a2cef157837deb (diff) |
Fix metrics validation in API jmx files
Issue-ID: POLICY-4845
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: I6933f2e88ab09cd5fedb1772b139c2e895b33f00
Diffstat (limited to 'testsuites/stability')
-rw-r--r-- | testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx b/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx index cb8b2133..a1514d8d 100644 --- a/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx +++ b/testsuites/stability/src/main/resources/testplans/policy_api_stability.jmx @@ -6713,24 +6713,23 @@ if (prev.getResponseCode() == '200') { assert res.contains("spring_data_repository_invocations_seconds_sum") assert res.contains("spring_data_repository_invocations_seconds_max") assert res.contains("jvm_threads_live_threads") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/metrics\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/nodetemplates/{name}/versions/{version}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/healthcheck\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/nodetemplates/{name}/versions/{version}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/statistics\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/nodetemplates\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policies\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/latest\",}") - assert res.contains("http_server_requests_seconds_count{exception=\"None\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policy/api/v1/policies/{policyId}/versions/{policyVersion}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes\",}") + + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/nodetemplates/{name}/versions/{version}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/healthcheck\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/nodetemplates/{name}/versions/{version}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{versionId}\",}") + + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{versionId}\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/nodetemplates\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"POST\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policies\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/latest\",}") + assert res.contains("http_server_requests_seconds_count{error=\"none\",exception=\"none\",method=\"DELETE\",outcome=\"SUCCESS\",status=\"200\",uri=\"/policies/{policyId}/versions/{policyVersion}\",}") }</stringProp> </JSR223Assertion> <hashTree/> @@ -6892,7 +6891,7 @@ if (prev.getResponseCode() == '200') { <connectTime>true</connectTime> </value> </objProp> - <stringProp name="filename">/home/ramesh/s3pTestResults.jtl</stringProp> + <stringProp name="filename">C:\Users\Ramesh\s3pTestResults.jtl</stringProp> </ResultCollector> <hashTree/> <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> @@ -6929,7 +6928,7 @@ if (prev.getResponseCode() == '200') { <connectTime>true</connectTime> </value> </objProp> - <stringProp name="filename">/home/ramesh/s3pTestResults.jtl</stringProp> + <stringProp name="filename">C:\Users\Ramesh\s3pTestResults.jtl</stringProp> </ResultCollector> <hashTree/> <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true"> |