diff mbox

[libnftnl] tests: Add json and xml test file for queue

Message ID 1402909598-24943-2-git-send-email-anarey@gmail.com
State Accepted
Headers show

Commit Message

Ana Rey June 16, 2014, 9:06 a.m. UTC
New xml and json test files.

Signed-off-by: Ana Rey <anarey@gmail.com>
---
 tests/jsonfiles/66-rule-queue.json | 1 +
 tests/jsonfiles/67-rule-queue.json | 1 +
 tests/xmlfiles/77-rule-queue.xml   | 1 +
 tests/xmlfiles/78-rule-queue.xml   | 2 ++
 4 files changed, 5 insertions(+)
 create mode 100644 tests/jsonfiles/66-rule-queue.json
 create mode 100644 tests/jsonfiles/67-rule-queue.json
 create mode 100644 tests/xmlfiles/77-rule-queue.xml
 create mode 100644 tests/xmlfiles/78-rule-queue.xml

Comments

Pablo Neira Ayuso June 16, 2014, 10:17 a.m. UTC | #1
On Mon, Jun 16, 2014 at 11:06:38AM +0200, Ana Rey wrote:
> New xml and json test files.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/jsonfiles/66-rule-queue.json b/tests/jsonfiles/66-rule-queue.json
new file mode 100644
index 0000000..016110e
--- /dev/null
+++ b/tests/jsonfiles/66-rule-queue.json
@@ -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
index 0000000..0fefd68
--- /dev/null
+++ b/tests/jsonfiles/67-rule-queue.json
@@ -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
index 0000000..3073b47
--- /dev/null
+++ b/tests/xmlfiles/77-rule-queue.xml
@@ -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
index 0000000..1876af7
--- /dev/null
+++ b/tests/xmlfiles/78-rule-queue.xml
@@ -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>
+