blob: 09c276a5a6c8ffae216491b09d99c42d7f47e3ef [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- expect solutions:
2[0, 1, 2]
3[0, 1, 2]
4[1, 0, 2]
5[1, 2, 0]
6- expect failure to solve:
7The requested resource requirements are not solvable [[0, 2], [2], [0, 2]]
8- test removing a Resources list from itself
9ok, caused exception: RuntimeError('Refusing to drop a list of resources from itself. This is probably a bug where a list of Resources() should have been copied but is passed as-is. use Resources.clear() instead.',)
10- test removing a Resources list from one with the same list in it
11- test resources config and state dir:
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +020012cnf -: DBG: Found config file paths.conf as [PATH]/selftest/conf/paths.conf in ./conf which is [PATH]/selftest/conf
13cnf -: DBG: [PATH]/selftest/conf/paths.conf: relative path ./test_work/state_dir is [PATH]/selftest/conf/test_work/state_dir
14cnf -: DBG: [PATH]/selftest/conf/paths.conf: relative path ./suite_test is [PATH]/selftest/conf/suite_test
15cnf -: DBG: Found path state_dir as [PATH]/selftest/conf/test_work/state_dir
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020016cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/conf/resources.conf in ./conf which is [PATH]/selftest/conf
17cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/conf/test_work/state_dir
Neels Hofmeyr3531a192017-03-28 14:30:28 +020018*** all resources:
19{'arfcn': [{'_hash': 'e620569450f8259b3f0212ec19c285dd07df063c',
20 'arfcn': '512',
21 'band': 'GSM-1800'},
22 {'_hash': '022621e513c5a5bf33b77430a1e9c886be676fa1',
23 'arfcn': '514',
24 'band': 'GSM-1800'},
25 {'_hash': '3199abf375a1dd899e554e9d63a552e06d7f38bf',
26 'arfcn': '516',
27 'band': 'GSM-1800'},
28 {'_hash': '57aa7bd1da62495f2857ae6b859193dd592a0a02',
29 'arfcn': '518',
30 'band': 'GSM-1800'},
31 {'_hash': '53dd2e2682b736f427abd2ce59a9a50ca8130678',
32 'arfcn': '520',
33 'band': 'GSM-1800'},
34 {'_hash': '31687a5e6d5140a4b3877606ca5f18244f11d706',
35 'arfcn': '540',
36 'band': 'GSM-1900'},
37 {'_hash': '1def43a5c88a83cdb21279eacab0679ea08ffaf3',
38 'arfcn': '542',
39 'band': 'GSM-1900'},
40 {'_hash': '1d6e3b08a3861fd4d748f111295ec5a93ecd3d23',
41 'arfcn': '544',
42 'band': 'GSM-1900'},
43 {'_hash': '8fb36927de15466fcdbee01f7f65704c312cb36c',
44 'arfcn': '546',
45 'band': 'GSM-1900'},
46 {'_hash': 'dc9ce027a257da087f31a5bc1ee6b4abd2637369',
47 'arfcn': '548',
48 'band': 'GSM-1900'}],
Pau Espin Pedrol438a3082017-08-28 14:31:28 +020049 'bts': [{'_hash': '377ac78d5404b826d40c84efd04b4a9fd4e62b7e',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020050 'addr': '10.42.42.114',
51 'band': 'GSM-1800',
Pau Espin Pedrol438a3082017-08-28 14:31:28 +020052 'ciphers': ['a5_0', 'a5_1'],
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020053 'ipa_unit_id': '1',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020054 'label': 'sysmoBTS 1002',
Pau Espin Pedrol438a3082017-08-28 14:31:28 +020055 'type': 'osmo-bts-sysmo'},
56 {'_hash': '6a9c9fbd364e1563a5b9f0826030a7888fd19575',
57 'addr': '10.42.42.50',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020058 'band': 'GSM-1800',
Pau Espin Pedrol438a3082017-08-28 14:31:28 +020059 'ciphers': ['a5_0', 'a5_1'],
60 'ipa_unit_id': '6',
61 'label': 'Ettus B200',
62 'launch_trx': 'True',
63 'type': 'osmo-bts-trx'},
64 {'_hash': 'e50fd38e3bfe8039ac13bc315bc84f46110b7443',
65 'addr': '10.42.42.51',
66 'band': 'GSM-1800',
67 'ciphers': ['a5_0', 'a5_1'],
68 'ipa_unit_id': '7',
69 'label': 'sysmoCell 5000',
70 'trx_remote_ip': '10.42.42.112',
71 'type': 'osmo-bts-trx'}],
72 'ip_address': [{'_hash': 'fd103b22c7cf2480d609150e06f4bbd92ac78d8c',
Neels Hofmeyr76d81032017-05-18 18:35:32 +020073 'addr': '10.42.42.2'},
74 {'_hash': '1c614d6210c551d142aadca8f25e1534ebb2a70f',
Pau Espin Pedrol438a3082017-08-28 14:31:28 +020075 'addr': '10.42.42.3'},
76 {'_hash': '862b529c701adf302477bc126a8032cfc2ec4753',
77 'addr': '10.42.42.4'},
78 {'_hash': '05feb6e1e24ca4235889eb28d0a8d5cedac6e5d1',
79 'addr': '10.42.42.5'},
80 {'_hash': 'e780ac7581ad29f8f46e637b61d0c38898c4c52c',
81 'addr': '10.42.42.6'}],
82 'modem': [{'_hash': 'f392ed391f9d39abb6ae01431b26b4f44079a447',
83 'auth_algo': 'xor',
84 'ciphers': ['a5_0', 'a5_1'],
85 'imsi': '901700000009031',
86 'ki': '80A37E6FDEA931EAC92FFA5F671EFEAD',
87 'label': 'sierra_1',
88 'path': '/sierra_1'},
89 {'_hash': '1b3cf2a04bde791a84fcc462c29f73391b1f7313',
90 'auth_algo': 'xor',
91 'ciphers': ['a5_0', 'a5_1'],
92 'imsi': '901700000009029',
93 'ki': '00969E283349D354A8239E877F2E0866',
94 'label': 'sierra_2',
95 'path': '/sierra_2'},
96 {'_hash': '83f7b4a07c355487d31db6f068146e48bb1ed118',
97 'auth_algo': 'xor',
98 'ciphers': ['a5_0', 'a5_1'],
99 'imsi': '901700000009030',
100 'ki': 'BB70807226393CDBAC8DD3439FF54252',
101 'label': 'gobi_0',
102 'path': '/gobi_0'},
103 {'_hash': 'a5f8f08a24df0eca067c5b51d55c3c4fd8721908',
104 'auth_algo': 'xor',
105 'ciphers': ['a5_0', 'a5_1'],
106 'imsi': '901700000009032',
107 'ki': '2F70DCA43C45ACB97E947FDD0C7CA30A',
108 'label': 'gobi_3',
109 'path': '/gobi_3'}]}
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200110*** end: all resources
111
112- request some resources
Neels Hofmeyrcccbe592017-05-07 01:16:07 +0200113--- testowner: Reserving 2 x arfcn (candidates: 10)
114--- testowner: DBG: Picked - _hash: e620569450f8259b3f0212ec19c285dd07df063c
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200115 arfcn: '512'
116 band: GSM-1800
117- _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1
118 arfcn: '514'
119 band: GSM-1800
Neels Hofmeyrcccbe592017-05-07 01:16:07 +0200120--- testowner: Reserving 2 x bts (candidates: 3)
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200121--- testowner: DBG: Picked - _hash: 377ac78d5404b826d40c84efd04b4a9fd4e62b7e
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200122 addr: 10.42.42.114
123 band: GSM-1800
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200124 ciphers:
125 - a5_0
126 - a5_1
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200127 ipa_unit_id: '1'
128 label: sysmoBTS 1002
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200129 type: osmo-bts-sysmo
130- _hash: 6a9c9fbd364e1563a5b9f0826030a7888fd19575
131 addr: 10.42.42.50
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200132 band: GSM-1800
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200133 ciphers:
134 - a5_0
135 - a5_1
136 ipa_unit_id: '6'
137 label: Ettus B200
138 launch_trx: 'True'
139 type: osmo-bts-trx
140--- testowner: Reserving 1 x ip_address (candidates: 5)
141--- testowner: DBG: Picked - _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c
142 addr: 10.42.42.2
143--- testowner: Reserving 2 x modem (candidates: 4)
144--- testowner: DBG: Picked - _hash: f392ed391f9d39abb6ae01431b26b4f44079a447
145 auth_algo: xor
146 ciphers:
147 - a5_0
148 - a5_1
149 imsi: '901700000009031'
150 ki: 80A37E6FDEA931EAC92FFA5F671EFEAD
151 label: sierra_1
152 path: /sierra_1
153- _hash: 1b3cf2a04bde791a84fcc462c29f73391b1f7313
154 auth_algo: xor
155 ciphers:
156 - a5_0
157 - a5_1
158 imsi: '901700000009029'
159 ki: 00969E283349D354A8239E877F2E0866
160 label: sierra_2
161 path: /sierra_2
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200162~~~ currently reserved:
163arfcn:
164- _hash: e620569450f8259b3f0212ec19c285dd07df063c
165 _reserved_by: testowner-123-1490837279
166 arfcn: '512'
167 band: GSM-1800
168- _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1
169 _reserved_by: testowner-123-1490837279
170 arfcn: '514'
171 band: GSM-1800
172bts:
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200173- _hash: 377ac78d5404b826d40c84efd04b4a9fd4e62b7e
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200174 _reserved_by: testowner-123-1490837279
175 addr: 10.42.42.114
176 band: GSM-1800
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200177 ciphers:
178 - a5_0
179 - a5_1
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200180 ipa_unit_id: '1'
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200181 label: sysmoBTS 1002
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200182 type: osmo-bts-sysmo
183- _hash: 6a9c9fbd364e1563a5b9f0826030a7888fd19575
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200184 _reserved_by: testowner-123-1490837279
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200185 addr: 10.42.42.50
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200186 band: GSM-1800
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200187 ciphers:
188 - a5_0
189 - a5_1
190 ipa_unit_id: '6'
191 label: Ettus B200
192 launch_trx: 'True'
193 type: osmo-bts-trx
Neels Hofmeyr76d81032017-05-18 18:35:32 +0200194ip_address:
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200195- _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c
Neels Hofmeyr76d81032017-05-18 18:35:32 +0200196 _reserved_by: testowner-123-1490837279
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200197 addr: 10.42.42.2
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200198modem:
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200199- _hash: f392ed391f9d39abb6ae01431b26b4f44079a447
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200200 _reserved_by: testowner-123-1490837279
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200201 auth_algo: xor
202 ciphers:
203 - a5_0
204 - a5_1
205 imsi: '901700000009031'
206 ki: 80A37E6FDEA931EAC92FFA5F671EFEAD
207 label: sierra_1
208 path: /sierra_1
209- _hash: 1b3cf2a04bde791a84fcc462c29f73391b1f7313
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200210 _reserved_by: testowner-123-1490837279
Pau Espin Pedrol438a3082017-08-28 14:31:28 +0200211 auth_algo: xor
212 ciphers:
213 - a5_0
214 - a5_1
215 imsi: '901700000009029'
216 ki: 00969E283349D354A8239E877F2E0866
217 label: sierra_2
218 path: /sierra_2
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200219
220~~~ end: currently reserved
221
222~~~ currently reserved:
223{}
224
225~~~ end: currently reserved
226
Pau Espin Pedrol58475512017-09-14 15:33:15 +0200227- item_matches:
2281st subset matches correctly, pass
2292nd subset matches correctly, pass
2303rd subset should not match, pass
2313rd subset should not match, pass
2324th subset should not match, pass