Fixing wrong license
[nepi.git] / test / resources / linux / ccn / ccnping.py
old mode 100644 (file)
new mode 100755 (executable)
index 2deef2d..37f2fdb
@@ -4,9 +4,8 @@
 #    Copyright (C) 2013 INRIA
 #
 #    This program is free software: you can redistribute it and/or modify
-#    it under the terms of the GNU General Public License as published by
-#    the Free Software Foundation, either version 3 of the License, or
-#    (at your option) any later version.
+#    it under the terms of the GNU General Public License version 2 as
+#    published by the Free Software Foundation;
 #
 #    This program is distributed in the hope that it will be useful,
 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -41,37 +40,37 @@ class LinuxCCNPingTestCase(unittest.TestCase):
 
         ec = ExperimentController(exp_id = "test-ccn-ping-count")
         
-        node1 = ec.register_resource("LinuxNode")
+        node1 = ec.register_resource("linux::Node")
         ec.set(node1, "hostname", host1)
         ec.set(node1, "username", user1)
-        ec.set(node1, "cleanHome", True)
+        ec.set(node1, "cleanExperiment", True)
         ec.set(node1, "cleanProcesses", True)
 
-        ccnd1 = ec.register_resource("LinuxCCND")
+        ccnd1 = ec.register_resource("linux::CCND")
         ec.register_connection(ccnd1, node1)
 
-        entry1 = ec.register_resource("LinuxFIBEntry")
+        entry1 = ec.register_resource("linux::FIBEntry")
         ec.set(entry1, "host", host2)
         ec.register_connection(entry1, ccnd1)
  
-        server = ec.register_resource("LinuxCCNPingServer")
+        server = ec.register_resource("linux::CCNPingServer")
         ec.set(server, "prefix", "ccnx:/test")
         ec.register_connection(server, ccnd1)
  
-        node2 = ec.register_resource("LinuxNode")
+        node2 = ec.register_resource("linux::Node")
         ec.set(node2, "hostname", host2)
         ec.set(node2, "username", user2)
-        ec.set(node2, "cleanHome", True)
+        ec.set(node2, "cleanExperiment", True)
         ec.set(node2, "cleanProcesses", True)
 
-        ccnd2 = ec.register_resource("LinuxCCND")
+        ccnd2 = ec.register_resource("linux::CCND")
         ec.register_connection(ccnd2, node2)
 
-        entry2 = ec.register_resource("LinuxFIBEntry")
+        entry2 = ec.register_resource("linux::FIBEntry")
         ec.set(entry2, "host", host1)
         ec.register_connection(entry2, ccnd2)
  
-        client = ec.register_resource("LinuxCCNPing")
+        client = ec.register_resource("linux::CCNPing")
         ec.set(client, "c", 15)
         ec.set(client, "prefix", "ccnx:/test")
         ec.register_connection(client, ccnd2)