Skip to content

Commit

Permalink
fix: minor tweaks to mediation example
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Nov 16, 2023
1 parent e8b852b commit 10be9bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 3 additions & 6 deletions examples/mediation/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: "3"
services:
alice:
#image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.2
image: acapy-test
image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.4
ports:
- "3001:3001"
environment:
Expand Down Expand Up @@ -34,8 +33,7 @@ services:
condition: service_started

bob:
#image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.2
image: acapy-test
image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.4
ports:
- "3002:3001"
environment:
Expand Down Expand Up @@ -68,8 +66,7 @@ services:
condition: service_started

mediator:
#image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.2
image: acapy-test
image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.4
ports:
- "3003:3001"
environment:
Expand Down
13 changes: 11 additions & 2 deletions examples/mediation/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

from controller import Controller
from controller.logging import logging_to_stdout
from controller.protocols import didexchange, request_mediation_v1
from controller.protocols import (
connection,
didexchange,
request_mediation_v1,
trustping,
)

ALICE = getenv("ALICE", "http://alice:3001")
BOB = getenv("BOB", "http://bob:3001")
Expand All @@ -27,7 +32,11 @@ async def main():
mediator, alice, ma.connection_id, am.connection_id
)
await alice.put(f"/mediation/{amm.mediation_id}/default-mediator")
await didexchange(alice, bob)
ab, ba = await didexchange(alice, bob)
await trustping(alice, ab)

ab, ba = await connection(alice, bob)
await trustping(alice, ab)


if __name__ == "__main__":
Expand Down

0 comments on commit 10be9bf

Please sign in to comment.