define PLC_MAIL_FROM_ADDRESS
[tests.git] / qaapi / selftest.py
1 #!/usr/bin/env ./qash
2 #
3 # Sample myplc testing script that makes use of 
4 # qaapi modules. 
5
6 from pprint import pprint
7 from qa.Config import Config
8
9 config = Config()
10 sys_type = 'vserver'
11 vserver_name = 'tmack_test'
12 vserver_path = '/vservers/%(vserver_name)s/'
13 url = None
14 node = config.TEST_NODE_HOSTNAME_1
15
16
17 #plc_install(sys_type, vserver_name, url)
18 #plc_config(sys_type, vserver_name)
19 #plc_start(sys_type, vserver_name)
20
21 # Add test site, node, person and slice data
22 # Adds slice to node and person to slice 
23 #add_test_data()
24
25 # Boot test node and confirm boot state
26 #boot_node(node)
27 #if get_boot_state(node) not in ['boot']:
28 #    raise Exception, "%(node)s not fully booted" % locals()
29
30 # Restart node manager on the node
31 #priv_key_path = "%(vserver_path)/etc/planetlab/root_ssh_key.rsa" % locals() 
32 #restart_nm = 'service nm restart'      
33 #remote_call(priv_key_path, node, restart_nm)
34
35 # Try to access the test  slice on the test node
36 #email = config.TEST_PERSON_EMAIL
37 #slice = config.TEST_SLICE_NAME
38 #access_slice(email, slice, node)
39