Face: unit test coverage for specifying signing identity/certificate in prefix registration
Add unit testing for
unregisterPrefix overloads where signing identity / certificate is specified.
Updated by Joao Pereira about 5 years ago
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?