3 # Sample myplc testing script that makes use of
6 from pprint import pprint
7 from qa.Config import Config
11 vserver_name = 'tmack_test'
12 vserver_path = '/vservers/%(vserver_name)s/'
14 node = config.TEST_NODE_HOSTNAME_1
17 #plc_install(sys_type, vserver_name, url)
18 #plc_config(sys_type, vserver_name)
19 #plc_start(sys_type, vserver_name)
21 # Add test site, node, person and slice data
22 # Adds slice to node and person to slice
25 # Boot test node and confirm boot state
27 #if get_boot_state(node) not in ['boot']:
28 # raise Exception, "%(node)s not fully booted" % locals()
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)
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)