cnat: improve tests 74/34174/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Wed, 20 Oct 2021 15:41:07 +0000 (17:41 +0200)
committerBeno�t Ganne <bganne@cisco.com>
Thu, 21 Oct 2021 14:29:57 +0000 (14:29 +0000)
commit1dff6b3485ffac976d3b49b5daaf7ad687d103f8
tree510ccc0256f5aacb39ad08091a02b3c74481923f
parentea25722b3855926f74c33270cbf822ab30ae8ce6
cnat: improve tests

Type: improvement

This is an attempt to make the cnat tests more
readable by hiding the scapy packet generation
under a common context concept.

This in order to add tests covering a wider range
of scenarios. As of now, only VIP, snat & DHCP
being covered

Change-Id: Ia84868984506bbb652fe974e9a6f54f7a3cc0bd9
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
test/test_cnat.py