]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: Add tests for low level json import
authorShyam Saini <mayhs11saini@gmail.com>
Tue, 5 Dec 2017 14:07:35 +0000 (19:37 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 17 Jan 2018 15:31:03 +0000 (16:31 +0100)
commit43de6bba7cc8ac0b0aa4d6065e4e544270e58444
tree9ee70833df0691bbb55eae35668e891912c4394d
parent2fa54d8a49352bda44d3e25d1d7ba3531faf3303
tests: shell: Add tests for low level json import

Test "nft import vm json".

Basically it loads same set of rules by "nft -f" and "nft import vm json"
and prints differences (if any) in the ruleset listed by "nft list
ruleset" in each case.

For Example:
$ ./run-tests.sh testcases/import/vm_json_import_0

Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/import/vm_json_import_0 [new file with mode: 0755]