aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2017-07-03 01:21:38 -0700
committerNeale Ranns <nranns@cisco.com>2017-07-03 17:24:19 +0000
commit7c0aecc9e36f7565cdac6a725843081cd5b5f608 (patch)
treeafe84f10221adb367f484de9c2f9439f4b0d08f0 /test
parent58eb866b15a45514dc356170f28640d6c9db8034 (diff)
SNAT: fix failing test_session_limit_per_user (VPP-896)
Change-Id: Idf46a03803125babd9bb880363686359fbcca27d Signed-off-by: Matus Fabian <matfabia@cisco.com> (cherry picked from commit 860af5ad2b023f9c57d622a7a9d3bd0099e480b1)
Diffstat (limited to 'test')
-rw-r--r--test/test_snat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_snat.py b/test/test_snat.py
index d8268770f02..f876c5f0ab7 100644
--- a/test/test_snat.py
+++ b/test/test_snat.py
@@ -2542,6 +2542,7 @@ class TestDeterministicNAT(MethodHolder):
dms = self.vapi.snat_det_map_dump()
self.assertEqual(0, dms[0].ses_num)
+ @unittest.skipUnless(running_extended_tests(), "part of extended tests")
def test_session_limit_per_user(self):
""" CGNAT maximum 1000 sessions per user should be created """
self.vapi.snat_add_det_map(self.pg0.remote_ip4n,
@@ -2595,6 +2596,7 @@ class TestDeterministicNAT(MethodHolder):
# verify IPFIX logging
self.vapi.cli("ipfix flush") # FIXME this should be an API call
+ sleep(1)
capture = self.pg2.get_capture(2)
ipfix = IPFIXDecoder()
# first load template