Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 1 | - expect solutions: |
| 2 | [0, 1, 2] |
| 3 | [0, 1, 2] |
| 4 | [1, 0, 2] |
| 5 | [1, 2, 0] |
| 6 | - expect failure to solve: |
| 7 | The requested resource requirements are not solvable [[0, 2], [2], [0, 2]] |
| 8 | - test removing a Resources list from itself |
| 9 | ok, 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 Hofmeyr | ef9ed2d | 2017-05-04 16:39:29 +0200 | [diff] [blame] | 12 | cnf -: DBG: Found config file paths.conf as [PATH]/selftest/conf/paths.conf in ./conf which is [PATH]/selftest/conf |
| 13 | cnf -: DBG: [PATH]/selftest/conf/paths.conf: relative path ./test_work/state_dir is [PATH]/selftest/conf/test_work/state_dir |
| 14 | cnf -: DBG: [PATH]/selftest/conf/paths.conf: relative path ./suite_test is [PATH]/selftest/conf/suite_test |
| 15 | cnf -: DBG: Found path state_dir as [PATH]/selftest/conf/test_work/state_dir |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 16 | cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/conf/resources.conf in ./conf which is [PATH]/selftest/conf |
| 17 | cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/conf/test_work/state_dir |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 18 | *** 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 Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 49 | 'bts': [{'_hash': 'd2aa7c1124943de352351b650ca0c751784da6b6', |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 50 | 'addr': '10.42.42.114', |
| 51 | 'band': 'GSM-1800', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 52 | 'ciphers': ['a5_0', 'a5_1'], |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 53 | 'direct_pcu': 'True', |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 54 | 'ipa_unit_id': '1', |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 55 | 'label': 'sysmoBTS 1002', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 56 | 'type': 'osmo-bts-sysmo'}, |
| 57 | {'_hash': '6a9c9fbd364e1563a5b9f0826030a7888fd19575', |
| 58 | 'addr': '10.42.42.50', |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 59 | 'band': 'GSM-1800', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 60 | 'ciphers': ['a5_0', 'a5_1'], |
| 61 | 'ipa_unit_id': '6', |
| 62 | 'label': 'Ettus B200', |
| 63 | 'launch_trx': 'True', |
| 64 | 'type': 'osmo-bts-trx'}, |
| 65 | {'_hash': 'e50fd38e3bfe8039ac13bc315bc84f46110b7443', |
| 66 | 'addr': '10.42.42.51', |
| 67 | 'band': 'GSM-1800', |
| 68 | 'ciphers': ['a5_0', 'a5_1'], |
| 69 | 'ipa_unit_id': '7', |
| 70 | 'label': 'sysmoCell 5000', |
| 71 | 'trx_remote_ip': '10.42.42.112', |
| 72 | 'type': 'osmo-bts-trx'}], |
| 73 | 'ip_address': [{'_hash': 'fd103b22c7cf2480d609150e06f4bbd92ac78d8c', |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 74 | 'addr': '10.42.42.2'}, |
| 75 | {'_hash': '1c614d6210c551d142aadca8f25e1534ebb2a70f', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 76 | 'addr': '10.42.42.3'}, |
| 77 | {'_hash': '862b529c701adf302477bc126a8032cfc2ec4753', |
| 78 | 'addr': '10.42.42.4'}, |
| 79 | {'_hash': '05feb6e1e24ca4235889eb28d0a8d5cedac6e5d1', |
| 80 | 'addr': '10.42.42.5'}, |
| 81 | {'_hash': 'e780ac7581ad29f8f46e637b61d0c38898c4c52c', |
| 82 | 'addr': '10.42.42.6'}], |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 83 | 'modem': [{'_hash': '0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0', |
| 84 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 85 | 'ciphers': ['a5_0', 'a5_1'], |
| 86 | 'imsi': '901700000009031', |
| 87 | 'ki': '80A37E6FDEA931EAC92FFA5F671EFEAD', |
| 88 | 'label': 'sierra_1', |
| 89 | 'path': '/sierra_1'}, |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 90 | {'_hash': '3a6e7747dfe7dfdf817bd3351031bd08051605c3', |
| 91 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 92 | 'ciphers': ['a5_0', 'a5_1'], |
| 93 | 'imsi': '901700000009029', |
| 94 | 'ki': '00969E283349D354A8239E877F2E0866', |
| 95 | 'label': 'sierra_2', |
| 96 | 'path': '/sierra_2'}, |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 97 | {'_hash': 'f6ba17db2ad13da5ba5c54b5385a774f5351bb5a', |
| 98 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 99 | 'ciphers': ['a5_0', 'a5_1'], |
| 100 | 'imsi': '901700000009030', |
| 101 | 'ki': 'BB70807226393CDBAC8DD3439FF54252', |
| 102 | 'label': 'gobi_0', |
| 103 | 'path': '/gobi_0'}, |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 104 | {'_hash': 'fbff2e4f06b727fc8a70da23e1d134f9cd763919', |
| 105 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 106 | 'ciphers': ['a5_0', 'a5_1'], |
| 107 | 'imsi': '901700000009032', |
| 108 | 'ki': '2F70DCA43C45ACB97E947FDD0C7CA30A', |
| 109 | 'label': 'gobi_3', |
| 110 | 'path': '/gobi_3'}]} |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 111 | *** end: all resources |
| 112 | |
| 113 | - request some resources |
Neels Hofmeyr | cccbe59 | 2017-05-07 01:16:07 +0200 | [diff] [blame] | 114 | --- testowner: Reserving 2 x arfcn (candidates: 10) |
| 115 | --- testowner: DBG: Picked - _hash: e620569450f8259b3f0212ec19c285dd07df063c |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 116 | arfcn: '512' |
| 117 | band: GSM-1800 |
| 118 | - _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1 |
| 119 | arfcn: '514' |
| 120 | band: GSM-1800 |
Neels Hofmeyr | cccbe59 | 2017-05-07 01:16:07 +0200 | [diff] [blame] | 121 | --- testowner: Reserving 2 x bts (candidates: 3) |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 122 | --- testowner: DBG: Picked - _hash: d2aa7c1124943de352351b650ca0c751784da6b6 |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 123 | addr: 10.42.42.114 |
| 124 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 125 | ciphers: |
| 126 | - a5_0 |
| 127 | - a5_1 |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 128 | direct_pcu: 'True' |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 129 | ipa_unit_id: '1' |
| 130 | label: sysmoBTS 1002 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 131 | type: osmo-bts-sysmo |
| 132 | - _hash: 6a9c9fbd364e1563a5b9f0826030a7888fd19575 |
| 133 | addr: 10.42.42.50 |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 134 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 135 | ciphers: |
| 136 | - a5_0 |
| 137 | - a5_1 |
| 138 | ipa_unit_id: '6' |
| 139 | label: Ettus B200 |
| 140 | launch_trx: 'True' |
| 141 | type: osmo-bts-trx |
| 142 | --- testowner: Reserving 1 x ip_address (candidates: 5) |
| 143 | --- testowner: DBG: Picked - _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c |
| 144 | addr: 10.42.42.2 |
| 145 | --- testowner: Reserving 2 x modem (candidates: 4) |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 146 | --- testowner: DBG: Picked - _hash: 0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0 |
| 147 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 148 | ciphers: |
| 149 | - a5_0 |
| 150 | - a5_1 |
| 151 | imsi: '901700000009031' |
| 152 | ki: 80A37E6FDEA931EAC92FFA5F671EFEAD |
| 153 | label: sierra_1 |
| 154 | path: /sierra_1 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 155 | - _hash: 3a6e7747dfe7dfdf817bd3351031bd08051605c3 |
| 156 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 157 | ciphers: |
| 158 | - a5_0 |
| 159 | - a5_1 |
| 160 | imsi: '901700000009029' |
| 161 | ki: 00969E283349D354A8239E877F2E0866 |
| 162 | label: sierra_2 |
| 163 | path: /sierra_2 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 164 | ~~~ currently reserved: |
| 165 | arfcn: |
| 166 | - _hash: e620569450f8259b3f0212ec19c285dd07df063c |
| 167 | _reserved_by: testowner-123-1490837279 |
| 168 | arfcn: '512' |
| 169 | band: GSM-1800 |
| 170 | - _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1 |
| 171 | _reserved_by: testowner-123-1490837279 |
| 172 | arfcn: '514' |
| 173 | band: GSM-1800 |
| 174 | bts: |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 175 | - _hash: d2aa7c1124943de352351b650ca0c751784da6b6 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 176 | _reserved_by: testowner-123-1490837279 |
| 177 | addr: 10.42.42.114 |
| 178 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 179 | ciphers: |
| 180 | - a5_0 |
| 181 | - a5_1 |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 182 | direct_pcu: 'True' |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 183 | ipa_unit_id: '1' |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 184 | label: sysmoBTS 1002 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 185 | type: osmo-bts-sysmo |
| 186 | - _hash: 6a9c9fbd364e1563a5b9f0826030a7888fd19575 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 187 | _reserved_by: testowner-123-1490837279 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 188 | addr: 10.42.42.50 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 189 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 190 | ciphers: |
| 191 | - a5_0 |
| 192 | - a5_1 |
| 193 | ipa_unit_id: '6' |
| 194 | label: Ettus B200 |
| 195 | launch_trx: 'True' |
| 196 | type: osmo-bts-trx |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 197 | ip_address: |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 198 | - _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 199 | _reserved_by: testowner-123-1490837279 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 200 | addr: 10.42.42.2 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 201 | modem: |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 202 | - _hash: 0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 203 | _reserved_by: testowner-123-1490837279 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 204 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 205 | ciphers: |
| 206 | - a5_0 |
| 207 | - a5_1 |
| 208 | imsi: '901700000009031' |
| 209 | ki: 80A37E6FDEA931EAC92FFA5F671EFEAD |
| 210 | label: sierra_1 |
| 211 | path: /sierra_1 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 212 | - _hash: 3a6e7747dfe7dfdf817bd3351031bd08051605c3 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 213 | _reserved_by: testowner-123-1490837279 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 214 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 215 | ciphers: |
| 216 | - a5_0 |
| 217 | - a5_1 |
| 218 | imsi: '901700000009029' |
| 219 | ki: 00969E283349D354A8239E877F2E0866 |
| 220 | label: sierra_2 |
| 221 | path: /sierra_2 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 222 | |
| 223 | ~~~ end: currently reserved |
| 224 | |
| 225 | ~~~ currently reserved: |
| 226 | {} |
| 227 | |
| 228 | ~~~ end: currently reserved |
| 229 | |
Pau Espin Pedrol | 5847551 | 2017-09-14 15:33:15 +0200 | [diff] [blame] | 230 | - item_matches: |
| 231 | 1st subset matches correctly, pass |
| 232 | 2nd subset matches correctly, pass |
| 233 | 3rd subset should not match, pass |
| 234 | 3rd subset should not match, pass |
| 235 | 4th subset should not match, pass |