aboutsummaryrefslogtreecommitdiffstats
path: root/testsuites/stability
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2023-11-23 11:56:30 +0000
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>2023-11-23 16:32:08 +0000
commit55dce11197ad74b84c07764072015444949be2ed (patch)
tree456468297f5752cf88a3d6da6fe1497ce504552e /testsuites/stability
parent0800769e5eef120b290de12125a2cef157837deb (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.jmx39
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() == &apos;200&apos;) {
assert res.contains(&quot;spring_data_repository_invocations_seconds_sum&quot;)
assert res.contains(&quot;spring_data_repository_invocations_seconds_max&quot;)
assert res.contains(&quot;jvm_threads_live_threads&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/metrics\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/nodetemplates/{name}/versions/{version}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/healthcheck\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/nodetemplates/{name}/versions/{version}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/statistics\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{versionId}\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/nodetemplates\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policies\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/latest\&quot;,}&quot;)
- assert res.contains(&quot;http_server_requests_seconds_count{exception=\&quot;None\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policy/api/v1/policies/{policyId}/versions/{policyVersion}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes\&quot;,}&quot;)
+
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/nodetemplates/{name}/versions/{version}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/healthcheck\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/nodetemplates/{name}/versions/{version}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{versionId}\&quot;,}&quot;)
+
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/{policyVersion}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{versionId}\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/nodetemplates\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;POST\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policies\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;GET\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policytypes/{policyTypeId}/versions/{policyTypeVersion}/policies/{policyId}/versions/latest\&quot;,}&quot;)
+ assert res.contains(&quot;http_server_requests_seconds_count{error=\&quot;none\&quot;,exception=\&quot;none\&quot;,method=\&quot;DELETE\&quot;,outcome=\&quot;SUCCESS\&quot;,status=\&quot;200\&quot;,uri=\&quot;/policies/{policyId}/versions/{policyVersion}\&quot;,}&quot;)
}</stringProp>
</JSR223Assertion>
<hashTree/>
@@ -6892,7 +6891,7 @@ if (prev.getResponseCode() == &apos;200&apos;) {
<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() == &apos;200&apos;) {
<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">