| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | from auth0.management import CreateScimConfigurationRequestContent, ScimMappingItem |
| 4 | |
| 5 | |
| 6 | def test_connections_scimConfiguration_list_() -> None: |
| 7 | """Test list endpoint with WireMock""" |
| 8 | test_id = "connections.scim_configuration.list_.0" |
| 9 | client = get_client(test_id) |
| 10 | client.connections.scim_configuration.list( |
| 11 | from_="from", |
| 12 | take=1, |
| 13 | ) |
| 14 | verify_request_count(test_id, "GET", "/connections-scim-configurations", {"from": "from", "take": "1"}, 1) |
| 15 | |
| 16 | |
| 17 | def test_connections_scimConfiguration_get() -> None: |
| 18 | """Test get endpoint with WireMock""" |
| 19 | test_id = "connections.scim_configuration.get.0" |
| 20 | client = get_client(test_id) |
| 21 | client.connections.scim_configuration.get( |
| 22 | id="id", |
| 23 | ) |
| 24 | verify_request_count(test_id, "GET", "/connections/id/scim-configuration", None, 1) |
| 25 | |
| 26 | |
| 27 | def test_connections_scimConfiguration_create() -> None: |
| 28 | """Test create endpoint with WireMock""" |
| 29 | test_id = "connections.scim_configuration.create.0" |
| 30 | client = get_client(test_id) |
| 31 | client.connections.scim_configuration.create( |
| 32 | id="id", |
| 33 | request=CreateScimConfigurationRequestContent(), |
| 34 | ) |
| 35 | verify_request_count(test_id, "POST", "/connections/id/scim-configuration", None, 1) |
| 36 | |
| 37 | |
| 38 | def test_connections_scimConfiguration_delete() -> None: |
| 39 | """Test delete endpoint with WireMock""" |
| 40 | test_id = "connections.scim_configuration.delete.0" |
| 41 | client = get_client(test_id) |
| 42 | client.connections.scim_configuration.delete( |
| 43 | id="id", |
| 44 | ) |
| 45 | verify_request_count(test_id, "DELETE", "/connections/id/scim-configuration", None, 1) |
| 46 | |
| 47 | |
| 48 | def test_connections_scimConfiguration_update() -> None: |
| 49 | """Test update endpoint with WireMock""" |
| 50 | test_id = "connections.scim_configuration.update.0" |
| 51 | client = get_client(test_id) |
| 52 | client.connections.scim_configuration.update( |
| 53 | id="id", |
| 54 | user_id_attribute="user_id_attribute", |
| 55 | mapping=[ScimMappingItem()], |
| 56 | ) |
| 57 | verify_request_count(test_id, "PATCH", "/connections/id/scim-configuration", None, 1) |
| 58 | |
| 59 | |
| 60 | def test_connections_scimConfiguration_get_default_mapping() -> None: |
| 61 | """Test getDefaultMapping endpoint with WireMock""" |
| 62 | test_id = "connections.scim_configuration.get_default_mapping.0" |
| 63 | client = get_client(test_id) |
| 64 | client.connections.scim_configuration.get_default_mapping( |
| 65 | id="id", |
| 66 | ) |
| 67 | verify_request_count(test_id, "GET", "/connections/id/scim-configuration/default-mapping", None, 1) |