From 2de594ccb99c70bc908a3f4cc477618babffff6b Mon Sep 17 00:00:00 2001 From: Harsha Sharma Date: Tue, 14 Aug 2018 01:09:28 +0530 Subject: tests: shell: add tests for ct timeout objects Add tests for listing ct timeout objects and input from file. Signed-off-by: Harsha Sharma Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/nft-f/0017ct_timeout_obj_0 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/shell/testcases/nft-f/0017ct_timeout_obj_0 (limited to 'tests/shell/testcases/nft-f') diff --git a/tests/shell/testcases/nft-f/0017ct_timeout_obj_0 b/tests/shell/testcases/nft-f/0017ct_timeout_obj_0 new file mode 100755 index 00000000..1d03dbfc --- /dev/null +++ b/tests/shell/testcases/nft-f/0017ct_timeout_obj_0 @@ -0,0 +1,16 @@ +#!/bin/bash + +EXPECTED='table ip filter { + ct timeout cttime{ + protocol tcp; + l3proto ip + policy = {established: 123, close: 12} + } + + chain c { + ct timeout set "cttime" + } +}' + +set -e +$NFT -f - <<< $EXPECTED -- cgit v1.2.3