From ed6003e63a6a18fa038baebcdba9bab505b91241 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Mon, 29 Apr 2024 15:59:34 +0200 Subject: [PATCH] Add edit note workflow to Opengear product --- ...-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py | 2 +- test/db/conftest.py | 1 + test/workflows/iptrunk/test_terminate_iptrunk.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 test/db/conftest.py diff --git a/gso/migrations/versions/2024-04-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py b/gso/migrations/versions/2024-04-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py index bff834e1..0a149d35 100644 --- a/gso/migrations/versions/2024-04-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py +++ b/gso/migrations/versions/2024-04-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py @@ -18,7 +18,7 @@ depends_on = None from orchestrator.migrations.helpers import add_products_to_workflow_by_product_tag, \ remove_products_from_workflow_by_product_tag -new_workflows = ["Super_POP_SWITCH", "OFFICE_ROUTER", "SWITCH", "LSI", "POP_VLAN", "IMP_IP_TRUNK", "IMP_RTR", "IMP_SITE", "IMP_SPOP_SWITCH", "IMP_OFFICE_RTR"] +new_workflows = ["Super_POP_SWITCH", "OFFICE_ROUTER", "SWITCH", "LSI", "POP_VLAN", "IMP_IP_TRUNK", "IMP_RTR", "IMP_SITE", "IMP_SPOP_SWITCH", "IMP_OFFICE_RTR", "OPENGEAR"] def upgrade() -> None: diff --git a/test/db/conftest.py b/test/db/conftest.py new file mode 100644 index 00000000..d2571648 --- /dev/null +++ b/test/db/conftest.py @@ -0,0 +1 @@ +from test.conftest import db_uri # noqa: F401 diff --git a/test/workflows/iptrunk/test_terminate_iptrunk.py b/test/workflows/iptrunk/test_terminate_iptrunk.py index c026e84b..aeb3aff0 100644 --- a/test/workflows/iptrunk/test_terminate_iptrunk.py +++ b/test/workflows/iptrunk/test_terminate_iptrunk.py @@ -53,7 +53,7 @@ def test_successful_iptrunk_termination( # Check NetboxClient calls assert mocked_delete_interface.call_count == 2 # once for each side - assert mocked_free_interface.call_count == 4 # Free interfaces for each side(2 per side) + assert mocked_free_interface.call_count == 4 # Free interfaces for each side (2 per side) state = extract_state(result) subscription_id = state["subscription_id"] -- GitLab