Validating Attributes

Exact Matching

<test name="test_so_attr_0">
		<flow>flow1</flow>
		<description> Test basic so attributes setting </description>
		<inject mod="getSo">
			<so orderId="1">
			<attr name="sortToken" value="sort"/>
			</so>
		</inject>
		<expect mod="port1">
			<so orderId="1">
			<attr name="sortToken" value="sort"/>
			</so>
		</expect>
	</test>

Regexp Matching

<test name="test_so_attr_3">
		<flow>flow1</flow>
		<description>Test so : attribute regexp validation</description>
		<inject mod="getSo">
			<so orderId="1">
			<attr name="priority" value="123456"/>
			</so>
		</inject>
		<expect mod="port1">
			<so orderId="1">
			<attr name="priority" reValue="[0-9]*"/>
			</so>
		</expect>
	</test>