Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F2022003
test.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
575 B
Referenced Files
None
Subscribers
None
test.py
View Options
#!/usr/bin/python
from
fence_testing
import
test_action
def
main
():
## @todo: utility1 - run single 'agent' 'action' 'method'
## @todo: utility2 - run complex tests (using utility1?) -> file with test suites
AGENTDEF
=
"devices.d/true.cfg"
DUMMYDEF
=
"devices.d/dummy.cfg"
ACT_STATUS
=
"actions.d/status.cfg"
ACT_ONOFF
=
"actions.d/power-on-off.cfg"
# test_action(AGENTDEF, ACTIONDEF, "stdin")
# test_action(AGENTDEF, ACTIONDEF, "getopt")
test_action
(
DUMMYDEF
,
ACT_STATUS
,
"getopt"
)
test_action
(
DUMMYDEF
,
ACT_ONOFF
,
"getopt"
)
if
__name__
==
"__main__"
:
main
()
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Mon, Dec 23, 10:03 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020322
Default Alt Text
test.py (575 B)
Attached To
Mode
rF Fence Agents
Attached
Detach File
Event Timeline
Log In to Comment