...
The unit tests for peer NID discovery depend on lctl ping
not triggering discovery. To force discovery, use lctl discover
. Note that some of the tests require DLC configuration to include non-existing peer NIDs. These nids are marked with a *.
Tests with discovery enabled.
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Basic functionality 1-1: discovery of an MR peer via its primary.
| |||||||||||
Basic functionality 1-2: discovery of an MR peer via a secondary.
| |||||||||||
Basic functionality 1-3: discovery of an MR peer via a tertiary.
| |||||||||||
Compatibility 2-1: discovery of a non-MR peer via its primary. | Basic functionality 1-4: implicit discovery of an MR peer
| interface
| .
| .
| two different peers: P1, P2.
| non-
| one
| one NID
| |||
Compatibility 2-2Basic functionality 1-5: discovery of a non-MR peer via a secondary.an MR peer with > 16 interfaces. (This test exercises the code path that resizes the push buffers.)
| |||||||||||
Compatibility 2- | 31: discovery of a non-MR peer via | a tertiaryits primary.
| |||||||||
Compatibility 2-2: discovery of a non-MR peer via a secondary.
| |||||||||||
Compatibility 2-3: discovery of a non-MR peer via a tertiary.
| |||||||||||
Compatibility 2-4: implicit discovery of an MR peer
| |||||||||||
Interaction with DLC 3-1: DLC overrides Discovery of MR peer
| |||||||||||
Interaction with DLC 3-2: DLC overrides Discovery of non-MR peer
| |||||||||||
Interaction with DLC 3-3: DLC overrides Discovery of MR peer with primary conflict
| |||||||||||
Interaction with DLC 3-4: DLC overrides Discovery of non-MR peer with primary conflict
| |||||||||||
Interaction with DLC 3-5: "push MR bit" exception to DLC overrides Discovery
| |||||||||||
Interaction with DLC 3-6: "push MR bit" exception to DLC overrides Discovery
|
Tests with discovery disabled. Note that disabling discovery does not fully disable it. The MR capable node will continue to process pushes, and if there is a problem with a push it will ping the originator to obtain the information.
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|---|---|---|
Discovery disabled 4-1: discovery of an MR peer via its primary
| |||
Discovery disabled 4-2: discovery of an MR peer via a secondary
| |||
Discovery disabled 4-3: discovery of an MR peer via a tertiary.
| |||
Discovery disabled 4-4: implicit discovery of an MR peer
| |||
Discovery disabled 4-5: implicit discovery of an MR peer. (This test shows that if discovery is enabled on either node or peer, it happens on both.)
| |||
Discovery disabled 4-6: implicit discovery of an MR peer, > 16 interfaces. (This test shows that if discovery is enabled on either node or peer, it happens on both, including retries required because buffers need to be extended.)
| |||
Interaction Disabled with DLC 35-1: DLC overrides Discovery of MR peer
Error deleting NID P3 from peer P1: -1 | |||
Interaction Disabled with DLC 35-2: DLC overrides Discovery of non-MR peer
| |||
Interaction Disabled with DLC 35-3: DLC overrides Discovery of MR peer with primary conflict
| |||
Interaction Disabled with DLC 35-4: DLC overrides Discovery of non-MR peer with primary conflict
| |||
Interaction Disabled with DLC 35-5: "push MR bit" exception to DLC overrides Discovery
| |||
Interaction Disabled with DLC 3-6: "push MR bit" exception to DLC overrides Discovery
|
...
Debugging Requirements
Primary Requirement ID | Secondary Requirement ID | Unit Test ID | Unit Test Description |
---|---|---|---|
dbg-005 | dbg-010, dbg-015, dbg-020, dbg-025, dbg-030, dbg-035, dbg-080 | UT-0325 |
|
dbg-040 | dbg-080, dbg-095 | UT-0330 |
|
dbg-040 | dbg-080 | UT-0335 |
|
dbg-045 | dbg-080 | UT-0340 |
|
dbg-050 | dbg-080, dbg-100 | UT-0345 |
|
dbg-110 | UT-0350 |
| |
dbg-115 | UT-0355 |
| |
dbg-120 | UT-0360 |
|
...