| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_organizations_enabledConnections_list_() -> None: |
| 5 | """Test list endpoint with WireMock""" |
| 6 | test_id = "organizations.enabled_connections.list_.0" |
| 7 | client = get_client(test_id) |
| 8 | client.organizations.enabled_connections.list( |
| 9 | id="id", |
| 10 | page=1, |
| 11 | per_page=1, |
| 12 | include_totals=True, |
| 13 | ) |
| 14 | verify_request_count( |
| 15 | test_id, |
| 16 | "GET", |
| 17 | "/organizations/id/enabled_connections", |
| 18 | {"page": "1", "per_page": "1", "include_totals": "true"}, |
| 19 | 1, |
| 20 | ) |
| 21 | |
| 22 | |
| 23 | def test_organizations_enabledConnections_add() -> None: |
| 24 | """Test add endpoint with WireMock""" |
| 25 | test_id = "organizations.enabled_connections.add.0" |
| 26 | client = get_client(test_id) |
| 27 | client.organizations.enabled_connections.add( |
| 28 | id="id", |
| 29 | connection_id="connection_id", |
| 30 | ) |
| 31 | verify_request_count(test_id, "POST", "/organizations/id/enabled_connections", None, 1) |
| 32 | |
| 33 | |
| 34 | def test_organizations_enabledConnections_get() -> None: |
| 35 | """Test get endpoint with WireMock""" |
| 36 | test_id = "organizations.enabled_connections.get.0" |
| 37 | client = get_client(test_id) |
| 38 | client.organizations.enabled_connections.get( |
| 39 | id="id", |
| 40 | connection_id="connectionId", |
| 41 | ) |
| 42 | verify_request_count(test_id, "GET", "/organizations/id/enabled_connections/connectionId", None, 1) |
| 43 | |
| 44 | |
| 45 | def test_organizations_enabledConnections_delete() -> None: |
| 46 | """Test delete endpoint with WireMock""" |
| 47 | test_id = "organizations.enabled_connections.delete.0" |
| 48 | client = get_client(test_id) |
| 49 | client.organizations.enabled_connections.delete( |
| 50 | id="id", |
| 51 | connection_id="connectionId", |
| 52 | ) |
| 53 | verify_request_count(test_id, "DELETE", "/organizations/id/enabled_connections/connectionId", None, 1) |
| 54 | |
| 55 | |
| 56 | def test_organizations_enabledConnections_update() -> None: |
| 57 | """Test update endpoint with WireMock""" |
| 58 | test_id = "organizations.enabled_connections.update.0" |
| 59 | client = get_client(test_id) |
| 60 | client.organizations.enabled_connections.update( |
| 61 | id="id", |
| 62 | connection_id="connectionId", |
| 63 | ) |
| 64 | verify_request_count(test_id, "PATCH", "/organizations/id/enabled_connections/connectionId", None, 1) |