File: test.py

package info (click to toggle)
fence-agents 4.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,736 kB
  • sloc: xml: 17,993; python: 17,007; ansic: 12,941; makefile: 431; sh: 224; perl: 135; lex: 106; yacc: 105
file content (21 lines) | stat: -rwxr-xr-x 575 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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()