| 1 | from .conftest import get_client, verify_request_count |
| 2 | |
| 3 | |
| 4 | def test_tokenExchangeProfiles_list_() -> None: |
| 5 | """Test list endpoint with WireMock""" |
| 6 | test_id = "token_exchange_profiles.list_.0" |
| 7 | client = get_client(test_id) |
| 8 | client.token_exchange_profiles.list( |
| 9 | from_="from", |
| 10 | take=1, |
| 11 | ) |
| 12 | verify_request_count(test_id, "GET", "/token-exchange-profiles", {"from": "from", "take": "1"}, 1) |
| 13 | |
| 14 | |
| 15 | def test_tokenExchangeProfiles_create() -> None: |
| 16 | """Test create endpoint with WireMock""" |
| 17 | test_id = "token_exchange_profiles.create.0" |
| 18 | client = get_client(test_id) |
| 19 | client.token_exchange_profiles.create( |
| 20 | name="name", |
| 21 | subject_token_type="subject_token_type", |
| 22 | action_id="action_id", |
| 23 | type="custom_authentication", |
| 24 | ) |
| 25 | verify_request_count(test_id, "POST", "/token-exchange-profiles", None, 1) |
| 26 | |
| 27 | |
| 28 | def test_tokenExchangeProfiles_get() -> None: |
| 29 | """Test get endpoint with WireMock""" |
| 30 | test_id = "token_exchange_profiles.get.0" |
| 31 | client = get_client(test_id) |
| 32 | client.token_exchange_profiles.get( |
| 33 | id="id", |
| 34 | ) |
| 35 | verify_request_count(test_id, "GET", "/token-exchange-profiles/id", None, 1) |
| 36 | |
| 37 | |
| 38 | def test_tokenExchangeProfiles_delete() -> None: |
| 39 | """Test delete endpoint with WireMock""" |
| 40 | test_id = "token_exchange_profiles.delete.0" |
| 41 | client = get_client(test_id) |
| 42 | client.token_exchange_profiles.delete( |
| 43 | id="id", |
| 44 | ) |
| 45 | verify_request_count(test_id, "DELETE", "/token-exchange-profiles/id", None, 1) |
| 46 | |
| 47 | |
| 48 | def test_tokenExchangeProfiles_update() -> None: |
| 49 | """Test update endpoint with WireMock""" |
| 50 | test_id = "token_exchange_profiles.update.0" |
| 51 | client = get_client(test_id) |
| 52 | client.token_exchange_profiles.update( |
| 53 | id="id", |
| 54 | ) |
| 55 | verify_request_count(test_id, "PATCH", "/token-exchange-profiles/id", None, 1) |