Test Case - fib_matching
Objective
Test NFD's FIB matching mechanism on a single host.
Description
This test case will run NFD, ndn-traffic-client, and ndn-traffic-server to test NFD's FIB matching mechanism.
Steps
- Start NFD.
- Start ndn-traffic-server to serve / with Content "Z" with FreshnessPeriod=10ms.
- Start ndn-traffic-server to serve /A with Content "A" with FreshnessPeriod=10ms.
- Start ndn-traffic-server to serve /A/B/C with Content "C" with FreshnessPeriod=10ms.
- Start ndn-traffic-server to serve /D/E with Content "E" with FreshnessPeriod=10ms.
- Invoke ndn-traffic-client to request /F with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
- Wait 100ms.
- Invoke ndn-traffic-client to request /A with MustBeFresh=true. Fail if unanswered or if received content is not "A".
- Wait 100ms.
- Invoke ndn-traffic-client to request /a with MustBeFresh=true. Fail if unanswered or if received content is not "Z".
- Wait 100ms.
- Invoke ndn-traffic-client to request /A/B with MustBeFresh=true. Fail if unanswered or if received content is not "A".
- Wait 100ms.
- Invoke ndn-traffic-client to request /A/B/G with MustBeFresh=true. Fail if unanswered or if received content is not "A".
- Wait 100ms.
- Invoke ndn-traffic-client to request /A/B/C with MustBeFresh=true. Fail if unanswered or if received content is not "C".
- Wait 100ms.
- Invoke ndn-traffic-client to request /A/B/C/P/Q/R/S/T/U/V/W/X/Y/Z with MustBeFresh=true. Fail if unanswered or if received content is not "C".