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

test: Enhancements to WACI issuance BDD tests #3138

Conversation

DRK3
Copy link
Contributor

@DRK3 DRK3 commented Jan 24, 2022

  • Attachments are now generated on the fly using pre-defined Credential Manifest, Credential Application, and Credential Fulfillment objects.
  • Added constants to Credential Manifest package for attachment formats and contexts.

Signed-off-by: Derek Trider Derek.Trider@securekey.com

@@ -70,6 +81,7 @@ func (i *IssuanceSDKSteps) SetContext(ctx *context.BDDContext) {
}

// RegisterSteps registers the BDD test steps on the suite.
// Note that VC proofs are not checked in this test suite.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I also check VC proofs? (if so, I can do that in my next PR) @sudeshrshetty @rolsonquadras

Copy link
Contributor

Choose a reason for hiding this comment

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

that's ok, but nice to have feature. If it can be quick then do it.

return &credentialFulfillmentAttachment, nil
}

func generateCredentialFulfillmentProof() map[string]string {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is the best way to do this... let me know if there's something else I should do instead. Also let me know if did:orb is ok here.

@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #3138 (06de3b5) into main (86571b0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3138   +/-   ##
=======================================
  Coverage   88.78%   88.78%           
=======================================
  Files         307      307           
  Lines       41044    41044           
=======================================
  Hits        36441    36441           
  Misses       3356     3356           
  Partials     1247     1247           
Impacted Files Coverage Δ
pkg/doc/cm/credentialfulfillment.go 86.36% <ø> (ø)
pkg/doc/cm/credentialmanifest.go 89.73% <ø> (ø)
pkg/doc/cm/credentialapplication.go 94.36% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86571b0...06de3b5. Read the comment docs.

@@ -0,0 +1,12 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to move these files (and the others in the waci folder) to a testdata subdirectory like elsewhere in test/bdd/pkg ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

- Attachments are now generated on the fly using pre-defined Credential Manifest, Credential Application, and Credential Fulfillment objects.
- Added constants to Credential Manifest package for attachment formats and contexts.

Signed-off-by: Derek Trider <Derek.Trider@securekey.com>
@DRK3 DRK3 force-pushed the WACIIssuanceBDDTestGenerateAttachmentsOnTheFly branch from 8beb23d to 06de3b5 Compare January 24, 2022 21:41
@DRK3 DRK3 requested a review from Moopli January 24, 2022 21:42
@@ -70,6 +81,7 @@ func (i *IssuanceSDKSteps) SetContext(ctx *context.BDDContext) {
}

// RegisterSteps registers the BDD test steps on the suite.
// Note that VC proofs are not checked in this test suite.
Copy link
Contributor

Choose a reason for hiding this comment

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

that's ok, but nice to have feature. If it can be quick then do it.

@sudeshrshetty sudeshrshetty merged commit 7c9c409 into hyperledger-archives:main Jan 25, 2022
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.

None yet

3 participants