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

(Chore) GoodID API unit tests & fixes #462

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

johnsmith-gooddollar
Copy link
Collaborator

@johnsmith-gooddollar johnsmith-gooddollar commented Feb 29, 2024

Description

  • added unit tests for issue location certificate endpoint
  • added unit tests for verify location certificate endpoint
  • bugfixes

About #459

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature.
  • @mentions of the person or team responsible for reviewing proposed changes

@@ -56,15 +58,21 @@ export const getAgent = once(async () => {
...keyDidResolver()
})
}),
new CredentialPlugin()
new CredentialPlugin(),
new CredentialIssuerLD({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this wasn't documented. found it in the veramo packages' sources, inside tests folder


try {
const success = await utils.verifyCertificate(ceriticate)
if (!certificate) {

Check failure

Code scanning / CodeQL

User-controlled bypass of security check High

This condition guards a sensitive
action
, but a
user-provided value
controls it.
@johnsmith-gooddollar johnsmith-gooddollar merged commit 4ee268d into master Mar 4, 2024
10 of 11 checks passed
@johnsmith-gooddollar johnsmith-gooddollar deleted the 523-certificate-tests branch March 4, 2024 12:21
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

Successfully merging this pull request may close these issues.

2 participants