fix hlt yaml golden
authorHanoh Haim <[email protected]>
Tue, 16 Feb 2016 14:21:34 +0000 (16:21 +0200)
committerHanoh Haim <[email protected]>
Tue, 16 Feb 2016 14:21:34 +0000 (16:21 +0200)
scripts/automation/regression/unit_tests/functional_tests/hltapi_stream_builder_test.py
scripts/automation/regression/unit_tests/functional_tests/scapy_pkt_builder_test.py

index 0b54bdb..d0adb54 100755 (executable)
@@ -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
index f0dc9dc..117cf4a 100644 (file)
@@ -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'}]} )