|
@@ -1,21 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!--
|
|
|
- ~ Copyright 2021 EMQ Technologies Co., Ltd.
|
|
|
- ~
|
|
|
- ~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
- ~ you may not use this file except in compliance with the License.
|
|
|
- ~ You may obtain a copy of the License at
|
|
|
- ~
|
|
|
- ~ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
- ~
|
|
|
- ~ Unless required by applicable law or agreed to in writing, software
|
|
|
- ~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
- ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
- ~ See the License for the specific language governing permissions and
|
|
|
- ~ limitations under the License.
|
|
|
- -->
|
|
|
-
|
|
|
-<jmeterTestPlan version="1.2" properties="4.0" jmeter="4.0 r1823414">
|
|
|
+<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3">
|
|
|
<hashTree>
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
@@ -54,6 +38,7 @@
|
|
|
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
|
</ThreadGroup>
|
|
|
<hashTree>
|
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|
|
@@ -92,7 +77,7 @@
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
</ResultCollector>
|
|
|
<hashTree/>
|
|
|
- <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="API" enabled="true">
|
|
|
+ <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Zmq plugin" enabled="true">
|
|
|
<boolProp name="TransactionController.includeTimers">false</boolProp>
|
|
|
<boolProp name="TransactionController.parent">false</boolProp>
|
|
|
</TransactionController>
|
|
@@ -279,12 +264,455 @@
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.sink_rest_0_0_records_in_total</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">2</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">1000</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="287881319">Stream demo is dropped.</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropPlugin" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sources/zmq</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="-1776925942">sources plugin zmq is deleted</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Tdengine plugin" enabled="true">
|
|
|
+ <boolProp name="TransactionController.includeTimers">false</boolProp>
|
|
|
+ <boolProp name="TransactionController.parent">false</boolProp>
|
|
|
+ </TransactionController>
|
|
|
+ <hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
+ "name":"tdengine",
|
|
|
+ "file":"http://127.0.0.1:9090/plugins/tdengine.zip"
|
|
|
+}</stringProp>
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
+ </elementProp>
|
|
|
+ </collectionProp>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sinks</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="49587">201</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sinks/tdengine</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="1854895282">tdengine</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
+"sql" : "create stream demo (humidity bigint, temperature bigint) WITH (DATASOURCE=\"events\", FORMAT=\"JSON\", TYPE=\"mqtt\")"
|
|
|
+}</stringProp>
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
+ </elementProp>
|
|
|
+ </collectionProp>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/streams</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="-1754954177">Stream demo is created.</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
|
|
|
+ <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
+ <collectionProp name="Arguments.arguments">
|
|
|
+ <elementProp name="" elementType="HTTPArgument">
|
|
|
+ <boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
+ "id": "rule1",
|
|
|
+ "sql": "SELECT * FROM demo",
|
|
|
+ "actions": [
|
|
|
+ {
|
|
|
+ "tdengine": {
|
|
|
+ "provideTs": false,
|
|
|
+ "tsFieldName": "time",
|
|
|
+ "port": 0,
|
|
|
+ "ip": "taos",
|
|
|
+ "user": "root",
|
|
|
+ "password": "taosdata",
|
|
|
+ "database": "sensor",
|
|
|
+ "table": "t1",
|
|
|
+ "fields": [
|
|
|
+ "temperature","humidity"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}</stringProp>
|
|
|
+ <stringProp name="Argument.metadata">=</stringProp>
|
|
|
+ </elementProp>
|
|
|
+ </collectionProp>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="-2022196798">Rule rule1 was created</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.sink_tdengine_0_0_records_in_total</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">0</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">1000</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/streams/demo</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="287881319">Stream demo is dropped.</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropPlugin" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sinks/tdengine</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="-1724150076">sinks plugin tdengine is deleted</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Sql plugin" enabled="true">
|
|
|
+ <boolProp name="TransactionController.includeTimers">false</boolProp>
|
|
|
+ <boolProp name="TransactionController.parent">false</boolProp>
|
|
|
+ </TransactionController>
|
|
|
+ <hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_AddPlugin" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
- <stringProp name="Argument.value"></stringProp>
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
+ "name":"sql",
|
|
|
+ "file":"http://127.0.0.1:9090/plugins/sql.zip"
|
|
|
+}</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
@@ -293,8 +721,8 @@
|
|
|
<stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
- <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
|
|
|
- <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sinks</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
@@ -304,27 +732,60 @@
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
- <stringProp name="JSON_PATH">$.sink_rest_0_0_records_in_total</stringProp>
|
|
|
- <stringProp name="EXPECTED_VALUE">2</stringProp>
|
|
|
- <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
- <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
- <boolProp name="INVERT">false</boolProp>
|
|
|
- <boolProp name="ISREGEX">false</boolProp>
|
|
|
- </JSONPathAssertion>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="49587">201</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
<ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
- <stringProp name="ConstantTimer.delay">1000</stringProp>
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
</ConstantTimer>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DescPlugin" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sinks/sql</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="114126">sql</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateStream" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
- <stringProp name="Argument.value"></stringProp>
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
+"sql" : "create stream demo (humidity bigint, temperature bigint) WITH (DATASOURCE=\"events\", FORMAT=\"JSON\", TYPE=\"mqtt\")"
|
|
|
+}</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
@@ -333,8 +794,8 @@
|
|
|
<stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
- <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
|
|
|
- <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/streams</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
@@ -346,22 +807,34 @@
|
|
|
<hashTree>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
- <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
|
|
|
+ <stringProp name="-1754954177">Stream demo is created.</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
- <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_CreateRule" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
<elementProp name="" elementType="HTTPArgument">
|
|
|
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
|
- <stringProp name="Argument.value"></stringProp>
|
|
|
+ <stringProp name="Argument.value">{
|
|
|
+ "id": "rule1",
|
|
|
+ "sql": "SELECT * FROM demo",
|
|
|
+ "actions": [
|
|
|
+ {
|
|
|
+ "sql": {
|
|
|
+ "url": "mysql://user:test@10.10.20.147/user?parseTime=true",
|
|
|
+ "table": "test",
|
|
|
+ "fields": ["id","name","registerTime"]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
@@ -370,6 +843,103 @@
|
|
|
<stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">POST</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="-2022196798">Rule rule1 was created</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">true</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">500</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_GetRuleStatus" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/rule1/status</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON Assertion" enabled="true">
|
|
|
+ <stringProp name="JSON_PATH">$.sink_sql_0_0_records_in_total</stringProp>
|
|
|
+ <stringProp name="EXPECTED_VALUE">0</stringProp>
|
|
|
+ <boolProp name="JSONVALIDATION">true</boolProp>
|
|
|
+ <boolProp name="EXPECT_NULL">false</boolProp>
|
|
|
+ <boolProp name="INVERT">false</boolProp>
|
|
|
+ <boolProp name="ISREGEX">false</boolProp>
|
|
|
+ </JSONPathAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true">
|
|
|
+ <stringProp name="ConstantTimer.delay">1000</stringProp>
|
|
|
+ </ConstantTimer>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_DropRule" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/rules/rule1</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
+ <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
+ <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
+ <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
+ </HTTPSamplerProxy>
|
|
|
+ <hashTree>
|
|
|
+ <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
+ <collectionProp name="Asserion.test_strings">
|
|
|
+ <stringProp name="717250485">Rule rule1 is dropped.</stringProp>
|
|
|
+ </collectionProp>
|
|
|
+ <stringProp name="Assertion.custom_message"></stringProp>
|
|
|
+ <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
+ <boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
+ <intProp name="Assertion.test_type">16</intProp>
|
|
|
+ </ResponseAssertion>
|
|
|
+ <hashTree/>
|
|
|
+ </hashTree>
|
|
|
+ <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="API_Drop_Stream" enabled="true">
|
|
|
+ <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
|
|
|
+ <collectionProp name="Arguments.arguments"/>
|
|
|
+ </elementProp>
|
|
|
+ <stringProp name="HTTPSampler.domain">${srv}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
+ <stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">/streams/demo</stringProp>
|
|
|
<stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
@@ -400,7 +970,7 @@
|
|
|
<stringProp name="HTTPSampler.port">${rest_port}</stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
- <stringProp name="HTTPSampler.path">/plugins/sources/zmq</stringProp>
|
|
|
+ <stringProp name="HTTPSampler.path">/plugins/sinks/sql</stringProp>
|
|
|
<stringProp name="HTTPSampler.method">DELETE</stringProp>
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
@@ -413,7 +983,7 @@
|
|
|
<hashTree>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
- <stringProp name="-1776925942">sources plugin zmq is deleted</stringProp>
|
|
|
+ <stringProp name="367681890">sinks plugin sql is deleted</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="Assertion.custom_message"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
@@ -439,6 +1009,7 @@
|
|
|
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
+ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
|
</ThreadGroup>
|
|
|
<hashTree>
|
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
|