nodedistro targets also set pldistro
Thierry Parmentelat [Wed, 24 Jun 2015 14:42:11 +0000 (16:42 +0200)]
system/TestApiserver.py
system/TestNode.py

index 502f2dc..91f26b1 100644 (file)
@@ -10,6 +10,7 @@ server_methods = [ ('GetNodes', []),
                    ('AddNode', True),
                    ('SetNodePlainBootstrapfs', True),
                    ('SetNodeFcdistro', True),
+                   ('SetNodePldistro', True),
                    ('DeleteNode' , True),
                    ('UpdateNode' , True),
                    ('AddInterface' , True),
index f3f5d21..8f8954c 100644 (file)
@@ -221,19 +221,21 @@ class TestNode:
         return True
     
     def nodedistro_f14(self):
-        return self.nodedistro_set('f14')
+        return self.nodedistro_set('f14', 'onelab')
     def nodedistro_f18(self):
-        return self.nodedistro_set('f18')
+        return self.nodedistro_set('f18', 'lxc')
     def nodedistro_f20(self):
-        return self.nodedistro_set('f20')
+        return self.nodedistro_set('f20', 'lxc')
     def nodedistro_f21(self):
-        return self.nodedistro_set('f21')
+        return self.nodedistro_set('f21', 'lxc')
     def nodedistro_f22(self):
-        return self.nodedistro_set('f22')
-    def nodedistro_set(self, distro):
+        return self.nodedistro_set('f22', 'lxc')
+    def nodedistro_set(self, fcdistro, pldistro):
         "set the fcdistro tag to distro, passed in arg"
         self.test_plc.apiserver.SetNodeFcdistro(self.test_plc.auth_root(),
-                                                self.name(), distro)
+                                                self.name(), fcdistro)
+        self.test_plc.apiserver.SetNodePldistro(self.test_plc.auth_root(),
+                                                self.name(), pldistro)
         return True
     def nodeflavour_show(self):
         "display the fcdistro tag - or flavour actually - of node"