test_interest_aggregation: explicitly set strategy to best-route v1
refs #2621
Change-Id: I607ad445bd264aec1e281341cbb4532f057cfbf3
diff --git a/test_interest_aggregation/README.md b/test_interest_aggregation/README.md
index 2f3bfae..33f9551 100644
--- a/test_interest_aggregation/README.md
+++ b/test_interest_aggregation/README.md
@@ -10,12 +10,13 @@
This test case will run NFD, ndnpeek and ndn-traffic-server to check aggregation of interests by NFD. The following steps will be followed:
1. Start NFD.
-2. Start ndn-traffic-server to serve ndn:/test-agg, with -d 2000 flag to delay response for 2000ms.
-3. Start two instances of ndnpeek to request ndn:/test-agg/A. Wait until they terminate. Fail if either is unanswered.
-4. Stop ndn-traffic-server. Fail if total served Interest does not equal 1.
-5. Start ndn-traffic-server to serve ndn:/test-agg, with -d 2000 flag to delay response for 2000ms.
-6. Start ndnpeek to request ndn:/test-agg/B ChildSelector=leftmost, and another instance to request ndn:/test-agg/B ChildSelector=rightmost. Wait until they terminate. Fail if either is unanswered.
-7. Stop ndn-traffic-server. Fail if total served Interest does not equal 2.
-8. Start ndn-traffic-server to serve ndn:/test-agg, with -d 2000 flag to delay response for 2000ms.
-9. Start ndnpeek to request ndn:/test-agg/C InterestLifetime=6000ms, and another instance to request ndn:/test-agg/C InterestLifetime=8000ms. Wait until they terminate. Fail if either is unanswered.
-10. Stop ndn-traffic-server. Fail if total served Interest does not equal 1.
+2. Set NFD to use the best-route v1 strategy.
+3. Start ndn-traffic-server to serve ndn:/test-agg, with -d 2000 flag to delay response for 2000ms.
+4. Start two instances of ndnpeek to request ndn:/test-agg/A. Wait until they terminate. Fail if either is unanswered.
+5. Stop ndn-traffic-server. Fail if total served Interest does not equal 1.
+6. Start ndn-traffic-server to serve ndn:/test-agg, with -d 2000 flag to delay response for 2000ms.
+7. Start ndnpeek to request ndn:/test-agg/B ChildSelector=leftmost, and another instance to request ndn:/test-agg/B ChildSelector=rightmost. Wait until they terminate. Fail if either is unanswered.
+8. Stop ndn-traffic-server. Fail if total served Interest does not equal 2.
+9. Start ndn-traffic-server to serve ndn:/test-agg, with -d 2000 flag to delay response for 2000ms.
+10. Start ndnpeek to request ndn:/test-agg/C InterestLifetime=6000ms, and another instance to request ndn:/test-agg/C InterestLifetime=8000ms. Wait until they terminate. Fail if either is unanswered.
+11. Stop ndn-traffic-server. Fail if total served Interest does not equal 1.
diff --git a/test_interest_aggregation/test_interest_aggregation.py b/test_interest_aggregation/test_interest_aggregation.py
index 1906bfa..e93850b 100644
--- a/test_interest_aggregation/test_interest_aggregation.py
+++ b/test_interest_aggregation/test_interest_aggregation.py
@@ -70,6 +70,12 @@
self.startNfd()
time.sleep(1)
+ #Set NFD to use best-route v1 strategy
+ self.startProcess("nfdc",
+ ["nfdc", "set-strategy", "/", "ndn:/localhost/nfd/strategy/best-route/%FD%01"],
+ "-> Setting strategy to best-route v1")
+ time.sleep(1)
+
#Start ndn-traffic-server to serve ndn:/test-agg, with content delay set to 2000ms
serverConfigurationFile = os.path.abspath(
"test_interest_aggregation/test-traffic-server.conf")