π§βπ» Remove patch proxy CICD logic #3350
GitHub Actions / JUnit Test Report Regression
failed
Aug 13, 2024 in 0s
1070 tests run, 1033 passed, 36 skipped, 1 failed.
Annotations
Check failure on line 281 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': '49c98a18-57a9-43ca-a24d-e6723b1e67ac', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:19:25.351408Z', 'error_msg': None, 'invitation_key': 'mFXr49x1WVwQZtEdRXavGDLEGTrvNWSTitdVwgDBNDN', 'invitation_mode': 'once', 'invitation_msg_id': 'd26edd18-92f1-47c2-9ac4-1d4c7b9d9c3b', 'my_did': '6QcTCVx1WuS7hZHc2vtNK5', 'state': 'completed', 'their_did': 'MkGqG6MiKQj8JUmHAkBRTj', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:19:26.253157Z'}, {'alias': 'test_pagination', 'connection_id': '68effae1-f7e3-416d-9dd9-2c71aad807eb', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:41:55.195575Z', 'error_msg': None, 'invitation_key': 'Gu6gVkw6Cu9f3ASgBr6VRM6QKcpCmHA7kjXH1gbGuxZx', 'invitation_mode': 'once', 'invitation_msg_id': 'ea6cbcde-1425-48ff-b614-5486375a9d60', 'my_did': 'MBNSGzDsJnxWcRDhqkNuJj', 'state': 'completed', 'their_did': 'LXGUgiJvLTJMBUfMBwVv4j', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:41:56.112987Z'}, {'alias': 'test_pagination', 'connection_id': 'acc51f0c-8ebc-498a-8746-c82f43c883b2', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:41:56.379703Z', 'error_msg': None, 'invitation_key': '4vWh3zqnjg9F1BBpxrExg3WVsvygGqLcrMV4byqanDJU', 'invitation_mode': 'once', 'invitation_msg_id': '5157bef5-b928-44e9-913b-d5c08c8b3628', 'my_did': 'MwEuaBdqq5feMMgTkXug1z', 'state': 'completed', 'their_did': '8JADDJ6kBx4QVJUJz6RycE', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:41:57.238676Z'}, {'alias': 'test_pagination', 'connection_id': '8d69c54b-7606-4645-bf04-0bcce2959234', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:41:57.551012Z', 'error_msg': None, 'invitation_key': '97Wx9Nu4X3PGJLDUP5edUcT45xbQ92Ek1Zi6DaZ7gVL2', 'invitation_mode': 'once', 'invitation_msg_id': 'd5d57f38-7f8e-4894-bd4f-4ab1f409d8ed', 'my_did': 'F51CZNLqPMW8cVFcEP9uKu', 'state': 'completed', 'their_did': 'Pbjr7Ap4snyWvvHbi3pm4', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:41:58.494530Z'}, {'alias': 'test_pagination', 'connection_id': 'd235b269-903a-434a-84bd-c4621f851358', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T18:12:16.983939Z', 'error_msg': None, 'invitation_key': '2QSmocmuh3SqqwWc2NYbCdCe9MRX7V51Jwo8f4MjV7VB', 'invitation_mode': 'once', 'invitation_msg_id': '3ebe63a5-3140-4c37-b896-6fd029000e27', 'my_did': 'MeCPEQTSB5RTb5TYeVRJAP', 'state': 'completed', 'their_did': 'ErVwmwfXWjomaEs7hqfXgD', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T18:12:17.880492Z'}, {'alias': 'test_pagination', 'connection_id': '94a9416e-cb08-49bf-a50c-9974cfc5835c', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T18:12:18.196429Z', 'error_msg': None, 'invitation_key': 'Dy5YihGJyWRjUzKw57notnXxgqh6XubzfVknk3szNz9b', 'invitation_mode': 'once', 'invitation_msg_id': 'da9ea352-8037-4a92-b67c-fb3c3ee5a215', 'my_did': 'H6mUSeebdM7RsJNMx8Dhfg', 'state': 'completed', 'their_did': 'Nk7JCYiHcNapLB1c1F1hTh', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T18:12:19.036987Z'}]
assert not True
Raw output
bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7f2e887050a0>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7f2e887d2db0>
@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] = []
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': '49c98a18-57a9-43ca-a24d-e6723b1e67ac', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:19:25.351408Z', 'error_msg': None, 'invitation_key': 'mFXr49x1WVwQZtEdRXavGDLEGTrvNWSTitdVwgDBNDN', 'invitation_mode': 'once', 'invitation_msg_id': 'd26edd18-92f1-47c2-9ac4-1d4c7b9d9c3b', 'my_did': '6QcTCVx1WuS7hZHc2vtNK5', 'state': 'completed', 'their_did': 'MkGqG6MiKQj8JUmHAkBRTj', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:19:26.253157Z'}, {'alias': 'test_pagination', 'connection_id': '68effae1-f7e3-416d-9dd9-2c71aad807eb', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:41:55.195575Z', 'error_msg': None, 'invitation_key': 'Gu6gVkw6Cu9f3ASgBr6VRM6QKcpCmHA7kjXH1gbGuxZx', 'invitation_mode': 'once', 'invitation_msg_id': 'ea6cbcde-1425-48ff-b614-5486375a9d60', 'my_did': 'MBNSGzDsJnxWcRDhqkNuJj', 'state': 'completed', 'their_did': 'LXGUgiJvLTJMBUfMBwVv4j', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:41:56.112987Z'}, {'alias': 'test_pagination', 'connection_id': 'acc51f0c-8ebc-498a-8746-c82f43c883b2', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:41:56.379703Z', 'error_msg': None, 'invitation_key': '4vWh3zqnjg9F1BBpxrExg3WVsvygGqLcrMV4byqanDJU', 'invitation_mode': 'once', 'invitation_msg_id': '5157bef5-b928-44e9-913b-d5c08c8b3628', 'my_did': 'MwEuaBdqq5feMMgTkXug1z', 'state': 'completed', 'their_did': '8JADDJ6kBx4QVJUJz6RycE', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:41:57.238676Z'}, {'alias': 'test_pagination', 'connection_id': '8d69c54b-7606-4645-bf04-0bcce2959234', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T17:41:57.551012Z', 'error_msg': None, 'invitation_key': '97Wx9Nu4X3PGJLDUP5edUcT45xbQ92Ek1Zi6DaZ7gVL2', 'invitation_mode': 'once', 'invitation_msg_id': 'd5d57f38-7f8e-4894-bd4f-4ab1f409d8ed', 'my_did': 'F51CZNLqPMW8cVFcEP9uKu', 'state': 'completed', 'their_did': 'Pbjr7Ap4snyWvvHbi3pm4', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T17:41:58.494530Z'}, {'alias': 'test_pagination', 'connection_id': 'd235b269-903a-434a-84bd-c4621f851358', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T18:12:16.983939Z', 'error_msg': None, 'invitation_key': '2QSmocmuh3SqqwWc2NYbCdCe9MRX7V51Jwo8f4MjV7VB', 'invitation_mode': 'once', 'invitation_msg_id': '3ebe63a5-3140-4c37-b896-6fd029000e27', 'my_did': 'MeCPEQTSB5RTb5TYeVRJAP', 'state': 'completed', 'their_did': 'ErVwmwfXWjomaEs7hqfXgD', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T18:12:17.880492Z'}, {'alias': 'test_pagination', 'connection_id': '94a9416e-cb08-49bf-a50c-9974cfc5835c', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-13T18:12:18.196429Z', 'error_msg': None, 'invitation_key': 'Dy5YihGJyWRjUzKw57notnXxgqh6XubzfVknk3szNz9b', 'invitation_mode': 'once', 'invitation_msg_id': 'da9ea352-8037-4a92-b67c-fb3c3ee5a215', 'my_did': 'H6mUSeebdM7RsJNMx8Dhfg', 'state': 'completed', 'their_did': 'Nk7JCYiHcNapLB1c1F1hTh', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-13T18:12:19.036987Z'}]
E assert not True
app/tests/e2e/test_connections.py:281: AssertionError
Loading