]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
tests: Add json and xml test file for queue
authorAna Rey <anarey@gmail.com>
Mon, 16 Jun 2014 09:06:38 +0000 (11:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Jun 2014 10:16:20 +0000 (12:16 +0200)
New xml and json test files.

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/jsonfiles/66-rule-queue.json [new file with mode: 0644]
tests/jsonfiles/67-rule-queue.json [new file with mode: 0644]
tests/xmlfiles/77-rule-queue.xml [new file with mode: 0644]
tests/xmlfiles/78-rule-queue.xml [new file with mode: 0644]

diff --git a/tests/jsonfiles/66-rule-queue.json b/tests/jsonfiles/66-rule-queue.json
new file mode 100644 (file)
index 0000000..016110e
--- /dev/null
@@ -0,0 +1 @@
+{"nftables":[{"rule":{"family":"ip","table":"filter","chain":"input","handle":43,"expr":[{"type":"queue","num":4,"total":2,"flags":0}]}}]}
diff --git a/tests/jsonfiles/67-rule-queue.json b/tests/jsonfiles/67-rule-queue.json
new file mode 100644 (file)
index 0000000..0fefd68
--- /dev/null
@@ -0,0 +1 @@
+{"nftables":[{"rule":{"family":"ip","table":"filter","chain":"input","handle":44,"position":43,"expr":[{"type":"queue","num":4,"total":2,"flags":3}]}}]}
diff --git a/tests/xmlfiles/77-rule-queue.xml b/tests/xmlfiles/77-rule-queue.xml
new file mode 100644 (file)
index 0000000..3073b47
--- /dev/null
@@ -0,0 +1 @@
+<nftables><rule><family>ip</family><table>filter</table><chain>input</chain><handle>43</handle><expr type="queue"><num>4</num><total>2</total><flags>0</flags></expr></rule></nftables>
diff --git a/tests/xmlfiles/78-rule-queue.xml b/tests/xmlfiles/78-rule-queue.xml
new file mode 100644 (file)
index 0000000..1876af7
--- /dev/null
@@ -0,0 +1,2 @@
+<nftables><rule><family>ip</family><table>filter</table><chain>input</chain><handle>44</handle><position>43</position><expr type="queue"><num>4</num><total>2</total><flags>3</flags></expr></rule></nftables>
+