get loadable config data from object in a pythong config file. simplifies configuring...
[tests.git] / qaapi / 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          'rootkey': '/home/tmack/.ssh/plc-root',
12          'url': 'https://localhost.localdomain/',
13          'port': '443'
14         }
15         ]
16
17 sites = [
18         {'plc': 'TestPLC',
19          'name': 'TestSite1',
20          'login_base': 'ts',
21          'enabled': True,
22          'abbreviated_name': 'Test1',
23          'max_slices': 100,
24          'is_public': True,
25          'url': 'http://pl-test.planet-lab.org'
26         }
27         ]
28
29 nodes = [
30         {'plc': 'TestPLC',
31          'site': 'ts',
32          'hostname': 'vm1.paris.cs.princeton.edu',
33          'host': 'localhost',
34          'type': 'virtual',
35          'nodenetworks' : [{'type': 'ipv4',
36                            'method': 'static',
37                            'ip': '10.0.2.16',
38                            'gateway': '10.0.2.2',
39                            'dns1': '10.0.2.2',
40                            'network': '10.0.2.0',
41                            'netmask': '255.255.255.0',
42                            'broadcast': '10.0.2.255'
43                            }]
44         }
45         ]
46
47 slices = [
48         {'plc': 'TestPLC', 
49          'name': 'ts_slice1',
50          'instantiation': 'plc-instantiated',
51          'max_nodes': 1000,
52          'description': 'blank',
53          'url': 'http://test.org',
54          'nodes': ['vm1.paris.cs.princeton.edu']
55         }
56         ]
57
58 persons = [
59         {'plc': 'TestPLC',
60          'first_name': 'fname',
61          'last_name': 'lname',
62          'password': 'password',
63          'email': 'person@cs.princeton.edu',
64          'roles': ['user', 'pi'],
65          'sites': ['ts'], 
66          'slices': ['ts_slice1']
67         }
68         ]