Skip to content

⬆️ ✨ Upgrade acapy 1.0.0 #2801

⬆️ ✨ Upgrade acapy 1.0.0

⬆️ ✨ 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

See this annotation in the file changed.

@github-actions 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': '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': '7b7a0ba4-b005-4808-ae98-7b83505311c6', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:34.065818Z', 'error_msg': None, 'invitation_key': 'DMdoSCYbPwJkyBBiK4oaUp98M3Nf6iZpHAwHQRBVwypF', 'invitation_mode': 'once', 'invitation_msg_id': '71d40eab-bd05-499f-99c8-ec730345b7c8', 'my_did': 'Py5QAF4SQb4zJ84tLUBhzN', 'state': 'completed', 'their_did': 'NQPc5KnJQALbEX48bzUMaD', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:34.984979Z'}, {'alias': 'test_pagination', 'connection_id': '5729c181-f0e0-460f-8748-f5b993b543c4', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:35.268209Z', 'error_msg': None, 'invitation_key': 'EPhfhwHeXVmodeH4bJyWyet8XyvJkpUj6b2q67sA18HC', 'invitation_mode': 'once', 'invitation_msg_id': '016b92df-aec9-46b6-b69b-cb685831c4ca', 'my_did': 'QUBJHA6YHqrarzz8PAnRRV', 'state': 'completed', 'their_did': '5BroixEZXmFuANVfiKWe3H', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:36.172783Z'}, {'alias': 'test_pagination', 'connection_id': '9442923e-ffa0-4b06-8c06-9ef9fc3fa922', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:36.641334Z', 'error_msg': None, 'invitation_key': 'GzzRyjFDbkjvLL4YAwFcEv974iup5CGyRWPh4nKGMhL8', 'invitation_mode': 'once', 'invitation_msg_id': '83021114-cc79-4a4a-9080-6c629a0b1b6c', 'my_did': 'RbF8UJuJuozF22VsSZUWnS', 'state': 'completed', 'their_did': 'ME4Mg5hocA6zNWwBT5XC1c', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:37.553137Z'}, {'alias': 'test_pagination', 'connection_id': '8fb98a58-a94e-46ac-a053-ea25243e1ed0', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:38.052766Z', 'error_msg': None, 'invitation_key': 'UrxQcsnrhefUaDUV4v4kaeyPAFcBPYyYJSKCHzU89qM', 'invitation_mode': 'once', 'invitation_msg_id': '003636e8-f2b2-4a29-8860-6c2c439f5ebc', 'my_did': 'WyHa4bXZNMMGBK6aw52BsG', 'state': 'completed', 'their_did': 'Ah98v7Sb7L3XNTtvcNv6zg', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:39.061339Z'}, {'alias': 'test_pagination', 'connection_id': '8ce80030-e0b5-4fbd-9002-db8dd892be8a', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:39.462045Z', 'error_msg': None, 'invitation_key': 'DEkTcmMDwivqzncvpPd12AtfTwTYVMyqUYDzTem9aPZi', 'invitation_mode': 'once', 'invitation_msg_id': '9f262e17-96e6-455e-81ed-13942acafbf9', 'my_did': 'AUsKSvEdcCes6rtW7o8YYJ', 'state': 'completed', 'their_did': 'QBfeKZpypzis9dNZfEKknk', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:40.422870Z'}]
assert not True
Raw output
bob_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7ff7f49594c0>
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7ff7f41e2e70>

    @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': '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': '7b7a0ba4-b005-4808-ae98-7b83505311c6', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:34.065818Z', 'error_msg': None, 'invitation_key': 'DMdoSCYbPwJkyBBiK4oaUp98M3Nf6iZpHAwHQRBVwypF', 'invitation_mode': 'once', 'invitation_msg_id': '71d40eab-bd05-499f-99c8-ec730345b7c8', 'my_did': 'Py5QAF4SQb4zJ84tLUBhzN', 'state': 'completed', 'their_did': 'NQPc5KnJQALbEX48bzUMaD', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:34.984979Z'}, {'alias': 'test_pagination', 'connection_id': '5729c181-f0e0-460f-8748-f5b993b543c4', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:35.268209Z', 'error_msg': None, 'invitation_key': 'EPhfhwHeXVmodeH4bJyWyet8XyvJkpUj6b2q67sA18HC', 'invitation_mode': 'once', 'invitation_msg_id': '016b92df-aec9-46b6-b69b-cb685831c4ca', 'my_did': 'QUBJHA6YHqrarzz8PAnRRV', 'state': 'completed', 'their_did': '5BroixEZXmFuANVfiKWe3H', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:36.172783Z'}, {'alias': 'test_pagination', 'connection_id': '9442923e-ffa0-4b06-8c06-9ef9fc3fa922', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:36.641334Z', 'error_msg': None, 'invitation_key': 'GzzRyjFDbkjvLL4YAwFcEv974iup5CGyRWPh4nKGMhL8', 'invitation_mode': 'once', 'invitation_msg_id': '83021114-cc79-4a4a-9080-6c629a0b1b6c', 'my_did': 'RbF8UJuJuozF22VsSZUWnS', 'state': 'completed', 'their_did': 'ME4Mg5hocA6zNWwBT5XC1c', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:37.553137Z'}, {'alias': 'test_pagination', 'connection_id': '8fb98a58-a94e-46ac-a053-ea25243e1ed0', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:38.052766Z', 'error_msg': None, 'invitation_key': 'UrxQcsnrhefUaDUV4v4kaeyPAFcBPYyYJSKCHzU89qM', 'invitation_mode': 'once', 'invitation_msg_id': '003636e8-f2b2-4a29-8860-6c2c439f5ebc', 'my_did': 'WyHa4bXZNMMGBK6aw52BsG', 'state': 'completed', 'their_did': 'Ah98v7Sb7L3XNTtvcNv6zg', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:39.061339Z'}, {'alias': 'test_pagination', 'connection_id': '8ce80030-e0b5-4fbd-9002-db8dd892be8a', 'connection_protocol': 'connections/1.0', 'created_at': '2024-08-20T14:32:39.462045Z', 'error_msg': None, 'invitation_key': 'DEkTcmMDwivqzncvpPd12AtfTwTYVMyqUYDzTem9aPZi', 'invitation_mode': 'once', 'invitation_msg_id': '9f262e17-96e6-455e-81ed-13942acafbf9', 'my_did': 'AUsKSvEdcCes6rtW7o8YYJ', 'state': 'completed', 'their_did': 'QBfeKZpypzis9dNZfEKknk', 'their_label': 'RegressionHolderBob', 'their_public_did': None, 'their_role': 'inviter', 'updated_at': '2024-08-20T14:32:40.422870Z'}]
E               assert not True

app/tests/e2e/test_connections.py:284: AssertionError