summaryrefslogtreecommitdiffstats
path: root/scripts/automation
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation')
-rw-r--r--scripts/automation/regression/setups/kiwi02/benchmark.yaml3
-rw-r--r--scripts/automation/regression/setups/trex-dan/benchmark.yaml2
-rw-r--r--scripts/automation/regression/setups/trex25/benchmark.yaml2
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_nat_test.py16
4 files changed, 18 insertions, 5 deletions
diff --git a/scripts/automation/regression/setups/kiwi02/benchmark.yaml b/scripts/automation/regression/setups/kiwi02/benchmark.yaml
index 41688906..6369b76a 100644
--- a/scripts/automation/regression/setups/kiwi02/benchmark.yaml
+++ b/scripts/automation/regression/setups/kiwi02/benchmark.yaml
@@ -71,6 +71,9 @@ test_nat_simple_mode2: *test_nat_simple
test_nat_simple_mode3: *test_nat_simple
+test_nat_simple_mode1_udp: *test_nat_simple
+test_nat_simple_mode3_udp: *test_nat_simple
+
test_nat_learning:
<< : *test_nat_simple
nat_opened : 100000
diff --git a/scripts/automation/regression/setups/trex-dan/benchmark.yaml b/scripts/automation/regression/setups/trex-dan/benchmark.yaml
index de56089b..84bcd9ae 100644
--- a/scripts/automation/regression/setups/trex-dan/benchmark.yaml
+++ b/scripts/automation/regression/setups/trex-dan/benchmark.yaml
@@ -70,6 +70,8 @@ test_nat_simple_mode1: &test_nat_simple
test_nat_simple_mode2: *test_nat_simple
test_nat_simple_mode3: *test_nat_simple
+test_nat_simple_mode1_udp: *test_nat_simple
+test_nat_simple_mode3_udp: *test_nat_simple
test_nat_learning:
<< : *test_nat_simple
diff --git a/scripts/automation/regression/setups/trex25/benchmark.yaml b/scripts/automation/regression/setups/trex25/benchmark.yaml
index ccbdf6f5..f8fd0bee 100644
--- a/scripts/automation/regression/setups/trex25/benchmark.yaml
+++ b/scripts/automation/regression/setups/trex25/benchmark.yaml
@@ -71,6 +71,8 @@ test_nat_simple_mode1: &test_nat_simple
test_nat_simple_mode2: *test_nat_simple
test_nat_simple_mode3: *test_nat_simple
+test_nat_simple_mode1_udp: *test_nat_simple
+test_nat_simple_mode3_udp: *test_nat_simple
test_nat_learning:
<< : *test_nat_simple
diff --git a/scripts/automation/regression/stateful_tests/trex_nat_test.py b/scripts/automation/regression/stateful_tests/trex_nat_test.py
index c23f67c4..3da1dc79 100755
--- a/scripts/automation/regression/stateful_tests/trex_nat_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_nat_test.py
@@ -88,15 +88,21 @@ class CTRexNat_Test(CTRexGeneral_Test):#(unittest.TestCase):
def test_nat_simple_mode1(self):
- self.nat_simple_helper(learn_mode=1)
+ self.nat_simple_helper(learn_mode=1, traffic_file='cap2/http_simple.yaml')
def test_nat_simple_mode2(self):
- self.nat_simple_helper(learn_mode=2)
+ self.nat_simple_helper(learn_mode=2, traffic_file='cap2/http_simple.yaml')
def test_nat_simple_mode3(self):
- self.nat_simple_helper(learn_mode=3)
+ self.nat_simple_helper(learn_mode=3, traffic_file='cap2/http_simple.yaml')
- def nat_simple_helper(self, learn_mode=1):
+ def test_nat_simple_mode1_udp(self):
+ self.nat_simple_helper(learn_mode=1, traffic_file='cap2/dns.yaml')
+
+ def test_nat_simple_mode3_udp(self):
+ self.nat_simple_helper(learn_mode=3, traffic_file='cap2/dns.yaml')
+
+ def nat_simple_helper(self, learn_mode=1, traffic_file='cap2/http_simple.yaml'):
# test initializtion
self.router.configure_basic_interfaces()
@@ -119,7 +125,7 @@ class CTRexNat_Test(CTRexGeneral_Test):#(unittest.TestCase):
m = mult,
learn_mode = learn_mode,
d = 100,
- f = 'cap2/http_simple.yaml',
+ f = traffic_file,
l = 1000)
trex_res = self.trex.sample_to_run_finish()