Skip to content
Snippets Groups Projects
Commit f6c3d6af authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Update unit test for router validation

parent 266ef7fa
No related branches found
Tags 2.27
1 merge request!257Feature/add kentik workflow
Pipeline #88621 passed
......@@ -4,6 +4,7 @@ import pytest
from infoblox_client import objects
from gso.products.product_types.router import Router
from test.services.conftest import MockedKentikClient
from test.workflows import (
assert_complete,
assert_lso_success,
......@@ -17,7 +18,9 @@ from test.workflows import (
@patch("gso.services.lso_client.execute_playbook")
@patch("gso.services.netbox_client.NetboxClient.get_device_by_name")
@patch("gso.services.librenms_client.LibreNMSClient.validate_device")
@patch("gso.services.kentik_client.KentikClient")
def test_validate_nokia_router_success(
mock_kentik_client,
mock_validate_librenms_device,
mock_get_device_by_name,
mock_execute_playbook,
......@@ -28,6 +31,7 @@ def test_validate_nokia_router_success(
geant_partner,
):
mock_validate_librenms_device.return_value = None
mock_kentik_client.return_value = MockedKentikClient
# Run workflow
subscription_id = nokia_router_subscription_factory()
mock_fqdn = Router.from_subscription(subscription_id).router.router_fqdn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment