Skip to content

Commit

Permalink
small adjustments based on PR self-review
Browse files Browse the repository at this point in the history
Signed-off-by: 2byrds <[email protected]>
  • Loading branch information
2byrds committed Jul 18, 2024
1 parent 8f2bbad commit 9070af8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion images/keria.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM weboftrust/keri:1.2.0-dev8
FROM weboftrust/keri:1.2.0-dev10

WORKDIR /usr/local/var

Expand Down
1 change: 0 additions & 1 deletion src/keria/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from keri import kering
from keri import core
from keri.app.indirecting import MailboxDirector
from keri.app.notifying import Notifier
from keri.app.storing import Mailboxer

Expand Down
7 changes: 6 additions & 1 deletion src/keria/app/aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def on_post(self, req, rep, name):
---
summary: Process identifier events.
description: This endpoint handles the 'rot' or 'ixn' events of an identifier based on the provided request.
description: This endpoint handles the 'rot' or 'ixn' events of an identifier, or the request to resubmit the KEL, based on the provided request.
tags:
- Identifier
parameters:
Expand All @@ -779,11 +779,16 @@ def on_post(self, req, rep, name):
ixn:
type: object
description: The interaction event details.
submit:
type: object
description: The request to resubmit event details to witnesses.
oneOf:
- required:
- rot
- required:
- ixn
- required:
- submit
responses:
200:
description: Successfully processed the identifier's event.
Expand Down
2 changes: 1 addition & 1 deletion src/keria/testing/testing_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def middleware(agent):

@staticmethod
@contextmanager
def openKeria(salter=None, cf=None, temp=True, mockWitCalls=False):
def openKeria(salter=None, cf=None, temp=True):

serder, sigers = Helpers.controller()
assert serder.pre == Helpers.controllerAID
Expand Down
4 changes: 2 additions & 2 deletions tests/app/test_aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def test_identifier_collection_end(helpers):
assert res.json == {"title": "AID with name aid1 already incepted"}

# Try to resubmit with the proper endpoint, but w/o witnesses
submitBody = {"submit": "rock and roll"}
submitBody = {"submit": "aid1"}
res = client.simulate_post(
path=f"/identifiers/{body['name']}/submit", body=json.dumps(submitBody)
)
Expand Down Expand Up @@ -555,7 +555,7 @@ def test_identifier_collection_end(helpers):
agent0 = mhab["state"]

# Try to resubmit with the proper endpoint, w/ witnesses
submitBody = {"submit": "rock and roll"}
submitBody = {"submit": "aid3"}
res = client.simulate_post(
path=f"/identifiers/{body['name']}/submit", body=json.dumps(submitBody)
)
Expand Down
3 changes: 2 additions & 1 deletion tests/app/test_specing.py

Large diffs are not rendered by default.

0 comments on commit 9070af8

Please sign in to comment.