Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scenario tests #3231

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scenarios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Every test example will have a docker-compose.yml file for all the agents and se
- From the scenarios directory.
- Make sure the local acapy image is up to date.
- `cd ..`
- `docker build -t acapy-test -f ../docker/Dockerfile.run .`
- `docker build -t acapy-test -f ./docker/Dockerfile.run .`
- `cd scenarios`
- Navigate to the base example. `cd examples/simple`
- `docker compose up`
Expand All @@ -19,7 +19,7 @@ To run all the tests with pytest:
- From the scenarios directory.
- Make sure the local acapy image is up to date.
- `cd ..`
- `docker build -t acapy-test -f ../docker/Dockerfile.run .`
- `docker build -t acapy-test -f ./docker/Dockerfile.run .`
- `cd scenarios`
- `poetry run pytest -m examples`
- TODO: easily run individual tests with pytest.
3 changes: 1 addition & 2 deletions scenarios/examples/connectionless/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ async def icv2():
"role": "ENDORSER",
},
) as resp:
if resp.ok:
return await resp.json()
assert resp.ok

await alice.post("/wallet/did/public", params=params(did=public_did.did))

Expand Down
3 changes: 1 addition & 2 deletions scenarios/examples/json_ld/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ async def main():
"role": "ENDORSER",
},
) as resp:
if resp.ok:
return await resp.json()
assert resp.ok

await alice.post(
"/wallet/did/public", params=params(did=public_did.did)
Expand Down
3 changes: 1 addition & 2 deletions scenarios/examples/multitenancy/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ async def main():
"role": "ENDORSER",
},
) as resp:
if resp.ok:
return await resp.json()
assert resp.ok

await alice.post("/wallet/did/public", params=params(did=public_did.did))
_, cred_def = await indy_anoncred_credential_artifacts(
Expand Down
3 changes: 1 addition & 2 deletions scenarios/examples/presenting_revoked_credential/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ async def main():
"role": "ENDORSER",
},
) as resp:
if resp.ok:
return await resp.json()
assert resp.ok

await alice.post("/wallet/did/public", params=params(did=public_did.did))
schema, cred_def = await indy_anoncred_credential_artifacts(
Expand Down
3 changes: 1 addition & 2 deletions scenarios/examples/self_attested/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ async def main():
"role": "ENDORSER",
},
) as resp:
if resp.ok:
return await resp.json()
assert resp.ok

await alice.post("/wallet/did/public", params=params(did=public_did.did))
schema, cred_def = await indy_anoncred_credential_artifacts(
Expand Down
Loading