From ce8579c74f588261c3cedb9adbfa9e41968c96b2 Mon Sep 17 00:00:00 2001 From: indraniBh Date: Thu, 12 Sep 2024 04:27:39 +0000 Subject: [PATCH] Added few skipped TCs --- tests/capture/test_capture_control.py | 10 +++++----- tests/imix/test_imix_predefined_e2e.py | 5 ++--- tests/imix/test_ipv6_imix_predefined_e2e.py | 4 ++-- tests/imix/test_standard_imix_predefined_e2e.py | 5 ++--- tests/tcp/test_counter_tcp_ports_e2e.py | 2 +- tests/tcp/test_list_tcp_ports_e2e.py | 2 +- tests/udp/test_udp_header_with_counter_e2e.py | 2 +- tests/udp/test_udp_header_with_list_e2e.py | 2 +- 8 files changed, 15 insertions(+), 17 deletions(-) diff --git a/tests/capture/test_capture_control.py b/tests/capture/test_capture_control.py index faff678fb..fd20c9790 100644 --- a/tests/capture/test_capture_control.py +++ b/tests/capture/test_capture_control.py @@ -2,9 +2,9 @@ import dpkt -@pytest.mark.skip( - reason="https://github.com/open-traffic-generator/snappi-ixnetwork/issues/525" -) +# @pytest.mark.skip( +# reason="https://github.com/open-traffic-generator/snappi-ixnetwork/issues/525" +# ) def test_capture_control(api, utils): """ The test is to check if capture has control packets included. @@ -34,7 +34,7 @@ def test_capture_control(api, utils): # tx_device config tx_eth = tx_device.ethernets.add() - tx_eth.port_name = tx.name + tx_eth.connection.port_name = tx.name tx_eth.name = "tx_eth" tx_eth.mac = "00:00:00:00:00:aa" tx_ipv4 = tx_eth.ipv4_addresses.add() @@ -54,7 +54,7 @@ def test_capture_control(api, utils): # rx_device config rx_eth = rx_device.ethernets.add() - rx_eth.port_name = rx.name + rx_eth.connection.port_name = rx.name rx_eth.name = "rx_eth" rx_eth.mac = "00:00:00:00:00:bb" rx_ipv4 = rx_eth.ipv4_addresses.add() diff --git a/tests/imix/test_imix_predefined_e2e.py b/tests/imix/test_imix_predefined_e2e.py index 1a5d90914..aa71995f3 100644 --- a/tests/imix/test_imix_predefined_e2e.py +++ b/tests/imix/test_imix_predefined_e2e.py @@ -2,7 +2,6 @@ import time -@pytest.mark.e2e def test_stats_filter_e2e(api, b2b_raw_config, utils): """ configure flows with ipv4 imix @@ -25,12 +24,12 @@ def test_stats_filter_e2e(api, b2b_raw_config, utils): eth1 = d1.ethernets.add() eth1.name = "eth1" - eth1.port_name = config.ports[0].name + eth1.connection.port_name = config.ports[0].name eth1.mac = "00:ad:aa:13:11:01" eth2 = d2.ethernets.add() eth2.name = "eth2" - eth2.port_name = config.ports[1].name + eth2.connection.port_name = config.ports[1].name eth2.mac = "00:ad:aa:13:11:02" ip1 = eth1.ipv4_addresses.add() diff --git a/tests/imix/test_ipv6_imix_predefined_e2e.py b/tests/imix/test_ipv6_imix_predefined_e2e.py index b744088ac..c55dab172 100644 --- a/tests/imix/test_ipv6_imix_predefined_e2e.py +++ b/tests/imix/test_ipv6_imix_predefined_e2e.py @@ -25,12 +25,12 @@ def test_stats_filter_e2e(api, b2b_raw_config, utils): eth1 = d1.ethernets.add() eth1.name = "eth1" - eth1.port_name = config.ports[0].name + eth1.connection.port_name = config.ports[0].name eth1.mac = "00:ad:aa:13:11:01" eth2 = d2.ethernets.add() eth2.name = "eth2" - eth2.port_name = config.ports[1].name + eth2.connection.port_name = config.ports[1].name eth2.mac = "00:ad:aa:13:11:02" ip1 = eth1.ipv4_addresses.add() diff --git a/tests/imix/test_standard_imix_predefined_e2e.py b/tests/imix/test_standard_imix_predefined_e2e.py index 165b84cd9..16d3f91bf 100644 --- a/tests/imix/test_standard_imix_predefined_e2e.py +++ b/tests/imix/test_standard_imix_predefined_e2e.py @@ -2,7 +2,6 @@ import time -@pytest.mark.e2e def test_stats_filter_e2e(api, b2b_raw_config, utils): """ configure flows with ipv4 imix @@ -25,12 +24,12 @@ def test_stats_filter_e2e(api, b2b_raw_config, utils): eth1 = d1.ethernets.add() eth1.name = "eth1" - eth1.port_name = config.ports[0].name + eth1.connection.port_name = config.ports[0].name eth1.mac = "00:ad:aa:13:11:01" eth2 = d2.ethernets.add() eth2.name = "eth2" - eth2.port_name = config.ports[1].name + eth2.connection.port_name = config.ports[1].name eth2.mac = "00:ad:aa:13:11:02" ip1 = eth1.ipv4_addresses.add() diff --git a/tests/tcp/test_counter_tcp_ports_e2e.py b/tests/tcp/test_counter_tcp_ports_e2e.py index 3548cfca6..f0714582c 100644 --- a/tests/tcp/test_counter_tcp_ports_e2e.py +++ b/tests/tcp/test_counter_tcp_ports_e2e.py @@ -1,7 +1,7 @@ import pytest -@pytest.mark.e2e +# @pytest.mark.e2e def test_list_tcp_ports_e2e(api, utils, b2b_raw_config): """ Configure a raw TCP flow with, diff --git a/tests/tcp/test_list_tcp_ports_e2e.py b/tests/tcp/test_list_tcp_ports_e2e.py index 3548cfca6..f0714582c 100644 --- a/tests/tcp/test_list_tcp_ports_e2e.py +++ b/tests/tcp/test_list_tcp_ports_e2e.py @@ -1,7 +1,7 @@ import pytest -@pytest.mark.e2e +# @pytest.mark.e2e def test_list_tcp_ports_e2e(api, utils, b2b_raw_config): """ Configure a raw TCP flow with, diff --git a/tests/udp/test_udp_header_with_counter_e2e.py b/tests/udp/test_udp_header_with_counter_e2e.py index 5ca0b9851..cda5b1388 100644 --- a/tests/udp/test_udp_header_with_counter_e2e.py +++ b/tests/udp/test_udp_header_with_counter_e2e.py @@ -1,7 +1,7 @@ import pytest -@pytest.mark.e2e +# @pytest.mark.e2e def test_udp_header_with_counter_e2e(api, b2b_raw_config, utils): """ Configure a raw udp flow with, diff --git a/tests/udp/test_udp_header_with_list_e2e.py b/tests/udp/test_udp_header_with_list_e2e.py index 57c0386a2..05cefa471 100644 --- a/tests/udp/test_udp_header_with_list_e2e.py +++ b/tests/udp/test_udp_header_with_list_e2e.py @@ -1,7 +1,7 @@ import pytest -@pytest.mark.e2e +# @pytest.mark.e2e def test_udp_header_with_list_e2e(api, b2b_raw_config, utils): """ Configure a raw udp flow with,