Project

General

Profile

Task #2221

Face: unit test coverage for specifying signing identity/certificate in prefix registration

Added by Junxiao Shi over 5 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Base
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
3.00 h

Description

Add unit testing for registerPrefix and unregisterPrefix overloads where signing identity / certificate is specified.


Related issues

Blocked by ndn-cxx - Task #1947: Add more unit tests for Face::[register/unregister]Prefix methodsClosedAlex Afanasyev

Actions
Blocked by ndn-cxx - Task #2932: Face: simplify prefix registration APIs with SigningInfoClosedJoao Pereira07/02/2015

Actions
#1

Updated by Junxiao Shi over 5 years ago

  • Blocked by Task #1947: Add more unit tests for Face::[register/unregister]Prefix methods added
#2

Updated by Joao Pereira about 5 years ago

For this issue there already are 2 tests:

  1. RegisterUnregisterPrefix - That will Register using no signature and the unregister
  2. RegisterUnregisterPrefixFail - That will Register using no signature

I propose to add the following tests

  1. RegisterUnregisterPrefixUsingSignature - That will Register using a signature and the unregister
  2. RegisterUnregisterPrefixFailUsingSignature - That will Register using a signature
  3. RegisterUnregisterPrefixUsingName - That will Register using a name and the unregister
  4. RegisterUnregisterPrefixFailUsingName - That will Register using a name

I have questions:

  1. 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?
  2. Is there any special reason for not using a Mock library to Mock the tests to have more control over the tests?
#3

Updated by Junxiao Shi about 5 years ago

  • Blocked by Task #2932: Face: simplify prefix registration APIs with SigningInfo added
#4

Updated by Davide Pesavento over 1 year ago

  • Tags set to UnitTests
#5

Updated by Davide Pesavento over 1 year ago

  • 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