define PLC_MAIL_FROM_ADDRESS
[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': 'vm',
68          'model': 'qemu/minhw',
69          'boot_state': 'rins',
70          #'nodegroups': ['41'], 
71          'nodenetworks': [{'type': 'ipv4',
72                            'method': 'static',
73                            'ip': '10.0.2.17',
74                            'gateway': '10.0.2.2',
75                            'dns1': '10.0.2.3',
76                            'network': '10.0.2.0',
77                            'netmask': '255.255.255.0',
78                            'broadcast': '10.0.2.255',
79                            'mac': u'52:54:00:12:34:56'
80                            }]                                   
81         }
82         ]
83
84 slices = [
85         {'plcs': ['TestPLC','ParisPLC'],   
86          'name': 'ts_slice1',
87          'instantiation': 'plc-instantiated',
88          'max_nodes': 1000,
89          'description': 'blank',
90          'url': 'http://test.org',
91          'nodes': ['vm1.paris.cs.princeton.edu', 'vm41.test.org'],
92          'persons': ['person@cs.princeton.edu'] 
93         }
94         ]
95
96 persons = [
97         {'plc': ['TestPLC', 'ParisPLC'],
98          'first_name': 'fname',
99          'last_name': 'lname',
100          'password': 'password',
101          'email': 'person@cs.princeton.edu',
102          'roles': ['user', 'pi'],
103          'sites': ['ts'], 
104          'slices': ['ts_slice1']
105         }
106         ]