git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nodestate-upgrade to set node in boot_state 'upgrade'
[tests.git]
/
system
/
TestNode.py
diff --git
a/system/TestNode.py
b/system/TestNode.py
index
7461929
..
3af821e
100644
(file)
--- a/
system/TestNode.py
+++ b/
system/TestNode.py
@@
-193,6
+193,12
@@
class TestNode:
self.name(),{'boot_state':'reinstall'})
return True
self.name(),{'boot_state':'reinstall'})
return True
+ def nodestate_upgrade(self):
+ "all nodes: mark PLCAPI boot_state as upgrade"
+ self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),
+ self.name(),{'boot_state':'upgrade'})
+ return True
+
def nodestate_safeboot(self):
"all nodes: mark PLCAPI boot_state as safeboot"
self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),
def nodestate_safeboot(self):
"all nodes: mark PLCAPI boot_state as safeboot"
self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),