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

respond with 404 Not Found for bad cred ex id in issue-cred #526

Conversation

sklump
Copy link
Contributor

@sklump sklump commented May 26, 2020

Addresses #524 and cousins throughout issue-credential protocol

Signed-off-by: sklump srklump@hotmail.com

Signed-off-by: sklump <srklump@hotmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #526 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #526   +/-   ##
=======================================
  Coverage   96.45%   96.45%           
=======================================
  Files         236      236           
  Lines       12123    12135   +12     
=======================================
+ Hits        11693    11705   +12     
  Misses        430      430           

@swcurran
Copy link
Member

Cool - I'm going to see if I can use the AATH to test this... I'll use Stephen's branch, so please keep that in place for a little bit.

@swcurran
Copy link
Member

Good news and bad. Super easy to use a another branch in the AATH, so that's neat. I think we can easily make this parameterized so that it's trivial to run these tests with a branch,.

Bad is that there were no tests that exercised this, so I couldn't tell if it did anything.

@sklump
Copy link
Contributor Author

sklump commented May 26, 2020

Easy: spin up an instance, get cred Ex record from Admin API specifying bogus cred def id (pick a UUID from the sample black box). Observe the error message, 404 not found.

@sklump
Copy link
Contributor Author

sklump commented May 26, 2020

Also, note that there are unit tests for all of these cases in test_routes.py

@andrewwhitehead andrewwhitehead merged commit 75effeb into hyperledger:master May 27, 2020
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.

None yet

4 participants