From cc43746699aff5ba74fe1b61d00677a9c681bf7b Mon Sep 17 00:00:00 2001 From: desaimg1 Date: Fri, 27 Sep 2024 11:08:08 +0530 Subject: [PATCH 1/6] modified as per the latest model changes --- tests/imix/test_custom_imix_e2e.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/imix/test_custom_imix_e2e.py b/tests/imix/test_custom_imix_e2e.py index ed3da5673..ec547b83d 100644 --- a/tests/imix/test_custom_imix_e2e.py +++ b/tests/imix/test_custom_imix_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() From 7550aa09d9edadd62235e31b7bab3614b0c36ea2 Mon Sep 17 00:00:00 2001 From: desaimg1 <53219646+desaimg1@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:24:51 +0530 Subject: [PATCH 2/6] Update publish.yml --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a3e29e077..e97e86e2f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,6 +66,7 @@ jobs: ${{steps.path.outputs.pythonv}} do.py install ${{steps.path.outputs.pythonv}} do.py init - name: Run tests + if: always() run: | TEST_USERNAME=${{secrets.TEST_USERNAME}} ${{steps.path.outputs.pythonv}} do.py test novus10g From 43e93a5e8d1e56d50adbdb7d05d0923176321035 Mon Sep 17 00:00:00 2001 From: Vibaswan Date: Fri, 27 Sep 2024 14:39:23 +0530 Subject: [PATCH 3/6] fixing conftest so that pytest does not fail instantly --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index d21d6dee0..0519f8dcc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,10 +4,10 @@ import utils as utl # import snappi_convergence - -def pytest_exception_interact(node, call, report): - # end all pytests on first exception that is encountered - pytest.exit(call.excinfo.traceback[0]) +# TODO: uncomment this if we want pipeline to fail instantly +# def pytest_exception_interact(node, call, report): +# # end all pytests on first exception that is encountered +# pytest.exit(call.excinfo.traceback[0]) def pytest_addoption(parser): From 03942cb08016ed7a21d26c218e2bba9634c27d10 Mon Sep 17 00:00:00 2001 From: desaimg1 <53219646+desaimg1@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:24:00 +0530 Subject: [PATCH 4/6] Update test_arp_packet.py --- tests/arp/test_arp_packet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/arp/test_arp_packet.py b/tests/arp/test_arp_packet.py index c0f6039df..e5e4da343 100644 --- a/tests/arp/test_arp_packet.py +++ b/tests/arp/test_arp_packet.py @@ -2,6 +2,9 @@ def test_arp_packet(api, b2b_raw_config_vports, utils, tx_vport, rx_vport): + + + pytest.fail("Making as fail to test conftest") flow1 = b2b_raw_config_vports.flows[0] sender_hardware_addr = "00:0C:29:E3:53:EA" target_hardware_addr = "00:0C:29:E3:54:EA" From 362dc38f21467606cd29762a3e2e61f8ae1ac549 Mon Sep 17 00:00:00 2001 From: desaimg1 <53219646+desaimg1@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:23:17 +0530 Subject: [PATCH 5/6] Update test_arp_packet.py --- tests/arp/test_arp_packet.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/arp/test_arp_packet.py b/tests/arp/test_arp_packet.py index e5e4da343..c0f6039df 100644 --- a/tests/arp/test_arp_packet.py +++ b/tests/arp/test_arp_packet.py @@ -2,9 +2,6 @@ def test_arp_packet(api, b2b_raw_config_vports, utils, tx_vport, rx_vport): - - - pytest.fail("Making as fail to test conftest") flow1 = b2b_raw_config_vports.flows[0] sender_hardware_addr = "00:0C:29:E3:53:EA" target_hardware_addr = "00:0C:29:E3:54:EA" From 9144fdfb1f9f311a06586d494efda60849305f6e Mon Sep 17 00:00:00 2001 From: desaimg1 <53219646+desaimg1@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:22:40 +0530 Subject: [PATCH 6/6] Update publish.yml --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e97e86e2f..a3e29e077 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -66,7 +66,6 @@ jobs: ${{steps.path.outputs.pythonv}} do.py install ${{steps.path.outputs.pythonv}} do.py init - name: Run tests - if: always() run: | TEST_USERNAME=${{secrets.TEST_USERNAME}} ${{steps.path.outputs.pythonv}} do.py test novus10g