⬆️ ✨ Upgrade acapy 1.0.0 #2801
GitHub Actions / JUnit Test Report Regression
failed
Aug 20, 2024 in 0s
1078 tests run, 1039 passed, 38 skipped, 1 failed.
Annotations
Check failure on line 284 in app/tests/e2e/test_connections.py
github-actions / JUnit Test Report Regression
test_connections.test_get_connections_paginated[reuse-reuse]
AssertionError: Expected 6 records, got 6: [{'alias': 'test_pagination', 'connection_id': '255c0e32-e0b9-4cf7-ad58-7e2ec7bd5cc9', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:04:10.448104Z', 'error_msg': None, 'invitation_key': 'RPf7NcPAhuwb4DJNRd2BtJC65ExMs1bKn7JtzZxgCfD', 'invitation_mode': 'once', 'invitation_msg_id': 'ac019037-50d2-4612-8917-968d079e1e07', 'my_did': 'N5TtTf1Ruuz8qh9Jxe19dH', 'state': 'completed', 'their_did': 'FR4D7nTRM558rcDGG5xepo', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:04:12.116247Z'}, {'alias': 'test_pagination', 'connection_id': '2fea1c64-2b27-43ba-bbed-5008281cff0a', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:17:52.758733Z', 'error_msg': None, 'invitation_key': '8MXcTmsY5Aqt1xHvcq4SccZoiNy3uBpE7NSKKm2HFsy4', 'invitation_mode': 'once', 'invitation_msg_id': '0af4af58-46bc-4ad3-bff3-19a396d490cf', 'my_did': '3wuiX7vikug6xfbhxpYERk', 'state': 'completed', 'their_did': 'XjVPuAcxfAuR221xwwHPpq', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:17:54.522478Z'}, {'alias': 'test_pagination', 'connection_id': '83f45423-2555-4f0f-8ce5-340af5228f7b', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:36.410252Z', 'error_msg': None, 'invitation_key': '62HcvhvpvgtDpfgrHepjxr5sMTpjeQGKdD4pyJ89cF66', 'invitation_mode': 'once', 'invitation_msg_id': 'd3b8abf8-301c-42a5-aba6-8fcc379b0a3d', 'my_did': 'DNfUhqAiMGHXEp4nTE8Ady', 'state': 'completed', 'their_did': '4itAxym8vtxHBiNHwgQw7q', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:37.303591Z'}, {'alias': 'test_pagination', 'connection_id': '955c1afb-f300-47f2-90f0-7bdc0ab42774', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:37.584653Z', 'error_msg': None, 'invitation_key': '3F4HwVWSnWFjAGpsFSX44gjdpBH2M2XvSn5NK8WPUX2m', 'invitation_mode': 'once', 'invitation_msg_id': 'a8884e23-7097-4019-a25d-bb215cdff249', 'my_did': '13tdgW2Uc7ErXBgWujrpX3', 'state': 'completed', 'their_did': 'RyFkVau6AKxDYtfM63gbEn', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:38.534471Z'}, {'alias': 'test_pagination', 'connection_id': 'd78d9c62-1f1f-4ac5-931a-b97ff677415f', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:38.805721Z', 'error_msg': None, 'invitation_key': '2gkWjFjUW3AwnZzPecrbMqMm3m78um6bi3ovVQ7jzNHL', 'invitation_mode': 'once', 'invitation_msg_id': '4ed1fd75-6f4f-4a7f-a9c7-18da7970e4d8', 'my_did': 'Ns7kmyQD3jqV3BrhKhR2qx', 'state': 'completed', 'their_did': '7gGeyNScQDBfwEfwEHEzHT', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:39.737640Z'}, {'alias': 'test_pagination', 'connection_id': 'aa7e2c4c-538f-410a-957a-d0674ee08ab2', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:40.023100Z', 'error_msg': None, 'invitation_key': 'BAqnTFzcdPBh8QY3EZiDag9V5km2L1RyJkuDySLqFcof', 'invitation_mode': 'once', 'invitation_msg_id': 'cb735d23-727e-4041-a1bf-16d4f8981a56', 'my_did': 'UeFEZpBVbQ4C3KKoDvE5Yb', 'state': 'completed', 'their_did': 'SELR8rrWNGHWqZWjDJ5cj6', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:40.948541Z'}]
assert not True
Raw output
bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7f7cea3fe210>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7f7cea3c4e30>
@pytest.mark.anyio
async def test_get_connections_paginated(
bob_member_client: RichAsyncClient, alice_member_client: RichAsyncClient
):
num_connections_to_test = 5
test_alias = "test_pagination"
bob_alice_connections: List[BobAliceConnect] = []
try:
for _ in range(num_connections_to_test):
bob_and_alice_connection = await create_bob_alice_connection(
alice_member_client, bob_member_client, alias=test_alias
)
bob_alice_connections += (bob_and_alice_connection,)
# Test different limits
for limit in range(1, num_connections_to_test + 2):
num_tries = 0
retry = True
while retry and num_tries < 5: # Handle case where record doesn't exist yet
response = await alice_member_client.get(
BASE_PATH,
params={
"alias": test_alias,
"limit": limit,
},
)
connections = response.json()
if len(connections) != min(limit, num_connections_to_test):
num_tries += 1
await asyncio.sleep(0.2)
else:
retry = False
> assert (
not retry
), f"Expected {limit} records, got {len(connections)}: {connections}"
E AssertionError: Expected 6 records, got 6: [{'alias': 'test_pagination', 'connection_id': '255c0e32-e0b9-4cf7-ad58-7e2ec7bd5cc9', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:04:10.448104Z', 'error_msg': None, 'invitation_key': 'RPf7NcPAhuwb4DJNRd2BtJC65ExMs1bKn7JtzZxgCfD', 'invitation_mode': 'once', 'invitation_msg_id': 'ac019037-50d2-4612-8917-968d079e1e07', 'my_did': 'N5TtTf1Ruuz8qh9Jxe19dH', 'state': 'completed', 'their_did': 'FR4D7nTRM558rcDGG5xepo', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:04:12.116247Z'}, {'alias': 'test_pagination', 'connection_id': '2fea1c64-2b27-43ba-bbed-5008281cff0a', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:17:52.758733Z', 'error_msg': None, 'invitation_key': '8MXcTmsY5Aqt1xHvcq4SccZoiNy3uBpE7NSKKm2HFsy4', 'invitation_mode': 'once', 'invitation_msg_id': '0af4af58-46bc-4ad3-bff3-19a396d490cf', 'my_did': '3wuiX7vikug6xfbhxpYERk', 'state': 'completed', 'their_did': 'XjVPuAcxfAuR221xwwHPpq', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:17:54.522478Z'}, {'alias': 'test_pagination', 'connection_id': '83f45423-2555-4f0f-8ce5-340af5228f7b', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:36.410252Z', 'error_msg': None, 'invitation_key': '62HcvhvpvgtDpfgrHepjxr5sMTpjeQGKdD4pyJ89cF66', 'invitation_mode': 'once', 'invitation_msg_id': 'd3b8abf8-301c-42a5-aba6-8fcc379b0a3d', 'my_did': 'DNfUhqAiMGHXEp4nTE8Ady', 'state': 'completed', 'their_did': '4itAxym8vtxHBiNHwgQw7q', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:37.303591Z'}, {'alias': 'test_pagination', 'connection_id': '955c1afb-f300-47f2-90f0-7bdc0ab42774', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:37.584653Z', 'error_msg': None, 'invitation_key': '3F4HwVWSnWFjAGpsFSX44gjdpBH2M2XvSn5NK8WPUX2m', 'invitation_mode': 'once', 'invitation_msg_id': 'a8884e23-7097-4019-a25d-bb215cdff249', 'my_did': '13tdgW2Uc7ErXBgWujrpX3', 'state': 'completed', 'their_did': 'RyFkVau6AKxDYtfM63gbEn', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:38.534471Z'}, {'alias': 'test_pagination', 'connection_id': 'd78d9c62-1f1f-4ac5-931a-b97ff677415f', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:38.805721Z', 'error_msg': None, 'invitation_key': '2gkWjFjUW3AwnZzPecrbMqMm3m78um6bi3ovVQ7jzNHL', 'invitation_mode': 'once', 'invitation_msg_id': '4ed1fd75-6f4f-4a7f-a9c7-18da7970e4d8', 'my_did': 'Ns7kmyQD3jqV3BrhKhR2qx', 'state': 'completed', 'their_did': '7gGeyNScQDBfwEfwEHEzHT', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:39.737640Z'}, {'alias': 'test_pagination', 'connection_id': 'aa7e2c4c-538f-410a-957a-d0674ee08ab2', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:43:40.023100Z', 'error_msg': None, 'invitation_key': 'BAqnTFzcdPBh8QY3EZiDag9V5km2L1RyJkuDySLqFcof', 'invitation_mode': 'once', 'invitation_msg_id': 'cb735d23-727e-4041-a1bf-16d4f8981a56', 'my_did': 'UeFEZpBVbQ4C3KKoDvE5Yb', 'state': 'completed', 'their_did': 'SELR8rrWNGHWqZWjDJ5cj6', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:43:40.948541Z'}]
E assert not True
app/tests/e2e/test_connections.py:284: AssertionError
Loading