"""Test the ows_participant_test endpoint.""" import requests from tests.integration import config def test_ows_participant_connectivity(bearer_token_pdptest_user: str) -> None: """POST participant hierarchy test endpoint.""" response = requests.post( f"{config.QA_BASE_URL}/infra/connectivity/ows-participant/", headers={"Authorization": f"Bearer {bearer_token_pdptest_user}"}, json={"uuids": ["715ab136-e896-4cb7-9c3f-becedcf7cdcc"]}, ) assert response.status_code == 200, f"Response: {response.text}" response_body = response.json() assert response_body == { "label_participants": [ { "uuid": "715ab136-e896-4cb7-9c3f-becedcf7cdcc", "vendor_uuid": "b40430ee-4acb-4c14-b3ef-35b3c01869c7", "subaccount_uuid": "184f1303-0c64-4d90-9715-6838e5cded31", "company_brand_uuid": "d25a4cd1-e820-45f2-be5c-56edcfeb8298", "parent_company_uuid": "955a1bbd-b623-4ea1-ab5f-8d6620c442fb", }, ] }