Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1337 lines (1316 sloc) 32.8 KB
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="Ruleset.xsl"?><ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Ruleset.xsd"> <testinput> <entry> <key>test.eq.alpha</key> <value>abc</value> </entry> <entry> <key>test.eq.num</key> <value>123</value> </entry> <entry> <key>test.sw</key> <value>abc</value> </entry> <entry> <key>test.ew</key> <value>abc</value> </entry> <entry> <key>test.ct</key> <value>abc</value> </entry> <entry> <key>test.lt.alpha</key> <value>abc</value> </entry> <entry> <key>test.lt.num</key> <value>123</value> </entry> <entry> <key>test.gt.alpha</key> <value>abc</value> </entry> <entry> <key>test.gt.num</key> <value>123</value> </entry> <entry> <key>test.source</key> <value>abc</value> </entry> <entry> <key>test.actionsource</key> <value>xxx</value> </entry> </testinput> <testoutput> <entry> <key>test.ct.pass</key> <value>OK</value> </entry> <entry> <key>test.eq.alpha.fail</key> <value>OK</value> </entry> <entry> <key>test.gt.alpha.pass</key> <value>OK</value> </entry> <entry> <key>test.gt.num.pass</key> <value>OK</value> </entry> <entry> <key>test.gt.num.fail</key> <value>OK</value> </entry> <entry> <key>test.sw.fail</key> <value>OK</value> </entry> <entry> <key>test.lt.num.pass</key> <value>OK</value> </entry> <entry> <key>test.ew.fail</key> <value>OK</value> </entry> <entry> <key>test.eq.num.fail</key> <value>OK</value> </entry> <entry> <key>test.actionsource.output</key> <value>OK</value> </entry> <entry> <key>test.source.static_static</key> <value>OK</value> </entry> <entry> <key>test.ct.fail</key> <value>OK</value> </entry> <entry> <key>test.actionsource.input</key> <value>OK</value> </entry> <entry> <key>actionsource.output</key> <value>xxx</value> </entry> <entry> <key>test.lt.alpha.fail</key> <value>OK</value> </entry> <entry> <key>test.source.static_output</key> <value>OK</value> </entry> <entry> <key>test.sw.pass</key> <value>OK</value> </entry> <entry> <key>test.lt.num.fail</key> <value>OK</value> </entry> <entry> <key>actionsource.static</key> <value>xxx</value> </entry> <entry> <key>test.source.input_static</key> <value>OK</value> </entry> <entry> <key>test.gt.alpha.fail</key> <value>OK</value> </entry> <entry> <key>test.source.output_static</key> <value>OK</value> </entry> <entry> <key>test.eq.num.pass</key> <value>OK</value> </entry> <entry> <key>actionsource.input</key> <value>xxx</value> </entry> <entry> <key>test.source.output</key> <value>xxx</value> </entry> <entry> <key>test.source.static_input</key> <value>OK</value> </entry> <entry> <key>test.actionsource.static</key> <value>OK</value> </entry> <entry> <key>test.lt.alpha.pass</key> <value>OK</value> </entry> <entry> <key>test.ew.pass</key> <value>OK</value> </entry> <entry> <key>test.eq.alpha.pass</key> <value>OK</value> </entry> <entry> <key>test.not.condition.pass</key> <value>OK</value> </entry> <entry> <key>test.not.condition.fail</key> <value>OK</value> </entry> <entry> <key>test.not.clause.pass</key> <value>OK</value> </entry> <entry> <key>test.not.clause.fail</key> <value>OK</value> </entry> <entry> <key>test.clause.and.pass</key> <value>OK</value> </entry> <entry> <key>test.clause.and.fail</key> <value>OK</value> </entry> <entry> <key>test.clause.or.pass</key> <value>OK</value> </entry> <entry> <key>test.clause.or.fail</key> <value>OK</value> </entry> <entry> <key>test.nested.or_and.pass</key> <value>OK</value> </entry> <entry> <key>test.nested.or_and.fail</key> <value>OK</value> </entry> <entry> <key>test.nested.and_or.pass</key> <value>OK</value> </entry> <entry> <key>test.nested.and_or.fail</key> <value>OK</value> </entry> <entry> <key>test.nested.rule.outer.pass</key> <value>OK</value> </entry> <entry> <key>test.nested.rule.inner.pass</key> <value>OK</value> </entry> <entry> <key>test.nested.rule.outer.fail</key> <value>OK</value> </entry> <entry> <key>test.nested.rule.inner.fail</key> <value>OK</value> </entry>
<entry> <key>test.nested.action_order.01</key> <value>OK</value> </entry> <entry> <key>test.nested.action_order.02</key> <value>OK</value> </entry> </testoutput> <rule id="test.eq.alpha.pass"> <conditions> <condition op="eq"> <input source="input">test.eq.alpha</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.eq.alpha.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.eq.alpha.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.eq.alpha.fail"> <conditions> <condition op="eq"> <input source="input">test.eq.alpha</input> <control source="static">def</control> </condition> </conditions> <success> <output> <key>test.eq.alpha.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.eq.alpha.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.eq.num.pass"> <conditions> <condition op="eq"> <input source="input">test.eq.num</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.eq.num.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.eq.num.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.eq.num.fail"> <conditions> <condition op="eq"> <input source="input">test.eq.num</input> <control source="static">456</control> </condition> </conditions> <success> <output> <key>test.eq.num.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.eq.num.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.sw.pass"> <conditions> <condition op="sw"> <input source="input">test.sw</input> <control source="static">a</control> </condition> </conditions> <success> <output> <key>test.sw.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.sw.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.sw.fail"> <conditions> <condition op="sw"> <input source="input">test.sw</input> <control source="static">c</control> </condition> </conditions> <success> <output> <key>test.sw.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.sw.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.ew.pass"> <conditions> <condition op="ew"> <input source="input">test.ew</input> <control source="static">c</control> </condition> </conditions> <success> <output> <key>test.ew.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.ew.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.ew.fail"> <conditions> <condition op="ew"> <input source="input">test.ew</input> <control source="static">b</control> </condition> </conditions> <success> <output> <key>test.ew.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.ew.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.ct.pass"> <conditions> <condition op="ct"> <input source="input">test.ct</input> <control source="static">bc</control> </condition> </conditions> <success> <output> <key>test.ct.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.ct.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.ct.fail"> <conditions> <condition op="ct"> <input source="input">test.ct</input> <control source="static">x</control> </condition> </conditions> <success> <output> <key>test.ct.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.ct.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.lt.alpha.pass"> <conditions> <condition op="lt"> <input source="input">test.lt.alpha</input> <control source="static">bbb</control> </condition> </conditions> <success> <output> <key>test.lt.alpha.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.lt.alpha.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.lt.alpha.fail"> <conditions> <condition op="lt"> <input source="input">test.lt.alpha</input> <control source="static">aaa</control> </condition> </conditions> <success> <output> <key>test.lt.alpha.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.lt.alpha.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.lt.num.pass"> <conditions> <condition op="lt"> <input source="input">test.lt.num</input> <control source="static">234</control> </condition> </conditions> <success> <output> <key>test.lt.num.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.lt.num.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.lt.num.fail"> <conditions> <condition op="lt"> <input source="input">test.eq.num</input> <control source="static">111</control> </condition> </conditions> <success> <output> <key>test.lt.num.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.lt.num.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.gt.alpha.pass"> <conditions> <condition op="gt"> <input source="input">test.gt.alpha</input> <control source="static">aaa</control> </condition> </conditions> <success> <output> <key>test.gt.alpha.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.gt.alpha.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.gt.alpha.fail"> <conditions> <condition op="gt"> <input source="input">test.gt.alpha</input> <control source="static">bbb</control> </condition> </conditions> <success> <output> <key>test.gt.alpha.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.gt.alpha.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.gt.num.pass"> <conditions> <condition op="gt"> <input source="input">test.gt.num</input> <control source="static">111</control> </condition> </conditions> <success> <output> <key>test.gt.num.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.gt.num.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.gt.num.fail"> <conditions> <condition op="gt"> <input source="input">test.gt.num</input> <control source="static">222</control> </condition> </conditions> <success> <output> <key>test.gt.num.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.gt.num.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.source.static_static"> <conditions> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.source.static_static</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.source.static_static</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.source.input_static"> <conditions> <condition op="eq"> <input source="input">test.source</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.source.input_static</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.source.input_static</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.source.output_static.init"> <success> <output> <key>test.source.output</key> <value source="static">xxx</value> </output> </success> </rule> <rule id="test.source.output_static"> <conditions> <condition op="eq"> <input source="output">test.source.output</input> <control source="static">xxx</control> </condition> </conditions> <success> <output> <key>test.source.output_static</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.source.output_static</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.source.static_input"> <conditions> <condition op="eq"> <input source="static">abc</input> <control source="input">test.source</control> </condition> </conditions> <success> <output> <key>test.source.static_input</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.source.static_input</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.source.static_output"> <conditions> <condition op="eq"> <input source="static">xxx</input> <control source="output">test.source.output</control> </condition> </conditions> <success> <output> <key>test.source.static_output</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.source.static_output</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.actionsource.static_init"> <success> <output> <key>actionsource.static</key> <value source="static">xxx</value> </output> </success> </rule> <rule id="test.actionsource.input_init"> <success> <output> <key>actionsource.input</key> <value source="input">test.actionsource</value> </output> </success> </rule> <rule id="test.actionsource.output_init"> <success> <output> <key>actionsource.output</key> <value source="output">actionsource.static</value> </output> </success> </rule> <rule id="test.actionsource.static"> <conditions> <condition op="eq"> <input source="output">actionsource.static</input> <control source="static">xxx</control> </condition> </conditions> <success> <output> <key>test.actionsource.static</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.actionsource.static</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.actionsource.input"> <conditions> <condition op="eq"> <input source="output">actionsource.input</input> <control source="static">xxx</control> </condition> </conditions> <success> <output> <key>test.actionsource.input</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.actionsource.input</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.actionsource.output"> <conditions> <condition op="eq"> <input source="output">actionsource.output</input> <control source="static">xxx</control> </condition> </conditions> <success> <output> <key>test.actionsource.output</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.actionsource.output</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.not.condition.pass"> <conditions> <condition op="eq" not="1"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.not.condition.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.not.condition.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.not.condition.fail"> <conditions> <condition op="eq" not="1"> <input source="static">abc</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.not.condition.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.not.condition.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.not.clause.pass"> <conditions not="1"> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.not.clause.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.not.clause.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.not.clause.fail"> <conditions not="1"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.not.clause.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.not.clause.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.clause.and.pass"> <conditions op="and"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq" not="1"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.clause.and.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.clause.and.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.clause.and.fail"> <conditions op="and"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.clause.and.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.clause.and.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.clause.or.pass"> <conditions op="or"> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.clause.or.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.clause.or.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.clause.or.fail"> <conditions op="or"> <condition op="eq" not="1"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.clause.or.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.clause.or.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.nested.or_and.pass"> <conditions op="or"> <conditions op="and"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">abc</input> <control source="static">123</control> </condition> </conditions> <conditions op="and"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> </conditions> <success> <output> <key>test.nested.or_and.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.nested.or_and.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.nested.or_and.fail"> <conditions op="or"> <conditions op="and"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">abc</input> <control source="static">123</control> </condition> </conditions> <conditions op="and"> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">xxx</input> <control source="static">123</control> </condition> </conditions> </conditions> <success> <output> <key>test.nested.or_and.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.nested.or_and.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.nested.and_or.pass"> <conditions op="and"> <conditions op="or"> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <conditions op="or"> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> <condition op="eq" not="1"> <input source="static">abc</input> <control source="static">123</control> </condition> </conditions> </conditions> <success> <output> <key>test.nested.and_or.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.nested.and_or.pass</key> <value source="static">BAD</value> </output> </failure> </rule> <rule id="test.nested.and_or.fail"> <conditions op="and"> <conditions op="or"> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <conditions op="or"> <condition op="eq" not="1"> <input source="static">abc</input> <control source="static">abc</control> </condition> <condition op="eq"> <input source="static">abc</input> <control source="static">123</control> </condition> </conditions> </conditions> <success> <output> <key>test.nested.and_or.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.nested.and_or.fail</key> <value source="static">OK</value> </output> </failure> </rule> <rule id="test.nested.rule.pass"> <conditions> <condition op="eq" not="1"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.nested.rule.outer.pass</key> <value source="static">OK</value> </output> <rule> <conditions> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.nested.rule.inner.pass</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.nested.rule.inner.pass</key> <value source="static">BAD</value> </output> </failure> </rule> </success> <failure> <output> <key>test.nested.rule.pass</key> <value source="static">BAD</value> </output> <rule> <conditions> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.nested.rule.inner.pass</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.nested.rule.inner.pass</key> <value source="static">BAD</value> </output> </failure> </rule> </failure> </rule> <rule id="test.nested.rule.fail"> <conditions> <condition op="eq"> <input source="static">123</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.nested.rule.outer.fail</key> <value source="static">BAD</value> </output> <rule> <conditions> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.nested.rule.inner.fail</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.nested.rule.inner.fail</key> <value source="static">BAD</value> </output> </failure> </rule> </success> <failure> <output> <key>test.nested.rule.outer.fail</key> <value source="static">OK</value> </output> <rule> <conditions> <condition op="eq" not="1"> <input source="static">abc</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.nested.rule.inner.fail</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.nested.rule.inner.fail</key> <value source="static">BAD</value> </output> </failure> </rule> </failure> </rule>
<rule id="test.nested.action_order.01"> <conditions> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> </conditions> <success> <output> <key>test.nested.action_order.01</key> <value source="static">BAD</value> </output> <rule> <conditions> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.nested.action_order.01</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.nested.action_order.01</key> <value source="static">BAD</value> </output> </failure> </rule> </success> <failure> <output> <key>test.nested.action_order.01</key> <value source="static">BAD</value> </output> </failure>
</rule>
<rule id="test.nested.action_order.02"> <conditions> <condition op="eq"> <input source="static">abc</input> <control source="static">abc</control> </condition> </conditions> <success> <rule> <conditions> <condition op="eq"> <input source="static">123</input> <control source="static">123</control> </condition> </conditions> <success> <output> <key>test.nested.action_order.02</key> <value source="static">BAD</value> </output> </success> <failure> <output> <key>test.nested.action_order.02</key> <value source="static">BAD</value> </output> </failure> </rule> <output> <key>test.nested.action_order.02</key> <value source="static">OK</value> </output> </success> <failure> <output> <key>test.nested.action_order.02</key> <value source="static">BAD</value> </output>
</failure>
</rule></ruleset>