diff options
author | Arturo Borrero Gonzalez <arturo@netfilter.org> | 2021-01-22 20:31:09 +0100 |
---|---|---|
committer | Arturo Borrero Gonzalez <arturo@netfilter.org> | 2021-02-01 11:39:19 +0100 |
commit | 5b47fe5c72e7cfe9a3cade82758144619d2da280 (patch) | |
tree | 09fed2f7a98ee8dc5d6ee2639565ff91a6d44045 /src/helpers | |
parent | 4c2a31a1fcfb2ddeb305930cbb1a2b71c60ff310 (diff) |
tests: introduce replicating scenario and simple icmp test case
This patch introduces a new scenario with a virtual network layout that was previously designed by
Pablo (see commit 7f1fb5dad90f04caa94f4fcefd1340aeb2c2f0e3).
The scenario is called 'basic_2_peer_network_tcp_notrack' and can be used to test conntrack entry
replication in TCP/NOTRACK mode with both caches disables. In this mode entry syncronization should
happen basically in the same instant the event is produced.
The testcase is very simple, but works really well:
* send 1 ping to a network peer across the router
* verify the conntrack entry has been replicated to the stand-by router
=== 8< ===
$ cd tests ; sudo ./conntrackd-tests.py --single tcp_notrack_replicate_icmp
[conntrackd-tests.py] INFO: --- running test: tcp_notrack_replicate_icmp
[conntrackd-tests.py] INFO: --- passed test: tcp_notrack_replicate_icmp
[conntrackd-tests.py] INFO: ---
[conntrackd-tests.py] INFO: --- finished
[conntrackd-tests.py] INFO: --- passed tests: 1
[conntrackd-tests.py] INFO: --- failed tests: 0
[conntrackd-tests.py] INFO: --- scenario failure: 0
[conntrackd-tests.py] INFO: --- total tests: 1
=== 8< ===
Signed-off-by: Arturo Borrero Gonzalez <arturo@netfilter.org>
Diffstat (limited to 'src/helpers')
0 files changed, 0 insertions, 0 deletions