-
Notifications
You must be signed in to change notification settings - Fork 66
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
Need tests that cover proof requests for multiple AnonCreds with/without revocation #605
Comments
These tests are intended to cover issues in ACA-Py (2036 and 1651, and BC-Wallet issue 762. We also may need to have the revocation tests also cover whether the revocation interval in the proof request is applied at the top level (applying to all referents) or at the referent level. However, that can wait until we have the specific tests working. It would be good to have this test working with the Mobile Backchannel so that we can also test individual wallets for this test case. |
@swcurran In this middle of the long scenario you state this.
Shouldn't Bob have the proof verified in this case since no interval is included, therefore the verifier doesn't care if it was revoked or not? |
Interesting question. For verification to be accepted when a revocation is not requested, the holder would have to not include a non-revocation proof in the response. Alternatively, the holder provides the non-revocation proof and the verifier ignores it -- either before or after running the verifier. Lets have the test go with assuming it is valid to get a revoked credential when revocation data is not requested, and then we'll see what tests pass and fail. |
Further, we can decide if it does fail, how it can be corrected. |
In the fibonacci scale, if 1 is a spelling correction, this is about an effort level 8. Most of the steps can be reused from other test scenarios, most of the work may be in constructing the red data, proofs, and making it work with the mobile backchannel. The large scenario above should be broken down to properly identify and run particular cases individually. The effort of 8 includes all scenarios below that are tagged
I believe these scenarios capture everything in the large scenario above, plus more, including some negative tests. Welcome review of the priorities and the scenarios themselves. |
Another question is how should we categorize these? Inside the existing revocation test feature file for RFC-0183 and HIPE-0011, or should we create a separate feature file and/or tagged with |
At least some of the "negative tests" are not really negative tests -- such as requesting a revocation interval for non-revocable credentials. Keep in mind that a verifier does not necessarily know whether a credential held by the holder is revocable or not, and so whether they request a revocation interval or not is independent of whether the holder has a revocable credential or not. Consider for example. Many universities issue the same "Degree" credential to students, some that are revocable, others that are not. An employer would not know if an applicant had a revocable credential or and so would always request a revocation interval (or not) and happily accept unrevocable credentials. Note that after receiving the presentation, the verifier would know if the credential was revocable, as they would know what CredDef the issuer was using. I would call the tests RFC-0441-REV and reference this section of RFC 0441. As an aside from this issue -- we should also have some tests that cover RFC-0441-DATES that covers this part of the same RFC 0441. |
It will really take 20 tests to cover this? Presumably we will also need 2 credentials and 4 presentation requests. The four presentations would request would all request claims from both credentials, and would have:
|
Yes, agreed some of those Negative Tests don't sound like negative now that I read them again. Won't add those tags when the tests are written. We can probably combine a few to make the list shorter. For example, could do the non revoked test, then revoke, and use the same presentation, all in one scenario. Will start with the list above and as they are written some will naturally merge where it makes sense. |
We need a to add a set of tests that handle testing proof request involving:
The intent of the tests should be the following, but I'm not sure how many individual tests are needed to accomplish this. I'm ok with a long test that executes a number of scenarios -- e.g. providing the presentation before revocation and after in a single test.
The text was updated successfully, but these errors were encountered: