From 55865506405530757256d08c372425c653144482 Mon Sep 17 00:00:00 2001 From: Jiyong Huang Date: Fri, 5 Aug 2022 11:22:25 +0800 Subject: [PATCH] test: try to fix the shared source rule timeout problem Signed-off-by: Jiyong Huang --- test/shared_source_rules.jmx | 147 ++++++++++++++++++++++++++--------- 1 file changed, 111 insertions(+), 36 deletions(-) diff --git a/test/shared_source_rules.jmx b/test/shared_source_rules.jmx index 4d2fe90d04..8a5ca86276 100644 --- a/test/shared_source_rules.jmx +++ b/test/shared_source_rules.jmx @@ -172,7 +172,7 @@ false { - "id": "rule1", + "id": "ruleShared1", "sql": "SELECT * FROM demo WHERE temperature > 30", "actions": [ { @@ -206,7 +206,7 @@ - Rule rule1 was created + Rule ruleShared1 was created Assertion.response_data @@ -223,7 +223,7 @@ ${rest_port} - /rules/rule1/status + /rules/ruleShared1/status GET true false @@ -251,7 +251,7 @@ false { - "id": "rule2", + "id": "ruleShared2", "sql": "SELECT * FROM demo WHERE humidity > 50", "actions": [ { @@ -285,7 +285,7 @@ - Rule rule2 was created + Rule ruleShared2 was created Assertion.response_data @@ -302,7 +302,7 @@ ${rest_port} - /rules/rule2/status + /rules/ruleShared2/status GET true false @@ -330,7 +330,7 @@ false { - "id": "rule3", + "id": "ruleShared3", "sql": "SELECT * FROM demo WHERE temperature < 30 and humidity < 50", "actions": [ { @@ -364,7 +364,7 @@ - Rule rule3 was created + Rule ruleShared3 was created Assertion.response_data @@ -381,7 +381,7 @@ ${rest_port} - /rules/rule3/status + /rules/ruleShared3/status GET true false @@ -410,7 +410,7 @@ ${rest_port} - /rules/rule1/restart + /rules/ruleShared1/restart POST true false @@ -423,7 +423,7 @@ - Rule rule1 was restarted + Rule ruleShared1 was restarted Assertion.response_data @@ -432,6 +432,35 @@ + + + + + ${srv} + ${rest_port} + + + /rules/ruleShared1/status + GET + true + false + true + false + + + + + + + $.source_demo_0_records_in_total + 0 + true + false + false + false + + + @@ -440,7 +469,7 @@ ${rest_port} - /rules/rule2/restart + /rules/ruleShared2/restart POST true false @@ -453,7 +482,7 @@ - Rule rule2 was restarted + Rule ruleShared2 was restarted Assertion.response_data @@ -462,6 +491,35 @@ + + + + + ${srv} + ${rest_port} + + + /rules/ruleShared2/status + GET + true + false + true + false + + + + + + + $.source_demo_0_records_in_total + 0 + true + false + false + false + + + @@ -470,7 +528,7 @@ ${rest_port} - /rules/rule3/restart + /rules/ruleShared3/restart POST true false @@ -483,7 +541,7 @@ - Rule rule3 was restarted + Rule ruleShared3 was restarted Assertion.response_data @@ -492,6 +550,35 @@ + + + + + ${srv} + ${rest_port} + + + /rules/ruleShared3/status + GET + true + false + true + false + + + + + + + $.source_demo_0_records_in_total + 0 + true + false + false + false + + + true 10 @@ -528,7 +615,7 @@ ${rest_port} - /rules/rule1/status + /rules/ruleShared1/status GET true false @@ -557,10 +644,6 @@ false - - 5000 - - @@ -570,7 +653,7 @@ ${rest_port} - /rules/rule1 + /rules/ruleShared1 DELETE true false @@ -583,7 +666,7 @@ - Rule rule1 is dropped. + Rule ruleShared1 is dropped. Assertion.response_data @@ -600,7 +683,7 @@ ${rest_port} - /rules/rule2/status + /rules/ruleShared2/status GET true false @@ -629,10 +712,6 @@ false - - 5000 - - @@ -642,7 +721,7 @@ ${rest_port} - /rules/rule2 + /rules/ruleShared2 DELETE true false @@ -655,7 +734,7 @@ - Rule rule2 is dropped. + Rule ruleShared2 is dropped. Assertion.response_data @@ -672,7 +751,7 @@ ${rest_port} - /rules/rule3/status + /rules/ruleShared3/status GET true false @@ -701,10 +780,6 @@ false - - 5000 - - @@ -714,7 +789,7 @@ ${rest_port} - /rules/rule3 + /rules/ruleShared3 DELETE true false @@ -727,7 +802,7 @@ - Rule rule3 is dropped. + Rule ruleShared3 is dropped. Assertion.response_data