Project

General

Profile

Actions

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.

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 2 (0 open2 closed)

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
Actions #1

Updated by Junxiao Shi almost 10 years ago

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

Updated by Joao Pereira over 9 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?
Actions #3

Updated by Junxiao Shi over 9 years ago

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

Updated by Davide Pesavento about 6 years ago

  • Tags set to UnitTests
Actions #5

Updated by Davide Pesavento almost 6 years 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
Actions

Also available in: Atom PDF