Topology: Single host.

Steps:

  1. Start NFD.
  2. Start ndn-traffic-server to serve ndn:/test-caching, FreshnessPeriod=2800ms
  3. Invoke ndnpeek to send Interest ndn:/test-caching/A, MustBeFresh=yes. Fail if this Interest is unanswered.
  4. Pause 1000ms.
  5. Invoke ndnpeek to send Interest ndn:/test-caching/A, MustBeFresh=yes. Fail if this Interest is unanswered.
  6. Kill ndn-traffic-server. Check "total Interests received" equals 1.
  7. Pause 2000ms.
  8. Invoke ndnpeek to send Interest ndn:/test-caching/A, MustBeFresh=yes. Fail if this Interest is answered with Data.
  9. Invoke ndnpeek to send Interest ndn:/test-caching/A without MustBeFresh. Fail if this Interest is unanswered.