FAILURE test_send_jsonld_request
wdbasson opened this issue · comments
=================================== FAILURES ===================================
___________________________ test_send_jsonld_request ___________________________
alice_member_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7f1dc1baedc0>
faber_client = <shared.util.rich_async_client.RichAsyncClient object at 0x7f1dc1e4a910>
faber_and_alice_connection = FaberAliceConnect(alice_connection_id='f352e29a-aad8-4837-a7de-2385c8b7238a', faber_connection_id='5ba61e21-6192-40f8-a61f-9952f912fab1')
register_issuer_key_ed25519 = 'did:key:z6MkoC4gXvZU2j18kJT59ytzwRH72BfPt795mjkETcZnJ3eo'
@pytest.mark.anyio
async def test_send_jsonld_request(
alice_member_client: RichAsyncClient,
faber_client: RichAsyncClient,
faber_and_alice_connection: FaberAliceConnect,
register_issuer_key_ed25519: DidKey,
):
alice_connection_id = faber_and_alice_connection.alice_connection_id
faber_connection_id = faber_and_alice_connection.faber_connection_id
# Updating JSON-LD credential did:key with proofType ed25519
credential = deepcopy(credential_)
credential["connection_id"] = faber_connection_id
credential["ld_credential_detail"]["credential"][
"issuer"
] = register_issuer_key_ed25519
response = await faber_client.post(
CREDENTIALS_BASE_PATH,
json=credential,
)
credential_exchange = response.json()
assert credential_exchange["protocol_version"] == "v2"
assert await check_webhook_state(
client=faber_client,
topic="credentials",
filter_map={
"state": "offer-sent",
"credential_id": credential_exchange["credential_id"],
},
)
response = await alice_member_client.get(
CREDENTIALS_BASE_PATH,
params={"connection_id": alice_connection_id},
)
> credential_id = (response.json())[0]["credential_id"]
E IndexError: list index out of range
app/tests/e2e/issuer/did_key_ed/test_ld_ed25519.py:234: IndexError
---------------------------- Captured stdout setup -----------------------------
2023-10-03 17:01:10.951 | DEBUG | app.event_handling.sse_listener:__init__:23 | Starting SseListener for wallet id `2049b750-2b64-4a09-916f-96a29011db2a` and topic `connections` |
2023-10-03 17:01:12.402 | DEBUG | app.event_handling.sse_listener:__init__:23 | Starting SseListener for wallet id `d7e0fcd0-cf8f-4110-aca7-36824e79ca86` and topic `connections` |
2023-10-03 17:01:12.644 | INFO | app.services.trust_registry:register_actor:410 | Registering actor on trust registry | {'actor': {'id': 'test-actor-0.4610850658923954', 'name': 'Test Actor-0.4610850658923954', 'roles': ['issuer'], 'did': 'did:key:z6MkoC4gXvZU2j18kJT59ytzwRH72BfPt795mjkETcZnJ3eo', 'didcomm_invitation': None}}
2023-10-03 17:01:12.791 | INFO | app.services.trust_registry:register_actor:438 | Successfully registered actor on trust registry. | {'actor': {'id': 'test-actor-0.4610850658923954', 'name': 'Test Actor-0.4610850658923954', 'roles': ['issuer'], 'did': 'did:key:z6MkoC4gXvZU2j18kJT59ytzwRH72BfPt795mjkETcZnJ3eo', 'didcomm_invitation': None}}
----------------------------- Captured stdout call -----------------------------
2023-10-03 17:01:13.185 | DEBUG | app.event_handling.sse_listener:__init__:23 | Starting SseListener for wallet id `d7e0fcd0-cf8f-4110-aca7-36824e79ca86` and topic `credentials` |
--------------------------- Captured stdout teardown ---------------------------
2023-10-03 17:01:13.444 | INFO | app.services.trust_registry:remove_actor_by_id:451 | Removing actor from trust registry | {'actor_id': 'test-actor-0.4610850658923954'}
2023-10-03 17:01:13.573 | INFO | app.services.trust_registry:remove_actor_by_id:477 | Successfully removed actor from trust registry. | {'actor_id': 'test-actor-0.4610850658923954'}
=============================== warnings summary ===============================
../usr/local/lib/python3.9/site-packages/uplink/_extras.py:4
/usr/local/lib/python3.9/site-packages/uplink/_extras.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED app/tests/e2e/issuer/did_key_ed/test_ld_ed25519.py::test_send_jsonld_request
============ 1 failed, 193 passed, 1 warning in 1891.99s (0:31:31) =============