aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Berger <stefanb@us.ibm.com>2010-04-02 13:28:28 -0400
committerStefan Berger <stefanb@us.ibm.com>2010-04-02 13:28:28 -0400
commit8459218cbcc680a76889e101550cda41432a72a7 (patch)
treed37a6e579bf90e4a39f6bed6dc06ddf86da646d2 /tests/nwfilterxml2xmlout/tcp-test.xml
parentThe following issues are fixed in the patch below: (diff)
downloadlibvirt-8459218cbcc680a76889e101550cda41432a72a7.tar.gz
libvirt-8459218cbcc680a76889e101550cda41432a72a7.tar.bz2
libvirt-8459218cbcc680a76889e101550cda41432a72a7.zip
This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tests/nwfilterxml2xmlout/tcp-test.xml')
-rw-r--r--tests/nwfilterxml2xmlout/tcp-test.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/nwfilterxml2xmlout/tcp-test.xml b/tests/nwfilterxml2xmlout/tcp-test.xml
new file mode 100644
index 000000000..a13afe149
--- /dev/null
+++ b/tests/nwfilterxml2xmlout/tcp-test.xml
@@ -0,0 +1,12 @@
+<filter name='testcase' chain='root'>
+ <uuid>5c6d49af-b071-6127-b4ec-6f8ed4b55335</uuid>
+ <rule action='accept' direction='out' priority='500'>
+ <tcp srcmacaddr='01:02:03:04:05:06' dstipaddr='10.1.2.3' dstipmask='32' dscp='2'/>
+ </rule>
+ <rule action='accept' direction='in' priority='500'>
+ <tcp srcmacaddr='01:02:03:04:05:06' srcipaddr='10.1.2.3' srcipmask='32' dscp='33' srcportstart='20' srcportend='21' dstportstart='100' dstportend='1111'/>
+ </rule>
+ <rule action='accept' direction='in' priority='500'>
+ <tcp srcmacaddr='01:02:03:04:05:06' srcipaddr='10.1.2.3' srcipmask='32' dscp='63' srcportstart='255' srcportend='256' dstportstart='65535'/>
+ </rule>
+</filter>