Validating Attributes

Exact Matching

<test name="test_wod_attr_1">
		<flow>flow1</flow>
		<description>Test wod : attributes validation</description>
		<inject mod="getSo">
			<so orderId="1">
			<sod/>
			<pod/>
			<wod podId="1">
				<attr name="commandName" value="my_command"/>
			</wod>
			</so>
		</inject>
		<expect mod="port1">
			<so orderId="1">
			<sod/>
			<pod/>
			<wod podId="1">
				<attr name="commandName" value="my_command"/>
			</wod>
			</so>
		</expect>
	</test>

Regexp Matching

<test name="test_wod_attr_2">
		<flow>flow1</flow>
		<description>Test wod : attributes validation</description>
		<inject mod="getSo">
			<so orderId="1">
			<sod/>
			<pod/>
			<wod podId="1">
				<attr name="commandName" value="my_command"/>
			</wod>
			</so>
		</inject>
		<expect mod="port1">
			<so orderId="1">
			<sod/>
			<pod/>
			<wod podId="1">
				<attr name="commandName" reValue="command$"/>
			</wod>
			</so>
		</expect>
	</test>