Task #2221
open
Face: unit test coverage for specifying signing identity/certificate in prefix registration
Added by Junxiao Shi almost 10 years ago.
Updated almost 6 years ago.
Description
Add unit testing for registerPrefix
and unregisterPrefix
overloads where signing identity / certificate is specified.
- Blocked by Task #1947: Add more unit tests for Face::[register/unregister]Prefix methods added
For this issue there already are 2 tests:
- RegisterUnregisterPrefix - That will Register using no signature and the unregister
- RegisterUnregisterPrefixFail - That will Register using no signature
I propose to add the following tests
- RegisterUnregisterPrefixUsingSignature - That will Register using a signature and the unregister
- RegisterUnregisterPrefixFailUsingSignature - That will Register using a signature
- RegisterUnregisterPrefixUsingName - That will Register using a name and the unregister
- RegisterUnregisterPrefixFailUsingName - That will Register using a name
I have questions:
- Is there a way to retrieve all the prefix that have been registered to look into the options of them to check the correct value is set?
- Is there any special reason for not using a Mock library to Mock the tests to have more control over the tests?
- Blocked by Task #2932: Face: simplify prefix registration APIs with SigningInfo added
- Subject changed from Face: unit test coverage for specifying signing identity / certificate in prefix registration to Face: unit test coverage for specifying signing identity/certificate in prefix registration
Also available in: Atom
PDF