From 6bc81672398c5bd82036e2a64dcbd05e16b1ec76 Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Thu, 2 May 2024 16:35:58 +0200
Subject: [PATCH] Update oss params example

---
 gso/oss-params-example.json                 | 10 +++++++++-
 test/workflows/router/test_create_router.py |  3 +++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/gso/oss-params-example.json b/gso/oss-params-example.json
index 32fbed70..2a402693 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 33244ae5..05f1ffe5 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
 
 
-- 
GitLab