aries-framework-go icon indicating copy to clipboard operation
aries-framework-go copied to clipboard

WACI Credential Manifest flow bdd tests

Open rolsonquadras opened this issue 3 years ago • 3 comments

Add BDD tests to show WACI Issuance DIDComm flow.

Note: WACI uses

Steps - Success Scenario:

  • Alice gets OOB message from a Issuer
  • Alice sends issue-credential propose message to the Issuer
  • Issuer sends issue-credential offer-credential message with Credential Manifest and Unsigned Credential Fulfillment data to Alice
  • Alice sends issue-credential request-credential message with Credential Application to Issuer
  • Issuer sends issue-credential offer-credential message with signed Credential Fulfillment data to Alice and Alice verifies the redirectURL inside the message.
  • Alice sends issue-credential ack message to the issuer.

Steps - Success Scenario with PEx:

  • Alice has PermanentResidentCard VC stored in her agent
  • Alice gets OOB message from a Issuer
  • Alice sends issue-credential propose message to the Issuer
  • Issuer sends issue-credential offer-credential message with Credential Manifest with PEx requirement of PermanentResidentCard VC and Unsigned Credential Fulfillment data to Alice
  • Alice sends issue-credential request-credential message with Credential Application including her PermanentResidentCard to Issuer
  • Issuer sends issue-credential offer-credential message with signed Credential Fulfillment data to Alice and Alice verifies the redirectURL inside the message.
  • Alice sends issue-credential ack message to the issuer.

Steps - Failure Scenario:

  • Alice gets OOB message from a Issuer
  • Alice sends issue-credential propose message to the Issuer
  • Issuer sends issue-credential offer-credential message with Credential Manifest and Unsigned Credential Fulfillment data to Alice
  • Alice sends issue-credential request-credential message with Credential Application to Issuer
  • Issuer fails to validate the credential application and sends issue-credential problem-report message with redirect URL

rolsonquadras avatar Nov 16 '21 15:11 rolsonquadras

I completed this in https://github.com/hyperledger/aries-framework-go/pull/3133 and https://github.com/hyperledger/aries-framework-go/pull/3138.

DRK3 avatar Feb 01 '22 00:02 DRK3

^ Those tests are for the Go SDK. Controller BDD tests are still pending.

DRK3 avatar Feb 01 '22 15:02 DRK3

Actually, now that I re-read the issue text more carefully, I see that you've described a few different scenarios - I don't have tests for each scenario. My test is for the general flow as defined in https://identity.foundation/waci-presentation-exchange/#issuance-2 but there would be more work to be done to demonstrate the three scenarios per the steps in your original post https://github.com/hyperledger/aries-framework-go/issues/3061#issue-1054992391

DRK3 avatar Feb 03 '22 21:02 DRK3