[nft,3/7] test/py: Updated test file structure descripion in README

Message ID 3691ce35e8668bcab2742342db2c65242aac78ba.1526542126.git.ecklm94@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show
Series
  • Python test fixes
Related show

Commit Message

Máté Eckl May 17, 2018, 7:36 a.m.
The order of the table and chain definitions have changed in test files.
Now the name of the chain has to be specified in the definition of the
table, so their order is reverted.

Signed-off-by: Máté Eckl <ecklm94@gmail.com>
---
 tests/py/README | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Patch

diff --git a/tests/py/README b/tests/py/README
index 005fe8e..a156032 100644
--- a/tests/py/README
+++ b/tests/py/README
@@ -64,11 +64,11 @@  A test file contains a set of rules that are added in the system.
 
 Here, an example of a test file:
 
-   *ip;test-ipv4                               # line 1
-   *ip6;test-ipv6                              # line 2
-   *inet;test-inet                             # line 3
+   :input;type filter hook input priority 0    # line 1
 
-   :input;type filter hook input priority 0    # line 4
+   *ip;test-ipv4;input                         # line 2
+   *ip6;test-ipv6;input                        # line 3
+   *inet;test-inet;input                       # line 4
 
    ah hdrlength != 11-23;ok;ah hdrlength < 11 ah hdrlength > 23   # line 5
    - tcp dport != {22-25}                                         # line 6
@@ -77,12 +77,12 @@  Here, an example of a test file:
    ?set1 192.168.3.8 192.168.3.9;ok            # line 8
    # This is a commented-line.                 # line 9
 
-Line 1 defines a table. The name of the table is 'test-ipv4' and the
-family is ip. Lines 2 and 3 defines more tables for different families
-so the rules in this test file are also tested there.
+Line 1 defines a chain. The name of this chain is "input". The type is "filter",
+the hook is "input" and the priority is 0.
 
-Line 4 defines the chain. The name of this chain is "input". The type is
-"filter", the hook is "input" and the priority is 0.
+Line 2 defines a table. The name of the table is 'test-ipv4', the family is ip
+and the chain to be added to it is 'input'. Lines 3 and 4 defines more tables for
+different families so the rules in this test file are also tested there.
 
 Line 5 defines the rule, the ";" character is used as separator of several
 parts: