use command full path
[tests.git] / qaapi / qa / qa_config.py
1 #!/usr/bin/python
2
3 sites = []
4 persons = []
5 slices = []
6
7 plcs = [
8         {'name': 'TestPLC',
9          'host': 'localhost',
10          'ip': '127.0.0.1',
11          'url': 'https://localhost.localdomain/',
12          'port': '443'
13         },
14         {'name': 'ParisPLC',
15          'host': 'paris.cs.princeton.edu',
16          'ip': '128.112.95.151',
17          'url': 'https://paris.cs.princeton.edu/',
18          'port': '443',
19          'chroot': '/plc/root/'
20         }
21         ]
22
23 sites = [
24         {'plcs': ['TestPLC', 'ParisPLC'],
25          'name': 'TestSite1',
26          'login_base': 'ts',
27          'enabled': True,
28          'abbreviated_name': 'Test1',
29          'max_slices': 100,
30          'is_public': True,
31          'url': 'http://pl-test.planet-lab.org'
32         }
33         ]
34
35 nodegroups = [
36         {'plcs': ['TestPLC', 'ParisPLC'],
37          'name': '41',   
38          'nodes': ['vm41.test.org'],
39         }
40         ]
41          
42 nodes = [
43         {'plcs': ['TestPLC', 'ParisPLC'],       
44          'site': 'ts',
45          'hostname': 'vm1.paris.cs.princeton.edu',
46          'host': 'localhost',
47          'redir_ssh_port': '51022',
48          'type': 'vm',
49          'model' : 'qemu/minhw',
50          'boot_state': 'rins', 
51          'nodenetworks' : [{'type': 'ipv4',
52                            'method': 'static',
53                            'ip': '10.0.2.16',
54                            'gateway': '10.0.2.2',
55                            'dns1': '10.0.2.3',
56                            'network': '10.0.2.0',
57                            'netmask': '255.255.255.0',
58                            'broadcast': '10.0.2.255',
59                            'mac': u'52:54:00:12:34:56'
60                            }]
61         },
62         {'plcs': ['TestPLC', 'ParisPLC'],
63          'site': 'ts',
64          'hostname': 'vm41.test.org',
65          'host': 'localhost',
66          'redir_ssh_port': '51122',
67          'type': 'qemu/minhw',
68          'boot_state': 'rins',
69          'nodegroups': ['41'],  
70          'nodenetworks': [{'type': 'ipv4',
71                            'method': 'static',
72                            'ip': '10.0.2.17',
73                            'gateway': '10.0.2.2',
74                            'dns1': '10.0.2.3',
75                            'network': '10.0.2.0',
76                            'netmask': '255.255.255.0',
77                            'broadcast': '10.0.2.255',
78                            'mac': u'52:54:00:12:34:56'
79                            }]                                   
80         }
81         ]
82
83 slices = [
84         {'plcs': ['TestPLC','ParisPLC'],   
85          'name': 'ts_slice1',
86          'instantiation': 'plc-instantiated',
87          'max_nodes': 1000,
88          'description': 'blank',
89          'url': 'http://test.org',
90          'nodes': ['vm1.paris.cs.princeton.edu', 'vm41.test.org']
91         }
92         ]
93
94 persons = [
95         {'plc': ['TestPLC', 'ParisPLC'],
96          'first_name': 'fname',
97          'last_name': 'lname',
98          'password': 'password',
99          'email': 'person@cs.princeton.edu',
100          'roles': ['user', 'pi'],
101          'sites': ['ts'], 
102          'slices': ['ts_slice1']
103         }
104         ]