| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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. |
| |
| --> |
| <pipeline> |
| <info> |
| <name>0001-http-post-test-headers</name> |
| <name_sync_with_filename>Y</name_sync_with_filename> |
| <description/> |
| <extended_description/> |
| <pipeline_version/> |
| <pipeline_type>Normal</pipeline_type> |
| <pipeline_status>0</pipeline_status> |
| <parameters> |
| <parameter> |
| <name>HOSTNAME</name> |
| <default_value>localhost</default_value> |
| <description/> |
| </parameter> |
| </parameters> |
| <capture_transform_performance>N</capture_transform_performance> |
| <transform_performance_capturing_delay>1000</transform_performance_capturing_delay> |
| <transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit> |
| <created_user>-</created_user> |
| <created_date>2021/09/27 10:47:43.922</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2021/09/27 10:47:43.922</modified_date> |
| <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> |
| <is_key_private>N</is_key_private> |
| </info> |
| <notepads> |
| </notepads> |
| <order> |
| <hop> |
| <from>Generate rows</from> |
| <to>HTTP post</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>check result</from> |
| <to>Abort</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>HTTP post</from> |
| <to>JSON input</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>JSON input</from> |
| <to>check result</to> |
| <enabled>Y</enabled> |
| </hop> |
| </order> |
| <transform> |
| <name>Abort</name> |
| <type>Abort</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <abort_option>ABORT_WITH_ERROR</abort_option> |
| <always_log_rows>Y</always_log_rows> |
| <row_threshold>0</row_threshold> |
| <attributes/> |
| <GUI> |
| <xloc>752</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Generate rows</name> |
| <type>RowGenerator</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| <field> |
| <length>-1</length> |
| <name>header</name> |
| <precision>-1</precision> |
| <set_empty_string>N</set_empty_string> |
| <type>String</type> |
| <nullif>headervalue</nullif> |
| </field> |
| </fields> |
| <interval_in_ms>5000</interval_in_ms> |
| <last_time_field>FiveSecondsAgo</last_time_field> |
| <never_ending>N</never_ending> |
| <limit>1</limit> |
| <row_time_field>now</row_time_field> |
| <attributes/> |
| <GUI> |
| <xloc>96</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>HTTP post</name> |
| <type>HttpPost</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <closeIdleConnectionsTime>-1</closeIdleConnectionsTime> |
| <connectionTimeout>10000</connectionTimeout> |
| <encoding>UTF-8</encoding> |
| <httpLogin/> |
| <httpPassword>Encrypted </httpPassword> |
| <result> |
| <code>result_field</code> |
| <name>result</name> |
| <response_header/> |
| <response_time/> |
| </result> |
| <lookup> |
| <arg> |
| <header>Y</header> |
| <name>header</name> |
| <parameter>header_parameter</parameter> |
| </arg> |
| </lookup> |
| <postafile>N</postafile> |
| <proxyHost/> |
| <proxyPort/> |
| <requestEntity/> |
| <socketTimeout>10000</socketTimeout> |
| <url>http://${HOSTNAME}/post</url> |
| <urlField/> |
| <urlInField>N</urlInField> |
| <attributes/> |
| <GUI> |
| <xloc>256</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>JSON input</name> |
| <type>JsonInput</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <include>N</include> |
| <include_field/> |
| <rownum>N</rownum> |
| <addresultfile>N</addresultfile> |
| <readurl>N</readurl> |
| <removeSourceField>N</removeSourceField> |
| <IsIgnoreEmptyFile>N</IsIgnoreEmptyFile> |
| <doNotFailIfNoFile>Y</doNotFailIfNoFile> |
| <ignoreMissingPath>Y</ignoreMissingPath> |
| <defaultPathLeafToNull>Y</defaultPathLeafToNull> |
| <rownum_field/> |
| <file> |
| <name/> |
| <filemask/> |
| <exclude_filemask/> |
| <file_required>N</file_required> |
| <include_subfolders>N</include_subfolders> |
| </file> |
| <fields> |
| <field> |
| <name>header_parameter</name> |
| <path>$.headers.Header-Parameter</path> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <length>-1</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| <repeat>N</repeat> |
| </field> |
| </fields> |
| <limit>0</limit> |
| <IsInFields>Y</IsInFields> |
| <IsAFile>N</IsAFile> |
| <valueField>result</valueField> |
| <shortFileFieldName/> |
| <pathFieldName/> |
| <hiddenFieldName/> |
| <lastModificationTimeFieldName/> |
| <uriNameFieldName/> |
| <rootUriNameFieldName/> |
| <extensionFieldName/> |
| <sizeFieldName/> |
| <attributes/> |
| <GUI> |
| <xloc>416</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>check result</name> |
| <type>FilterRows</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <send_true_to/> |
| <send_false_to/> |
| <compare> |
| <condition> |
| <negated>N</negated> |
| <conditions> |
| <condition> |
| <negated>Y</negated> |
| <leftvalue>result_field</leftvalue> |
| <function>=</function> |
| <rightvalue/> |
| <value> |
| <name>constant</name> |
| <type>Integer</type> |
| <text>200</text> |
| <length>-1</length> |
| <precision>0</precision> |
| <isnull>N</isnull> |
| <mask>#</mask> |
| </value> |
| </condition> |
| <condition> |
| <negated>Y</negated> |
| <operator>AND</operator> |
| <leftvalue>header_parameter</leftvalue> |
| <function>=</function> |
| <rightvalue/> |
| <value> |
| <name>constant</name> |
| <type>String</type> |
| <text>headervalue</text> |
| <length>-1</length> |
| <precision>-1</precision> |
| <isnull>N</isnull> |
| <mask/> |
| </value> |
| </condition> |
| </conditions> |
| </condition> |
| </compare> |
| <attributes/> |
| <GUI> |
| <xloc>576</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform_error_handling> |
| </transform_error_handling> |
| <attributes/> |
| </pipeline> |