From b3c348ec09c7904fbc43ae4ba816d934bb23dc3d Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 8 Jun 2018 17:27:14 +0200 Subject: tests/py: Fix JSON for flowtable tests Changing the reference lines is not enough, the actual JSON has to be adjusted as well. Since after the changes output for ip/flowtable.t is now symmetric, ip/flowtable.t.json.output can be removed. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/py/ip/flowtable.t.json | 1 + tests/py/ip/flowtable.t.json.output | 24 ------------------------ tests/py/ip6/flowtable.t.json | 2 ++ tests/py/ip6/flowtable.t.json.output | 8 ++++---- 4 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 tests/py/ip/flowtable.t.json.output diff --git a/tests/py/ip/flowtable.t.json b/tests/py/ip/flowtable.t.json index 5e11172e..1d2b0b7a 100644 --- a/tests/py/ip/flowtable.t.json +++ b/tests/py/ip/flowtable.t.json @@ -14,6 +14,7 @@ } }, "name": "xyz", + "size": 8192, "stmt": { "counter": null } diff --git a/tests/py/ip/flowtable.t.json.output b/tests/py/ip/flowtable.t.json.output deleted file mode 100644 index 004349a8..00000000 --- a/tests/py/ip/flowtable.t.json.output +++ /dev/null @@ -1,24 +0,0 @@ -# meter xyz { ip saddr timeout 30s counter} -[ - { - "meter": { - "key": { - "elem": { - "timeout": 30, - "val": { - "payload": { - "field": "saddr", - "name": "ip" - } - } - } - }, - "name": "xyz", - "size": 65535, - "stmt": { - "counter": null - } - } - } -] - diff --git a/tests/py/ip6/flowtable.t.json b/tests/py/ip6/flowtable.t.json index 863669eb..ef33f74d 100644 --- a/tests/py/ip6/flowtable.t.json +++ b/tests/py/ip6/flowtable.t.json @@ -21,6 +21,7 @@ } }, "name": "acct_out", + "size": 4096, "stmt": { "counter": null } @@ -51,6 +52,7 @@ } }, "name": "acct_out", + "size": 12345, "stmt": { "counter": null } diff --git a/tests/py/ip6/flowtable.t.json.output b/tests/py/ip6/flowtable.t.json.output index f63a2637..ef33f74d 100644 --- a/tests/py/ip6/flowtable.t.json.output +++ b/tests/py/ip6/flowtable.t.json.output @@ -1,4 +1,4 @@ -# meter acct_out { meta iif . ip6 saddr timeout 600s counter } +# meter acct_out size 4096 { meta iif . ip6 saddr timeout 600s counter } [ { "meter": { @@ -21,7 +21,7 @@ } }, "name": "acct_out", - "size": 65535, + "size": 4096, "stmt": { "counter": null } @@ -29,7 +29,7 @@ } ] -# meter acct_out { ip6 saddr . meta iif timeout 600s counter } +# meter acct_out size 12345 { ip6 saddr . meta iif timeout 600s counter } [ { "meter": { @@ -52,7 +52,7 @@ } }, "name": "acct_out", - "size": 65535, + "size": 12345, "stmt": { "counter": null } -- cgit v1.2.3