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 |
Pau Espin Pedrol | afa2fc3 | 2020-05-06 17:29:50 +0200 | [diff] [blame] | 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. |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 10 | - test removing a Resources list from one with the same list in it |
| 11 | - test resources config and state dir: |
Pau Espin Pedrol | 6c6c0e8 | 2020-05-11 18:30:58 +0200 | [diff] [blame] | 12 | cnf -: DBG: Found main configuration file in [PATH]/selftest/resource_test/conf/paths.conf which is [PATH]/selftest/resource_test/conf/paths.conf |
| 13 | cnf -: DBG: MAIN CONFIG: |
| 14 | {'default_suites_conf_path': '[PATH]/selftest/resource_test/conf/default-suites.conf', |
| 15 | 'defaults_conf_path': '[PATH]/selftest/resource_test/conf/defaults.conf', |
| 16 | 'resource_conf_path': '[PATH]/selftest/resource_test/conf/resources.conf', |
Pau Espin Pedrol | 66ef945 | 2020-05-25 13:26:41 +0200 | [diff] [blame] | 17 | 'scenarios_dir': ['[PATH]/selftest/resource_test/conf/scenarios'], |
Pau Espin Pedrol | 6c6c0e8 | 2020-05-11 18:30:58 +0200 | [diff] [blame] | 18 | 'state_dir': '[PATH]/selftest/resource_test/conf/test_work/state_dir', |
Pau Espin Pedrol | 66ef945 | 2020-05-25 13:26:41 +0200 | [diff] [blame] | 19 | 'suites_dir': ['[PATH]/selftest/resource_test/conf/suite_test'], |
Pau Espin Pedrol | e972c9c | 2020-05-12 15:06:55 +0200 | [diff] [blame] | 20 | 'trial_dir': '[PATH]/selftest/resource_test/conf/trial'} |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 21 | *** all resources: |
| 22 | {'arfcn': [{'_hash': 'e620569450f8259b3f0212ec19c285dd07df063c', |
| 23 | 'arfcn': '512', |
| 24 | 'band': 'GSM-1800'}, |
| 25 | {'_hash': '022621e513c5a5bf33b77430a1e9c886be676fa1', |
| 26 | 'arfcn': '514', |
| 27 | 'band': 'GSM-1800'}, |
| 28 | {'_hash': '3199abf375a1dd899e554e9d63a552e06d7f38bf', |
| 29 | 'arfcn': '516', |
| 30 | 'band': 'GSM-1800'}, |
| 31 | {'_hash': '57aa7bd1da62495f2857ae6b859193dd592a0a02', |
| 32 | 'arfcn': '518', |
| 33 | 'band': 'GSM-1800'}, |
| 34 | {'_hash': '53dd2e2682b736f427abd2ce59a9a50ca8130678', |
| 35 | 'arfcn': '520', |
| 36 | 'band': 'GSM-1800'}, |
| 37 | {'_hash': '31687a5e6d5140a4b3877606ca5f18244f11d706', |
| 38 | 'arfcn': '540', |
| 39 | 'band': 'GSM-1900'}, |
| 40 | {'_hash': '1def43a5c88a83cdb21279eacab0679ea08ffaf3', |
| 41 | 'arfcn': '542', |
| 42 | 'band': 'GSM-1900'}, |
| 43 | {'_hash': '1d6e3b08a3861fd4d748f111295ec5a93ecd3d23', |
| 44 | 'arfcn': '544', |
| 45 | 'band': 'GSM-1900'}, |
| 46 | {'_hash': '8fb36927de15466fcdbee01f7f65704c312cb36c', |
| 47 | 'arfcn': '546', |
| 48 | 'band': 'GSM-1900'}, |
| 49 | {'_hash': 'dc9ce027a257da087f31a5bc1ee6b4abd2637369', |
| 50 | 'arfcn': '548', |
| 51 | 'band': 'GSM-1900'}], |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 52 | 'bts': [{'_hash': 'd2aa7c1124943de352351b650ca0c751784da6b6', |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 53 | 'addr': '10.42.42.114', |
| 54 | 'band': 'GSM-1800', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 55 | 'ciphers': ['a5_0', 'a5_1'], |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 56 | 'direct_pcu': 'True', |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 57 | 'ipa_unit_id': '1', |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 58 | 'label': 'sysmoBTS 1002', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 59 | 'type': 'osmo-bts-sysmo'}, |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 60 | {'_hash': '2158317d5e0055070e7174c2498dedf53a2957e9', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 61 | 'addr': '10.42.42.50', |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 62 | 'band': 'GSM-1800', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 63 | 'ciphers': ['a5_0', 'a5_1'], |
| 64 | 'ipa_unit_id': '6', |
| 65 | 'label': 'Ettus B200', |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 66 | 'osmo_trx': {'clock_reference': 'external', 'launch_trx': 'True'}, |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 67 | 'type': 'osmo-bts-trx'}, |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 68 | {'_hash': 'f964ba5fe7a37b97ec3e0c4ef21c9231a19de45d', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 69 | 'addr': '10.42.42.51', |
| 70 | 'band': 'GSM-1800', |
| 71 | 'ciphers': ['a5_0', 'a5_1'], |
| 72 | 'ipa_unit_id': '7', |
| 73 | 'label': 'sysmoCell 5000', |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 74 | 'osmo_trx': {'clock_reference': 'external', |
| 75 | 'launch_trx': 'False', |
| 76 | 'trx_ip': '10.42.42.112'}, |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 77 | 'type': 'osmo-bts-trx'}], |
| 78 | 'ip_address': [{'_hash': 'fd103b22c7cf2480d609150e06f4bbd92ac78d8c', |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 79 | 'addr': '10.42.42.2'}, |
| 80 | {'_hash': '1c614d6210c551d142aadca8f25e1534ebb2a70f', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 81 | 'addr': '10.42.42.3'}, |
| 82 | {'_hash': '862b529c701adf302477bc126a8032cfc2ec4753', |
| 83 | 'addr': '10.42.42.4'}, |
| 84 | {'_hash': '05feb6e1e24ca4235889eb28d0a8d5cedac6e5d1', |
| 85 | 'addr': '10.42.42.5'}, |
| 86 | {'_hash': 'e780ac7581ad29f8f46e637b61d0c38898c4c52c', |
| 87 | 'addr': '10.42.42.6'}], |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 88 | 'modem': [{'_hash': '0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0', |
| 89 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 90 | 'ciphers': ['a5_0', 'a5_1'], |
| 91 | 'imsi': '901700000009031', |
| 92 | 'ki': '80A37E6FDEA931EAC92FFA5F671EFEAD', |
| 93 | 'label': 'sierra_1', |
| 94 | 'path': '/sierra_1'}, |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 95 | {'_hash': '3a6e7747dfe7dfdf817bd3351031bd08051605c3', |
| 96 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 97 | 'ciphers': ['a5_0', 'a5_1'], |
| 98 | 'imsi': '901700000009029', |
| 99 | 'ki': '00969E283349D354A8239E877F2E0866', |
| 100 | 'label': 'sierra_2', |
| 101 | 'path': '/sierra_2'}, |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 102 | {'_hash': 'f6ba17db2ad13da5ba5c54b5385a774f5351bb5a', |
| 103 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 104 | 'ciphers': ['a5_0', 'a5_1'], |
| 105 | 'imsi': '901700000009030', |
| 106 | 'ki': 'BB70807226393CDBAC8DD3439FF54252', |
| 107 | 'label': 'gobi_0', |
| 108 | 'path': '/gobi_0'}, |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 109 | {'_hash': 'fbff2e4f06b727fc8a70da23e1d134f9cd763919', |
| 110 | 'auth_algo': 'comp128v1', |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 111 | 'ciphers': ['a5_0', 'a5_1'], |
| 112 | 'imsi': '901700000009032', |
| 113 | 'ki': '2F70DCA43C45ACB97E947FDD0C7CA30A', |
| 114 | 'label': 'gobi_3', |
| 115 | 'path': '/gobi_3'}]} |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 116 | *** end: all resources |
| 117 | |
| 118 | - request some resources |
Pau Espin Pedrol | 600c799 | 2020-11-09 21:17:51 +0100 | [diff] [blame] | 119 | --- testowner: Verifying 2 x arfcn (candidates: 10) |
| 120 | --- testowner: DBG: Picked - _hash: e620569450f8259b3f0212ec19c285dd07df063c |
| 121 | arfcn: '512' |
| 122 | band: GSM-1800 |
| 123 | - _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1 |
| 124 | arfcn: '514' |
| 125 | band: GSM-1800 |
| 126 | --- testowner: Verifying 2 x bts (candidates: 3) |
| 127 | --- testowner: DBG: Picked - _hash: d2aa7c1124943de352351b650ca0c751784da6b6 |
| 128 | addr: 10.42.42.114 |
| 129 | band: GSM-1800 |
| 130 | ciphers: |
| 131 | - a5_0 |
| 132 | - a5_1 |
| 133 | direct_pcu: 'True' |
| 134 | ipa_unit_id: '1' |
| 135 | label: sysmoBTS 1002 |
| 136 | type: osmo-bts-sysmo |
| 137 | - _hash: 2158317d5e0055070e7174c2498dedf53a2957e9 |
| 138 | addr: 10.42.42.50 |
| 139 | band: GSM-1800 |
| 140 | ciphers: |
| 141 | - a5_0 |
| 142 | - a5_1 |
| 143 | ipa_unit_id: '6' |
| 144 | label: Ettus B200 |
| 145 | osmo_trx: |
| 146 | clock_reference: external |
| 147 | launch_trx: 'True' |
| 148 | type: osmo-bts-trx |
| 149 | --- testowner: Verifying 1 x ip_address (candidates: 5) |
| 150 | --- testowner: DBG: Picked - _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c |
| 151 | addr: 10.42.42.2 |
| 152 | --- testowner: Verifying 2 x modem (candidates: 4) |
| 153 | --- testowner: DBG: Picked - _hash: 0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0 |
| 154 | auth_algo: comp128v1 |
| 155 | ciphers: |
| 156 | - a5_0 |
| 157 | - a5_1 |
| 158 | imsi: '901700000009031' |
| 159 | ki: 80A37E6FDEA931EAC92FFA5F671EFEAD |
| 160 | label: sierra_1 |
| 161 | path: /sierra_1 |
| 162 | - _hash: 3a6e7747dfe7dfdf817bd3351031bd08051605c3 |
| 163 | auth_algo: comp128v1 |
| 164 | ciphers: |
| 165 | - a5_0 |
| 166 | - a5_1 |
| 167 | imsi: '901700000009029' |
| 168 | ki: 00969E283349D354A8239E877F2E0866 |
| 169 | label: sierra_2 |
| 170 | path: /sierra_2 |
| 171 | --- testowner: DBG: FileWatch: scheduling watch for directory [PATH]/selftest/resource_test/conf/test_work/state_dir |
Neels Hofmeyr | cccbe59 | 2017-05-07 01:16:07 +0200 | [diff] [blame] | 172 | --- testowner: Reserving 2 x arfcn (candidates: 10) |
| 173 | --- testowner: DBG: Picked - _hash: e620569450f8259b3f0212ec19c285dd07df063c |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 174 | arfcn: '512' |
| 175 | band: GSM-1800 |
| 176 | - _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1 |
| 177 | arfcn: '514' |
| 178 | band: GSM-1800 |
Neels Hofmeyr | cccbe59 | 2017-05-07 01:16:07 +0200 | [diff] [blame] | 179 | --- testowner: Reserving 2 x bts (candidates: 3) |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 180 | --- testowner: DBG: Picked - _hash: d2aa7c1124943de352351b650ca0c751784da6b6 |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 181 | addr: 10.42.42.114 |
| 182 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 183 | ciphers: |
| 184 | - a5_0 |
| 185 | - a5_1 |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 186 | direct_pcu: 'True' |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 187 | ipa_unit_id: '1' |
| 188 | label: sysmoBTS 1002 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 189 | type: osmo-bts-sysmo |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 190 | - _hash: 2158317d5e0055070e7174c2498dedf53a2957e9 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 191 | addr: 10.42.42.50 |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 192 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 193 | ciphers: |
| 194 | - a5_0 |
| 195 | - a5_1 |
| 196 | ipa_unit_id: '6' |
| 197 | label: Ettus B200 |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 198 | osmo_trx: |
| 199 | clock_reference: external |
| 200 | launch_trx: 'True' |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 201 | type: osmo-bts-trx |
| 202 | --- testowner: Reserving 1 x ip_address (candidates: 5) |
| 203 | --- testowner: DBG: Picked - _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c |
| 204 | addr: 10.42.42.2 |
| 205 | --- testowner: Reserving 2 x modem (candidates: 4) |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 206 | --- testowner: DBG: Picked - _hash: 0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0 |
| 207 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 208 | ciphers: |
| 209 | - a5_0 |
| 210 | - a5_1 |
| 211 | imsi: '901700000009031' |
| 212 | ki: 80A37E6FDEA931EAC92FFA5F671EFEAD |
| 213 | label: sierra_1 |
| 214 | path: /sierra_1 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 215 | - _hash: 3a6e7747dfe7dfdf817bd3351031bd08051605c3 |
| 216 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 217 | ciphers: |
| 218 | - a5_0 |
| 219 | - a5_1 |
| 220 | imsi: '901700000009029' |
| 221 | ki: 00969E283349D354A8239E877F2E0866 |
| 222 | label: sierra_2 |
| 223 | path: /sierra_2 |
Pau Espin Pedrol | 600c799 | 2020-11-09 21:17:51 +0100 | [diff] [blame] | 224 | --- testowner: DBG: FileWatch: unscheduling watch <ObservedWatch: path=[PATH]/selftest/resource_test/conf/test_work/state_dir, is_recursive=False> |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 225 | ~~~ currently reserved: |
| 226 | arfcn: |
| 227 | - _hash: e620569450f8259b3f0212ec19c285dd07df063c |
| 228 | _reserved_by: testowner-123-1490837279 |
| 229 | arfcn: '512' |
| 230 | band: GSM-1800 |
| 231 | - _hash: 022621e513c5a5bf33b77430a1e9c886be676fa1 |
| 232 | _reserved_by: testowner-123-1490837279 |
| 233 | arfcn: '514' |
| 234 | band: GSM-1800 |
| 235 | bts: |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 236 | - _hash: d2aa7c1124943de352351b650ca0c751784da6b6 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 237 | _reserved_by: testowner-123-1490837279 |
| 238 | addr: 10.42.42.114 |
| 239 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 240 | ciphers: |
| 241 | - a5_0 |
| 242 | - a5_1 |
Pau Espin Pedrol | ce35d91 | 2017-11-23 11:01:24 +0100 | [diff] [blame] | 243 | direct_pcu: 'True' |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 244 | ipa_unit_id: '1' |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 245 | label: sysmoBTS 1002 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 246 | type: osmo-bts-sysmo |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 247 | - _hash: 2158317d5e0055070e7174c2498dedf53a2957e9 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 248 | _reserved_by: testowner-123-1490837279 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 249 | addr: 10.42.42.50 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 250 | band: GSM-1800 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 251 | ciphers: |
| 252 | - a5_0 |
| 253 | - a5_1 |
| 254 | ipa_unit_id: '6' |
| 255 | label: Ettus B200 |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 256 | osmo_trx: |
| 257 | clock_reference: external |
| 258 | launch_trx: 'True' |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 259 | type: osmo-bts-trx |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 260 | ip_address: |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 261 | - _hash: fd103b22c7cf2480d609150e06f4bbd92ac78d8c |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 262 | _reserved_by: testowner-123-1490837279 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 263 | addr: 10.42.42.2 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 264 | modem: |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 265 | - _hash: 0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 266 | _reserved_by: testowner-123-1490837279 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 267 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 268 | ciphers: |
| 269 | - a5_0 |
| 270 | - a5_1 |
| 271 | imsi: '901700000009031' |
| 272 | ki: 80A37E6FDEA931EAC92FFA5F671EFEAD |
| 273 | label: sierra_1 |
| 274 | path: /sierra_1 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 275 | - _hash: 3a6e7747dfe7dfdf817bd3351031bd08051605c3 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 276 | _reserved_by: testowner-123-1490837279 |
Neels Hofmeyr | c6cd68e | 2017-12-14 15:31:10 +0100 | [diff] [blame] | 277 | auth_algo: comp128v1 |
Pau Espin Pedrol | 438a308 | 2017-08-28 14:31:28 +0200 | [diff] [blame] | 278 | ciphers: |
| 279 | - a5_0 |
| 280 | - a5_1 |
| 281 | imsi: '901700000009029' |
| 282 | ki: 00969E283349D354A8239E877F2E0866 |
| 283 | label: sierra_2 |
| 284 | path: /sierra_2 |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 285 | |
| 286 | ~~~ end: currently reserved |
| 287 | |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 288 | ~~~ with modifiers: |
| 289 | resources(testowner)={'arfcn': [{'_hash': 'e620569450f8259b3f0212ec19c285dd07df063c', |
| 290 | '_reserved_by': 'testowner-123-1490837279', |
| 291 | 'arfcn': '512', |
| 292 | 'band': 'GSM-1800'}, |
| 293 | {'_hash': '022621e513c5a5bf33b77430a1e9c886be676fa1', |
| 294 | '_reserved_by': 'testowner-123-1490837279', |
| 295 | 'arfcn': '514', |
| 296 | 'band': 'GSM-1800'}], |
| 297 | 'bts': [{'_hash': 'd2aa7c1124943de352351b650ca0c751784da6b6', |
| 298 | '_reserved_by': 'testowner-123-1490837279', |
| 299 | 'addr': '10.42.42.114', |
| 300 | 'band': 'GSM-1800', |
| 301 | 'ciphers': ['a5_0', 'a5_1'], |
| 302 | 'direct_pcu': 'True', |
| 303 | 'ipa_unit_id': '1', |
| 304 | 'label': 'sysmoBTS 1002', |
| 305 | 'type': 'osmo-bts-sysmo'}, |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 306 | {'_hash': '2158317d5e0055070e7174c2498dedf53a2957e9', |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 307 | '_reserved_by': 'testowner-123-1490837279', |
| 308 | 'addr': '10.42.42.50', |
| 309 | 'band': 'GSM-1800', |
| 310 | 'ciphers': ['a5_0', 'a5_1'], |
| 311 | 'ipa_unit_id': '6', |
| 312 | 'label': 'Ettus B200', |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 313 | 'num_trx': 2, |
Pau Espin Pedrol | 0d45504 | 2018-08-27 17:07:41 +0200 | [diff] [blame] | 314 | 'osmo_trx': {'clock_reference': 'external', 'launch_trx': 'True'}, |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 315 | 'type': 'osmo-bts-trx'}], |
| 316 | 'ip_address': [{'_hash': 'fd103b22c7cf2480d609150e06f4bbd92ac78d8c', |
| 317 | '_reserved_by': 'testowner-123-1490837279', |
| 318 | 'addr': '10.42.42.2'}], |
| 319 | 'modem': [{'_hash': '0b538cb6ad799fbd7c2953fd3b4463a76c7cc9c0', |
| 320 | '_reserved_by': 'testowner-123-1490837279', |
| 321 | 'auth_algo': 'comp128v1', |
| 322 | 'ciphers': ['a5_0', 'a5_1'], |
| 323 | 'imsi': '901700000009031', |
| 324 | 'ki': '80A37E6FDEA931EAC92FFA5F671EFEAD', |
| 325 | 'label': 'sierra_1', |
| 326 | 'path': '/sierra_1'}, |
| 327 | {'_hash': '3a6e7747dfe7dfdf817bd3351031bd08051605c3', |
| 328 | '_reserved_by': 'testowner-123-1490837279', |
| 329 | 'auth_algo': 'comp128v1', |
| 330 | 'ciphers': ['a5_0', 'a5_1'], |
| 331 | 'imsi': '901700000009029', |
| 332 | 'ki': '00969E283349D354A8239E877F2E0866', |
| 333 | 'label': 'sierra_2', |
| 334 | 'path': '/sierra_2'}]} |
| 335 | ~~~ end: with modifiers: |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 336 | ~~~ currently reserved: |
| 337 | {} |
| 338 | |
| 339 | ~~~ end: currently reserved |
| 340 | |
Pau Espin Pedrol | 5847551 | 2017-09-14 15:33:15 +0200 | [diff] [blame] | 341 | - item_matches: |
| 342 | 1st subset matches correctly, pass |
| 343 | 2nd subset matches correctly, pass |
| 344 | 3rd subset should not match, pass |
| 345 | 3rd subset should not match, pass |
| 346 | 4th subset should not match, pass |
Pau Espin Pedrol | 600c799 | 2020-11-09 21:17:51 +0100 | [diff] [blame] | 347 | *** concurrent allocation: |
| 348 | --- testowner1: Verifying 2 x arfcn (candidates: 10) |
| 349 | --- testowner1: Verifying 2 x bts (candidates: 3) |
| 350 | --- testowner1: Verifying 1 x ip_address (candidates: 5) |
| 351 | --- testowner1: Verifying 2 x modem (candidates: 4) |
| 352 | --- testowner1: Reserving 2 x arfcn (candidates: 10) |
| 353 | --- testowner1: Reserving 2 x bts (candidates: 3) |
| 354 | --- testowner1: Reserving 1 x ip_address (candidates: 5) |
| 355 | --- testowner1: Reserving 2 x modem (candidates: 4) |
| 356 | - 2nd instance reserve() start |
| 357 | --- testowner2: Verifying 2 x arfcn (candidates: 10) |
| 358 | --- testowner2: Verifying 2 x bts (candidates: 3) |
| 359 | --- testowner2: Verifying 1 x ip_address (candidates: 5) |
| 360 | --- testowner2: Verifying 2 x modem (candidates: 4) |
| 361 | --- testowner2: Reserving 2 x arfcn (candidates: 8) |
| 362 | --- testowner2: Reserving 2 x bts (candidates: 1) |
| 363 | --- testowner2: Unable to reserve resources, too many currently reserved. Waiting until some are available again |
| 364 | - 1st instance free() |
| 365 | --- testowner2: Reserving 2 x arfcn (candidates: 10) |
| 366 | --- testowner2: Reserving 2 x bts (candidates: 3) |
| 367 | --- testowner2: Reserving 1 x ip_address (candidates: 5) |
| 368 | --- testowner2: Reserving 2 x modem (candidates: 4) |
| 369 | - 2nd instance reserve() done |
| 370 | *** end: concurrent allocation |