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

Test Harness Expansion to cover AIP 1.0 Protocol 0036-issue-credential (Exception & Negative Tests) #35

Closed
nodlesh opened this issue Apr 29, 2020 · 1 comment

Comments

@nodlesh
Copy link
Contributor

nodlesh commented Apr 29, 2020

This Story relates to issue #10

ExceptionTest wip P2
Scenario: Issue a credential with the Holder beginning with a request and is rejected

ExceptionTest wip P2
Scenario: Issuer offers a credential that the Holder is unwilling to accept
Given “2” agents
| name | role |
| Alice | Issuer |
| Bob | Holder |
And “Alice” and “Bob” have an existing connection
When “Alice” offers a credential to “Bob”
And “Bob” does not accept the offer of the credential
Then “Bob”? sends a problem-report message
And the issue credential flow is reset
And the flow is issuance-abandoned

ExceptionTest wip TestIsAnAgent P4
Scenario: Issuer server crash in the middle of the issue credential workflow
Then someone sends a problem-report message
And the issue credential flow is reset
And the flow is issuance-abandoned

ExceptionTest wip TestIsAnAgent P4
Scenario: Holder server crash in the middle of the issue credential workflow
Then someone sends a problem-report message
And the issue credential flow is reset
And the flow is issuance-abandoned

NegativeTest
Scenario: Role reversal tests

Scenario: Holders requests credential before the issuer offers a credential

Scenario: Issuer proposes a credential to Bob and Mallory attempts to request the credential

Scenario: Issuer issues a credential to Bob and Mallory attempts to acknowledge the credential

DerivedFunctionalTest P4
PaymentRequest (optional tag)
Scenario: Issuer Offers Credential with a Payment Request, Holder pays and proceeds
Scenario: Issuer Offers a Credential with a Payment Request, Holder attempts to proceed without payment

OfferExpires (optional tag)
Scenario: Issuer offers a credential with an expiration, holder proceeds within the expiration time
Scenario: Issuer offers a credential with an expirations, holder proceeds outside the expiration time

NoAck (optional tag)
Scenario: Issuer issues a credential without requiring an acknowledgement.

PresentProof (optional tag)
Scenario: Issuer issues a credential requiring the holder to present proofs

@swcurran
Copy link
Member

Closing -- we won't add more 0036 tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants