blob: cdc3519d2b9552b01a018541dd5f4d2a8966055f [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
16cnf -: DBG: Found config file resources.conf as [PATH]/selftest/conf/resources.conf in ./conf which is [PATH]/selftest/conf
17cnf -: 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'}],
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020049 'bts': [{'_hash': '07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020050 'addr': '10.42.42.114',
51 'band': 'GSM-1800',
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020052 'ipa_unit_id': '1',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020053 'label': 'sysmoBTS 1002',
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020054 'type': 'sysmo'},
55 {'_hash': '76c8d2f459113cd6c99ed62d1a94bbe9a291ba94',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020056 'addr': '10.42.42.115',
57 'band': 'GSM-1800',
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020058 'ipa_unit_id': '5',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020059 'label': 'octBTS 3000',
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020060 'trx_list': [{'hw_addr': '00:0c:90:32:b5:8a'}],
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020061 'type': 'oct'},
62 {'_hash': '0b7fabd512b36aec43d7d496abd00af4e193b0f8',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020063 'addr': '10.42.42.190',
64 'band': 'GSM-1900',
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020065 'ipa_unit_id': '1902',
Neels Hofmeyr3531a192017-03-28 14:30:28 +020066 'label': 'nanoBTS 1900',
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +020067 'trx_list': [{'hw_addr': '00:02:95:00:41:b3'}],
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020068 'type': 'nanobts'}],
Neels Hofmeyr76d81032017-05-18 18:35:32 +020069 'ip_address': [{'_hash': 'cde1debf28f07f94f92c761b4b7c6bf35785ced4',
70 'addr': '10.42.42.1'},
71 {'_hash': 'fd103b22c7cf2480d609150e06f4bbd92ac78d8c',
72 'addr': '10.42.42.2'},
73 {'_hash': '1c614d6210c551d142aadca8f25e1534ebb2a70f',
74 'addr': '10.42.42.3'}],
Neels Hofmeyr3531a192017-03-28 14:30:28 +020075 'modem': [{'_hash': '19c69e45aa090fb511446bd00797690aa82ff52f',
76 'imsi': '901700000007801',
77 'ki': 'D620F48487B1B782DA55DF6717F08FF9',
78 'label': 'm7801',
79 'path': '/wavecom_0'},
80 {'_hash': 'e1a46516a1fb493b2617ab14fc1693a9a45ec254',
81 'imsi': '901700000007802',
82 'ki': '47FDB2D55CE6A10A85ABDAD034A5B7B3',
83 'label': 'm7802',
84 'path': '/wavecom_1'},
85 {'_hash': '4fe91500a309782bb0fd8ac6fc827834089f8b00',
86 'imsi': '901700000007803',
87 'ki': 'ABBED4C91417DF710F60675B6EE2C8D2',
88 'label': 'm7803',
89 'path': '/wavecom_2'},
90 {'_hash': 'c895badf0c2faaa4a997cd9f2313b5ebda7486e4',
91 'imsi': '901700000007804',
92 'ki': '8BA541179156F2BF0918CA3CFF9351B0',
93 'label': 'm7804',
94 'path': '/wavecom_3'},
95 {'_hash': '60f182abed05adb530e3d06d88cc47703b65d7d8',
96 'imsi': '901700000007805',
97 'ki': '82BEC24B5B50C9FAA69D17DEC0883A23',
98 'label': 'm7805',
99 'path': '/wavecom_4'},
100 {'_hash': 'd1f0fbf089a4bf32dd566af956d23b89e3d60821',
101 'imsi': '901700000007806',
102 'ki': 'DAF6BD6A188F7A4F09866030BF0F723D',
103 'label': 'm7806',
104 'path': '/wavecom_5'},
105 {'_hash': '2445e3b5949d15f4351c0db1d3f3f593f9d73aa5',
106 'imsi': '901700000007807',
107 'ki': 'AEB411CFE39681A6352A1EAE4DDC9DBA',
108 'label': 'm7807',
109 'path': '/wavecom_6'},
110 {'_hash': '80247388b2ca382382c4aec678102355b7922965',
111 'imsi': '901700000007808',
112 'ki': 'F5DEF8692B305D7A65C677CA9EEE09C4',
113 'label': 'm7808',
114 'path': '/wavecom_7'},
115 {'_hash': '5b9e4e117a8889430542d22a9693e7b999362856',
116 'imsi': '901700000007809',
117 'ki': 'A644F4503E812FD75329B1C8D625DA44',
118 'label': 'm7809',
119 'path': '/wavecom_8'},
120 {'_hash': '219a7abb057050eef3ce4b99c487f32bbaae9a41',
121 'imsi': '901700000007810',
122 'ki': 'EF663BDF3477DCD18D3D2293A2BAED67',
123 'label': 'm7810',
124 'path': '/wavecom_9'},
125 {'_hash': '75d45c2d975b893da34c7cae827c25a2039cecd2',
126 'imsi': '901700000007811',
127 'ki': 'E88F37F048A86A9BC4D652539228C039',
128 'label': 'm7811',
129 'path': '/wavecom_10'},
130 {'_hash': '1777362f556b249a5c1d6a83110704dbd037bc20',
131 'imsi': '901700000007812',
132 'ki': 'E8D940DD66FCF6F1CD2C0F8F8C45633D',
133 'label': 'm7812',
134 'path': '/wavecom_11'},
135 {'_hash': '21d7eb4b0c782e004821a9f7f778891c93956924',
136 'imsi': '901700000007813',
137 'ki': 'DBF534700C10141C49F699B0419107E3',
138 'label': 'm7813',
139 'path': '/wavecom_12'},
140 {'_hash': 'f53e4e79bdbc63eb2845de671007d4f733f28409',
141 'imsi': '901700000007814',
142 'ki': 'B36021DEB90C4EA607E408A92F3B024D',
143 'label': 'm7814',
144 'path': '/wavecom_13'},
145 {'_hash': 'df1abec7704ebc89b2c062a69bd299cf3663ed9e',
146 'imsi': '901700000007815',
147 'ki': '1E209F6F839F9195778C4F96BE281A24',
148 'label': 'm7815',
149 'path': '/wavecom_14'},
150 {'_hash': '11df1e4c7708157e5b89020c757763f58d6e610b',
151 'imsi': '901700000007816',
152 'ki': 'BF827D219E739DD189F6F59E60D6455C',
153 'label': 'm7816',
Neels Hofmeyr76d81032017-05-18 18:35:32 +0200154 'path': '/wavecom_15'}]}
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200155*** end: all resources
156
157- request some resources
Neels Hofmeyrcccbe592017-05-07 01:16:07 +0200158--- testowner: Reserving 2 x arfcn (candidates: 10)
159--- testowner: DBG: Picked - _hash: e620569450f8259b3f0212ec19c285dd07df063c
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200160 arfcn: '512'
161 band: GSM-1800
162- _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1
163 arfcn: '514'
164 band: GSM-1800
Neels Hofmeyrcccbe592017-05-07 01:16:07 +0200165--- testowner: Reserving 2 x bts (candidates: 3)
166--- testowner: DBG: Picked - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200167 addr: 10.42.42.114
168 band: GSM-1800
169 ipa_unit_id: '1'
170 label: sysmoBTS 1002
171 type: sysmo
172- _hash: 76c8d2f459113cd6c99ed62d1a94bbe9a291ba94
173 addr: 10.42.42.115
174 band: GSM-1800
175 ipa_unit_id: '5'
176 label: octBTS 3000
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +0200177 trx_list:
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200178 - hw_addr: 00:0c:90:32:b5:8a
179 type: oct
Neels Hofmeyr76d81032017-05-18 18:35:32 +0200180--- testowner: Reserving 1 x ip_address (candidates: 3)
181--- testowner: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
182 addr: 10.42.42.1
Neels Hofmeyrcccbe592017-05-07 01:16:07 +0200183--- testowner: Reserving 2 x modem (candidates: 16)
184--- testowner: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200185 imsi: '901700000007801'
186 ki: D620F48487B1B782DA55DF6717F08FF9
187 label: m7801
188 path: /wavecom_0
189- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
190 imsi: '901700000007802'
191 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
192 label: m7802
193 path: /wavecom_1
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200194~~~ currently reserved:
195arfcn:
196- _hash: e620569450f8259b3f0212ec19c285dd07df063c
197 _reserved_by: testowner-123-1490837279
198 arfcn: '512'
199 band: GSM-1800
200- _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1
201 _reserved_by: testowner-123-1490837279
202 arfcn: '514'
203 band: GSM-1800
204bts:
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200205- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200206 _reserved_by: testowner-123-1490837279
207 addr: 10.42.42.114
208 band: GSM-1800
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200209 ipa_unit_id: '1'
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200210 label: sysmoBTS 1002
211 type: sysmo
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200212- _hash: 76c8d2f459113cd6c99ed62d1a94bbe9a291ba94
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200213 _reserved_by: testowner-123-1490837279
214 addr: 10.42.42.115
215 band: GSM-1800
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200216 ipa_unit_id: '5'
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200217 label: octBTS 3000
Neels Hofmeyr2694a9d2017-04-27 19:48:09 +0200218 trx_list:
Neels Hofmeyr17c139e2017-04-12 02:42:02 +0200219 - hw_addr: 00:0c:90:32:b5:8a
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200220 type: oct
Neels Hofmeyr76d81032017-05-18 18:35:32 +0200221ip_address:
222- _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
223 _reserved_by: testowner-123-1490837279
224 addr: 10.42.42.1
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200225modem:
226- _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
227 _reserved_by: testowner-123-1490837279
228 imsi: '901700000007801'
229 ki: D620F48487B1B782DA55DF6717F08FF9
230 label: m7801
231 path: /wavecom_0
232- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
233 _reserved_by: testowner-123-1490837279
234 imsi: '901700000007802'
235 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
236 label: m7802
237 path: /wavecom_1
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200238
239~~~ end: currently reserved
240
241~~~ currently reserved:
242{}
243
244~~~ end: currently reserved
245