From: Ana Rey <anarey@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: Ana Rey <anarey@gmail.com>
Subject: [libnftnl PATCH] tests: Add json and xml test file for queue
Date: Mon, 16 Jun 2014 11:06:38 +0200 [thread overview]
Message-ID: <1402909598-24943-2-git-send-email-anarey@gmail.com> (raw)
In-Reply-To: <1402909598-24943-1-git-send-email-anarey@gmail.com>
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
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>
+
--
2.0.0
next prev parent reply other threads:[~2014-06-16 9:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-16 9:06 [libnftnl PATCH] expr: queue: Use snprintf and SNPRINTF_BUFFER_SIZE in snprintf_default functions Ana Rey
2014-06-16 9:06 ` Ana Rey [this message]
2014-06-16 10:17 ` [libnftnl PATCH] tests: Add json and xml test file for queue Pablo Neira Ayuso
2014-06-16 10:15 ` [libnftnl PATCH] expr: queue: Use snprintf and SNPRINTF_BUFFER_SIZE in snprintf_default functions Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402909598-24943-2-git-send-email-anarey@gmail.com \
--to=anarey@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).