Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

chore: aries-js-worker - didexchange edgeagent/router #1357

Merged
merged 1 commit into from Feb 26, 2020

Conversation

llorllale
Copy link
Contributor

@llorllale llorllale commented Feb 26, 2020

closes #1330

  • BDD test for did-exchange edgeagent <-> router
  • fixes for properly propagating errors wasm -> JS when startup fails (eg. invalid startup options) and when didexchange.acceptInvitation fails
  • didexchange.acceptInvitation/queryConnectionByID now accept a text argument and transform it to a properly built object that the wasm expects
  • better test reporting to the terminal

Signed-off-by: George Aristy george.aristy@securekey.com

},
acceptInvitation: async function (text) {
return invoke(aw, pending, this.pkgname, "AcceptInvitation", text, "timeout while accepting invitation")
acceptInvitation: async function (connectionID) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The accept invitation API takes optional public DID as well (https://github.com/hyperledger/aries-framework-go/blob/master/pkg/controller/command/didexchange/models.go#L86) along with connection ID.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to "id"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok: renamed back to connectionID and added an optional publicDID arg

Signed-off-by: George Aristy <george.aristy@securekey.com>
},
acceptInvitation: async function (text) {
return invoke(aw, pending, this.pkgname, "AcceptInvitation", text, "timeout while accepting invitation")
acceptInvitation: async function (connectionID, publicDID="") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per my opinion, we should avoid using strict function args, because every time there is an update in command controller models we may have to come back here to make corresponding updates.

aries.didexchange.receiveInvitation(invitation)
})

it("Edge Agent validates that the connection's state is 'completed'", function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to have the .feature file for this step/scenario ?

Copy link
Contributor Author

@llorllale llorllale Feb 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my findings so far under the second point in #1238

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So short answer is - I couldn't make it work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. so, for now looks like we wont be able to reuse the steps.

@llorllale llorllale merged commit 2f3b78c into hyperledger-archives:master Feb 26, 2020
@llorllale llorllale deleted the 1330 branch February 26, 2020 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

aries-js-worker: add bdd test: didexchange b/w edge agent and router
4 participants