-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.py
175 lines (166 loc) · 4.6 KB
/
environment.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# WEB browser that will be used by Selenium library
BROWSER = 'Chrome'
BROWSER_DOWNLOAD_DIRECTORY = '/path/to/user/browser/downloads/'
# If the desired webdriver is placed inside 'morpheus/webdrivers/'
# (which is recommended) then it is possible to reference it this way:
WEBDRIVER_PATH = 'webdrivers/chromedriver'
# Timeout that will be used in 'Wait...' like RF Selenium keywords.
SELENIUM_WAIT_TIMEOUT_SECONDS = '10'
# Adjust these values according to your Testberry specific settings and environment.
TESTBERRY_1 = {
'is_active': False,
'management': {
'ipv4_address': '172.30.0.1'
},
'ethernet': {
'interface': 'eth1',
'mac_address': 'dc:a6:32:cb:4a:2b'
},
'wireless': {
'interface': 'wlan0',
'mac_address': 'dc:a6:32:cb:4a:2c'
}
}
TESTBERRY_2 = {
'is_active': False,
'management': {
'ipv4_address': '172.30.0.2'
},
'ethernet': {
'interface': 'eth1',
'mac_address': '00:e0:4c:53:44:58'
},
'wireless': {
'interface': 'wlan0',
'mac_address': 'dc:a6:32:cb:3a:e1'
}
}
# Adjust these values according to your DUT specific settings and environment.
# DUT generic settings are automatically updated during runtime with values
# from DUT's own profile that is located at 'morpheus/devices/<DUT_NAME>'.
AP1250ACMAX = {
'firmware': {
'version': '2.99.19',
},
'management': {
'ipv4_address': '192.168.0.10',
'http': {
'secure': False,
'port': '80'
},
'login': {
'username': 'admin',
'password': 'lockzeus',
'first_access_password': 'M0rpheus!'
}
},
'network': {
'lan': {
'mac_address': '58:10:8C:23:9B:33',
'ipv4': {
'address': '192.168.0.9',
'netmask': '255.255.255.0',
'gateway': '192.168.0.1'
},
'ipv6': {
'link_local': 'fe80::5a10:8cff:fe23:9b33/64',
'addresses': ['2804:14c:3f89:90fb:5a10:8cff:fe23:9b33/64'],
'gateway': 'fe80::2cb:51ff:fe5d:b25e'
}
},
'wan': {
'mac_address': '58:10:8C:23:9B:33',
'mtu': '1500',
'ipv4': {
'type_config': 'dhcp_client',
'address': '192.168.0.9',
'netmask': '255.255.255.0',
'gateway': '192.168.0.1',
},
'ipv6': {
'link_local': 'fe80::5a10:8cff:fe23:9b33/64',
'gateway': 'fe80::2cb:51ff:fe5d:b25e',
}
},
},
'ethernet': {
'interface_1': {
'link_status': 'Conectado',
'speed': '1000 Mb/s',
'duplex': 'Full'
},
'interface_2': {
'link_status': 'Desconectado',
'speed': '-',
'duplex': '-'
}
},
'wireless': {
'2ghz': {
'default_ssid': {
'name': 'AP1250ACMax_9b33',
'mac_address': '58:10:8C:23:9B:33'
}
},
'5ghz': {
'default_ssid': {
'name': 'AP1250ACMax_9b33',
'mac_address': '58:10:8C:23:9B:33'
}
}
}
}
DUT_ENV = AP1250ACMAX
AP360_CASA = {
'firmware': {
'version': '2.99.19',
},
'management': {
'ipv4_address': '192.168.0.10',
'http': {
'secure': False,
'port': '80'
},
'login': {
'username': 'admin',
'password': 'lockzeus',
'first_access_password': 'M0rpheus!'
}
},
'network': {
'lan': {
'mac_address': '80:8F:E8:C1:22:C1',
'ipv4': {
'address': '192.168.0.10',
'netmask': '255.255.255.0',
'gateway': '192.168.0.1'
},
'ipv6': {
'link_local': 'fe80::828f:e8ff:fec1:22c1/64',
'addresses': ['2804:14c:3f89:90fb:828f:e8ff:fec1:22c1/64'],
'gateway': 'fe80::2cb:51ff:fe5d:b25e'
}
}
},
'ethernet': {
'interface_1': {
'link_status': 'Conectado',
'speed': '100 Mb/s',
'duplex': 'Full'
},
'interface_2': {
'link_status': 'Desconectado',
'speed': '-',
'duplex': '-'
}
},
'wireless': {
'2ghz': {
'default_ssid': {
'name': 'AP360_22c1',
'mac_address': '80:8F:E8:C1:22:C1'
}
},
}
}
DUT_ENV = AP360_CASA