diff --git a/gso/oss-params-example.json b/gso/oss-params-example.json index 32fbed7005d46d2432fd803d6900e91fcf49f2c6..2a40269346ad446e4b8fbac6a4f9ed4dafc8a3ea 100644 --- a/gso/oss-params-example.json +++ b/gso/oss-params-example.json @@ -93,6 +93,14 @@ "smtp_password": "password" }, "SHAREPOINT": { - "checklist_site_url": "https://example.sharepoint.com/sites/example-site" + "client_id": "UUID", + "tenant_id": "UUID", + "certificate_path": "/path/to/certificate", + "certificate_password": "P4$$w0rd", + "site_id": "UUID", + "list_ids": { + "p_router": "UUID" + }, + "scopes": ["https://graph.microsoft.com/.default"] } } diff --git a/test/workflows/router/test_create_router.py b/test/workflows/router/test_create_router.py index 33244ae5bbc17feef0dbb7c4abbc72823b058526..05f1ffe50290d8d30f7ac022dadd8f07f5f217d2 100644 --- a/test/workflows/router/test_create_router.py +++ b/test/workflows/router/test_create_router.py @@ -40,7 +40,9 @@ def router_creation_input_form_data(site_subscription_factory, faker): @patch("gso.workflows.router.create_router.infoblox.hostname_available") @patch("gso.workflows.router.create_router.infoblox.find_host_by_fqdn") @patch("gso.workflows.router.create_router.infoblox.allocate_host") +@patch("gso.workflows.router.create_router.SharePointClient") def test_create_nokia_router_success( + mock_sharepoint_client, mock_allocate_host, mock_find_host_by_fqdn, mock_hostname_available, @@ -108,6 +110,7 @@ def test_create_nokia_router_success( assert mock_provision_router.call_count == 3 assert mock_netbox_create_device.call_count == 1 assert mock_find_host_by_fqdn.call_count == 1 + assert mock_sharepoint_client.call_count == 1 assert "ipam_warning" not in state