From 25524a1ba972730b433bc493475f4da335366106 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Tue, 16 Feb 2016 16:21:34 +0200 Subject: fix hlt yaml golden --- .../unit_tests/functional_tests/hltapi_stream_builder_test.py | 8 ++++++++ .../unit_tests/functional_tests/scapy_pkt_builder_test.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts/automation/regression') diff --git a/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py b/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py index 0b54bdb8..d0adb546 100755 --- a/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py +++ b/scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py @@ -85,6 +85,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: ip_src op: inc size: 4 + step: 1 type: flow_var - add_value: 0 is_big_endian: true @@ -97,6 +98,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: ip_dst op: random size: 4 + step: 1 type: flow_var - add_value: 0 is_big_endian: true @@ -141,6 +143,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: tcp_src op: dec size: 2 + step: 1 type: flow_var - add_value: 0 is_big_endian: true @@ -153,6 +156,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: tcp_dst op: random size: 2 + step: 1 type: flow_var - add_value: 0 is_big_endian: true @@ -216,6 +220,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: udp_src op: dec size: 2 + step: 1 type: flow_var - add_value: 0 is_big_endian: true @@ -228,6 +233,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: udp_dst op: inc size: 2 + step: 1 type: flow_var - add_value: 0 is_big_endian: true @@ -280,6 +286,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: pkt_len op: dec size: 2 + step: 1 type: flow_var - name: pkt_len type: trim_pkt_size @@ -332,6 +339,7 @@ class CTRexHltApi_Test(unittest.TestCase): name: pkt_len op: random size: 2 + step: 1 type: flow_var - name: pkt_len type: trim_pkt_size diff --git a/scripts/automation/regression/unit_tests/functional_tests/scapy_pkt_builder_test.py b/scripts/automation/regression/unit_tests/functional_tests/scapy_pkt_builder_test.py index f0dc9dc4..117cf4a3 100644 --- a/scripts/automation/regression/unit_tests/functional_tests/scapy_pkt_builder_test.py +++ b/scripts/automation/regression/unit_tests/functional_tests/scapy_pkt_builder_test.py @@ -47,7 +47,7 @@ class CTRexPktBuilderSanitySCapy_Test(pkt_bld_general_test.CGeneralPktBld_Test): print pkt_builder.get_vm_data() - assert_equal( pkt_builder.get_vm_data(), {'split_by_var': '', 'instructions': [{'name': 'a', 'max_value': 268435466, 'min_value': 268435457, 'init_value': 268435457, 'size': 4, 'type': 'flow_var', 'op': 'inc'}, {'is_big_endian': True, 'pkt_offset': 26, 'type': 'write_flow_var', 'name': 'a', 'add_value': 0}, {'pkt_offset': 14, 'type': 'fix_checksum_ipv4'}]} ) + assert_equal( pkt_builder.get_vm_data(), {'split_by_var': '', 'instructions': [{'name': 'a', 'max_value': 268435466, 'min_value': 268435457, 'init_value': 268435457, 'size': 4, 'type': 'flow_var', 'step':1,'op': 'inc'}, {'is_big_endian': True, 'pkt_offset': 26, 'type': 'write_flow_var', 'name': 'a', 'add_value': 0}, {'pkt_offset': 14, 'type': 'fix_checksum_ipv4'}]} ) -- cgit 1.2.3-korg