Project

General

Profile

Actions

Task #5026

open

Self-learning: unit testing

Added by Teng Liang over 4 years ago. Updated 5 months ago.

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

0%

Estimated time:

Description

Self-learning strategy operates between two threads, mainIo and ribIo, making unit testing challenging. Before Self-learning strategy was merged, only simple integration tests were done. Recently, we have conducted extensive testing on self-learning in several scenarios, and found several bugs. This task is to design and add unit testing to self-learning strategy.


Related issues 1 (0 open1 closed)

Has duplicate NFD - Task #4401: Unit tests for Self-learning Forwarding StrategyAbandoned

Actions
Actions #1

Updated by Teng Liang over 4 years ago

  • Subject changed from Self-learning Strategy: Unit Testing to Self-learning: unit testing
Actions #2

Updated by Davide Pesavento over 4 years ago

  • Tags changed from SelfLearning to SelfLearning, UnitTests

We already had #4401...

Actions #3

Updated by Junxiao Shi over 4 years ago

  • Has duplicate Task #4401: Unit tests for Self-learning Forwarding Strategy added
Actions #4

Updated by Md Ashiqur Rahman over 4 years ago

Hi Junxiao, Teng mentioned you and him had a discussion regarding the tests but nit in details. Can we schedule a meeting to discuss? Also, how would you prefer to set a meeting? I sent you a message on slack, but did not get a response. Do you want me to send you an email?

Actions #5

Updated by Davide Pesavento over 4 years ago

  • Target version changed from v0.7 to 22.02
Actions #6

Updated by Teng Liang over 3 years ago

Here is the testing plan: test self-learning strategy behaviors in different scenarios on a single node. The purpose is to test if sl is implemented correctly with the right action being conducted.

To test it, the fixture contains a forwarder in the main io, and the rib service in the rib io. The actions for Interest processing do not use rib service, but the actions for Data processing do. In data processing, the strategy is calling rib::Service::get().getRibManager().slXXX. The current coding difficulty is to connect the rib service(manager) to the forwarder, so that any update sent from the manager is able to reach the forwarder (fib). Any idea to address this?

Actions #7

Updated by Md Ashiqur Rahman over 3 years ago

  • Assignee deleted (Md Ashiqur Rahman)
Actions #8

Updated by Davide Pesavento almost 3 years ago

  • Priority changed from High to Normal
  • Target version deleted (22.02)
  • Start date deleted (10/13/2019)
Actions #9

Updated by Davide Pesavento 5 months ago

  • Tags changed from SelfLearning, unit-tests to unit-tests, self-learning
  • Category changed from Forwarding to Unit Tests
Actions

Also available in: Atom PDF