Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 1 | - non-existing suite dir |
Neels Hofmeyr | ef9ed2d | 2017-05-04 16:39:29 +0200 | [diff] [blame] | 2 | cnf -: DBG: Found config file paths.conf as [PATH]/selftest/suite_test/paths.conf in ./suite_test which is [PATH]/selftest/suite_test |
| 3 | cnf -: DBG: [PATH]/selftest/suite_test/paths.conf: relative path ./test_work/state_dir is [PATH]/selftest/suite_test/test_work/state_dir |
| 4 | cnf -: DBG: [PATH]/selftest/suite_test/paths.conf: relative path . is [PATH]/selftest/suite_test |
| 5 | cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test |
| 6 | --- -: ERR: RuntimeError: Suite not found: 'does_not_exist' in [PATH]/selftest/suite_test |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 7 | - no suite.conf |
Neels Hofmeyr | ef9ed2d | 2017-05-04 16:39:29 +0200 | [diff] [blame] | 8 | cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test |
Neels Hofmeyr | 31e8320 | 2017-06-06 19:44:32 +0200 | [diff] [blame] | 9 | cnf empty_dir: DBG: reading suite.conf |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 10 | cnf [PATH]/selftest/suite_test/empty_dir/suite.conf: ERR: FileNotFoundError: [Errno 2] No such file or directory: '[PATH]/selftest/suite_test/empty_dir/suite.conf' [empty_dir↪[PATH]/selftest/suite_test/empty_dir/suite.conf] |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 11 | - valid suite dir |
Neels Hofmeyr | ef9ed2d | 2017-05-04 16:39:29 +0200 | [diff] [blame] | 12 | cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test |
Neels Hofmeyr | 31e8320 | 2017-06-06 19:44:32 +0200 | [diff] [blame] | 13 | cnf test_suite: DBG: reading suite.conf |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 14 | defaults: |
| 15 | timeout: 60s |
| 16 | resources: |
| 17 | bts: |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 18 | - label: sysmoCell 5000 |
| 19 | times: '2' |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 20 | - times: '1' |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 21 | type: sysmo |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 22 | ip_address: |
| 23 | - times: '1' |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 24 | modem: |
| 25 | - times: '2' |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 26 | |
| 27 | - run hello world test |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 28 | cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test |
| 29 | cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 30 | |
| 31 | --------------------------------------------------------------------- |
| 32 | trial test_suite |
| 33 | --------------------------------------------------------------------- |
Neels Hofmeyr | 7e2e8f1 | 2017-05-14 03:37:13 +0200 | [diff] [blame] | 34 | tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... |
Neels Hofmeyr | 31e8320 | 2017-06-06 19:44:32 +0200 | [diff] [blame] | 35 | tst test_suite: DBG: {combining='resources'} |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 36 | tst {combining_scenarios='resources'}: DBG: {definition_conf={bts=[{'label': 'sysmoCell 5000'}, {'label': 'sysmoCell 5000'}, {'type': 'sysmo'}], ip_address=[{}], modem=[{}, {}]}} [test_suite↪{combining_scenarios='resources'}] |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 37 | tst test_suite: DBG: {combining='modifiers'} |
| 38 | tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 39 | tst test_suite: Reserving 3 x bts (candidates: 6) |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 40 | tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72 |
| 41 | addr: 10.42.42.53 |
| 42 | band: GSM-1800 |
| 43 | ipa_unit_id: '7' |
| 44 | label: sysmoCell 5000 |
| 45 | trx_list: |
| 46 | - max_power_red: '3' |
| 47 | nominal_power: '10' |
| 48 | - max_power_red: '0' |
| 49 | nominal_power: '12' |
| 50 | trx_remote_ip: 10.42.42.112 |
| 51 | type: osmo-bts-trx |
| 52 | - _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249 |
| 53 | addr: 10.42.42.53 |
| 54 | band: GSM-1800 |
| 55 | ipa_unit_id: '7' |
| 56 | label: sysmoCell 5000 |
| 57 | trx_list: |
| 58 | - nominal_power: '10' |
| 59 | - max_power_red: '1' |
| 60 | nominal_power: '12' |
| 61 | trx_remote_ip: 10.42.42.112 |
| 62 | type: osmo-bts-trx |
| 63 | - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9 |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 64 | addr: 10.42.42.114 |
| 65 | band: GSM-1800 |
| 66 | ipa_unit_id: '1' |
| 67 | label: sysmoBTS 1002 |
| 68 | type: sysmo |
Neels Hofmeyr | 31e8320 | 2017-06-06 19:44:32 +0200 | [diff] [blame] | 69 | tst test_suite: Reserving 1 x ip_address (candidates: 3) |
Neels Hofmeyr | 76d8103 | 2017-05-18 18:35:32 +0200 | [diff] [blame] | 70 | tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4 |
| 71 | addr: 10.42.42.1 |
Neels Hofmeyr | 31e8320 | 2017-06-06 19:44:32 +0200 | [diff] [blame] | 72 | tst test_suite: Reserving 2 x modem (candidates: 16) |
Neels Hofmeyr | cccbe59 | 2017-05-07 01:16:07 +0200 | [diff] [blame] | 73 | tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 74 | imsi: '901700000007801' |
| 75 | ki: D620F48487B1B782DA55DF6717F08FF9 |
| 76 | label: m7801 |
| 77 | path: /wavecom_0 |
| 78 | - _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254 |
| 79 | imsi: '901700000007802' |
| 80 | ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3 |
| 81 | label: m7802 |
| 82 | path: /wavecom_1 |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 83 | |
| 84 | ---------------------------------------------- |
| 85 | trial test_suite hello_world.py |
| 86 | ---------------------------------------------- |
Neels Hofmeyr | d1bedb1 | 2017-05-07 03:02:23 +0200 | [diff] [blame] | 87 | tst hello_world.py:[LINENR]: hello world [test_suite↪hello_world.py:[LINENR]] |
| 88 | tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suite↪hello_world.py:[LINENR]] |
| 89 | tst hello_world.py:[LINENR]: one [test_suite↪hello_world.py:[LINENR]] |
| 90 | tst hello_world.py:[LINENR]: two [test_suite↪hello_world.py:[LINENR]] |
| 91 | tst hello_world.py:[LINENR]: three [test_suite↪hello_world.py:[LINENR]] |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 92 | tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suite↪hello_world.py] |
| 93 | --------------------------------------------------------------------- |
| 94 | trial test_suite PASS |
| 95 | --------------------------------------------------------------------- |
| 96 | PASS: test_suite (pass: 1, skip: 5) |
| 97 | pass: hello_world.py (N.N sec) |
| 98 | skip: mo_mt_sms.py |
| 99 | skip: mo_sms.py |
| 100 | skip: test_error.py |
| 101 | skip: test_fail.py |
| 102 | skip: test_fail_raise.py |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 103 | |
| 104 | - a test with an error |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 105 | |
| 106 | --------------------------------------------------------------------- |
| 107 | trial test_suite |
| 108 | --------------------------------------------------------------------- |
| 109 | |
| 110 | ---------------------------------------------- |
| 111 | trial test_suite test_error.py |
| 112 | ---------------------------------------------- |
Neels Hofmeyr | d1bedb1 | 2017-05-07 03:02:23 +0200 | [diff] [blame] | 113 | tst test_error.py:[LINENR]: I am 'test_suite' / 'test_error.py:[LINENR]' [test_suite↪test_error.py:[LINENR]] [test_error.py:[LINENR]] |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 114 | tst test_error.py:[LINENR]: ERR: AssertionError: test_error.py:[LINENR]: assert False [test_suite↪test_error.py:[LINENR]] [test_error.py:[LINENR]: assert False] |
Pau Espin Pedrol | fd5de3d | 2017-11-09 14:26:35 +0100 | [diff] [blame] | 115 | tst test_error.py:[LINENR]: Test FAILED (N.N sec) [test_suite↪test_error.py:[LINENR]] [test.py:[LINENR]] |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 116 | --------------------------------------------------------------------- |
| 117 | trial test_suite FAIL |
| 118 | --------------------------------------------------------------------- |
| 119 | FAIL: test_suite (fail: 1, skip: 5) |
| 120 | skip: hello_world.py (N.N sec) |
| 121 | skip: mo_mt_sms.py |
| 122 | skip: mo_sms.py |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 123 | FAIL: test_error.py (N.N sec) AssertionError: test_error.py:[LINENR]: assert False |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 124 | skip: test_fail.py |
| 125 | skip: test_fail_raise.py |
Pau Espin Pedrol | 0ffb414 | 2017-05-15 18:24:35 +0200 | [diff] [blame] | 126 | |
| 127 | - a test with a failure |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 128 | |
| 129 | --------------------------------------------------------------------- |
| 130 | trial test_suite |
| 131 | --------------------------------------------------------------------- |
| 132 | |
| 133 | ---------------------------------------------- |
| 134 | trial test_suite test_fail.py |
| 135 | ---------------------------------------------- |
Pau Espin Pedrol | 0ffb414 | 2017-05-15 18:24:35 +0200 | [diff] [blame] | 136 | tst test_fail.py:[LINENR]: I am 'test_suite' / 'test_fail.py:[LINENR]' [test_suite↪test_fail.py:[LINENR]] [test_fail.py:[LINENR]] |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 137 | tst test_fail.py:[LINENR]: ERR: EpicFail: This failure is expected [test_suite↪test_fail.py:[LINENR]] [test_fail.py:[LINENR]] |
Pau Espin Pedrol | fd5de3d | 2017-11-09 14:26:35 +0100 | [diff] [blame] | 138 | tst test_fail.py:[LINENR]: Test FAILED (N.N sec) [test_suite↪test_fail.py:[LINENR]] [test.py:[LINENR]] |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 139 | --------------------------------------------------------------------- |
| 140 | trial test_suite FAIL |
| 141 | --------------------------------------------------------------------- |
| 142 | FAIL: test_suite (fail: 1, skip: 5) |
| 143 | skip: hello_world.py (N.N sec) |
| 144 | skip: mo_mt_sms.py |
| 145 | skip: mo_sms.py |
| 146 | skip: test_error.py (N.N sec) |
| 147 | FAIL: test_fail.py (N.N sec) EpicFail: This failure is expected |
| 148 | skip: test_fail_raise.py |
Pau Espin Pedrol | 0ffb414 | 2017-05-15 18:24:35 +0200 | [diff] [blame] | 149 | |
| 150 | - a test with a raised failure |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 151 | |
| 152 | --------------------------------------------------------------------- |
| 153 | trial test_suite |
| 154 | --------------------------------------------------------------------- |
| 155 | |
| 156 | ---------------------------------------------- |
| 157 | trial test_suite test_fail_raise.py |
| 158 | ---------------------------------------------- |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 159 | tst test_fail_raise.py:[LINENR]: ERR: ExpectedFail: This failure is expected [test_suite↪test_fail_raise.py:[LINENR]] [test_fail_raise.py:[LINENR]: raise ExpectedFail('This failure is expected')] |
Pau Espin Pedrol | fd5de3d | 2017-11-09 14:26:35 +0100 | [diff] [blame] | 160 | tst test_fail_raise.py:[LINENR]: Test FAILED (N.N sec) [test_suite↪test_fail_raise.py:[LINENR]] [test.py:[LINENR]] |
Neels Hofmeyr | 6ccda11 | 2017-06-06 19:41:17 +0200 | [diff] [blame] | 161 | --------------------------------------------------------------------- |
| 162 | trial test_suite FAIL |
| 163 | --------------------------------------------------------------------- |
| 164 | FAIL: test_suite (fail: 1, skip: 5) |
| 165 | skip: hello_world.py (N.N sec) |
| 166 | skip: mo_mt_sms.py |
| 167 | skip: mo_sms.py |
| 168 | skip: test_error.py (N.N sec) |
| 169 | skip: test_fail.py (N.N sec) |
Neels Hofmeyr | 1a7a3f0 | 2017-06-10 01:18:27 +0200 | [diff] [blame] | 170 | FAIL: test_fail_raise.py (N.N sec) ExpectedFail: This failure is expected |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 171 | - test with half empty scenario |
| 172 | cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test [config.py:[LINENR]] |
| 173 | cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]] |
| 174 | |
| 175 | --------------------------------------------------------------------- |
| 176 | trial test_suite |
| 177 | --------------------------------------------------------------------- |
| 178 | tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]] |
| 179 | tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]] |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 180 | tst {combining_scenarios='resources'}: DBG: {definition_conf={bts=[{'label': 'sysmoCell 5000'}, {'label': 'sysmoCell 5000'}, {'type': 'sysmo'}], ip_address=[{}], modem=[{}, {}]}} [test_suite↪{combining_scenarios='resources'}] [suite.py:[LINENR]] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 181 | tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT] |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 182 | tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]] |
| 183 | tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]] |
| 184 | tst {combining_scenarios='modifiers', scenario='foo'}: DBG: {conf={}, scenario='foo'} [test_suite↪{combining_scenarios='modifiers', scenario='foo'}] [suite.py:[LINENR]] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 185 | tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]] |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 186 | tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72 |
| 187 | addr: 10.42.42.53 |
| 188 | band: GSM-1800 |
| 189 | ipa_unit_id: '7' |
| 190 | label: sysmoCell 5000 |
| 191 | trx_list: |
| 192 | - max_power_red: '3' |
| 193 | nominal_power: '10' |
| 194 | - max_power_red: '0' |
| 195 | nominal_power: '12' |
| 196 | trx_remote_ip: 10.42.42.112 |
| 197 | type: osmo-bts-trx |
| 198 | - _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249 |
| 199 | addr: 10.42.42.53 |
| 200 | band: GSM-1800 |
| 201 | ipa_unit_id: '7' |
| 202 | label: sysmoCell 5000 |
| 203 | trx_list: |
| 204 | - nominal_power: '10' |
| 205 | - max_power_red: '1' |
| 206 | nominal_power: '12' |
| 207 | trx_remote_ip: 10.42.42.112 |
| 208 | type: osmo-bts-trx |
| 209 | - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9 |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 210 | addr: 10.42.42.114 |
| 211 | band: GSM-1800 |
| 212 | ipa_unit_id: '1' |
| 213 | label: sysmoBTS 1002 |
| 214 | type: sysmo |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 215 | [resource.py:[LINENR]] |
| 216 | tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]] |
| 217 | tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4 |
| 218 | addr: 10.42.42.1 |
| 219 | [resource.py:[LINENR]] |
| 220 | tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]] |
| 221 | tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f |
| 222 | imsi: '901700000007801' |
| 223 | ki: D620F48487B1B782DA55DF6717F08FF9 |
| 224 | label: m7801 |
| 225 | path: /wavecom_0 |
| 226 | - _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254 |
| 227 | imsi: '901700000007802' |
| 228 | ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3 |
| 229 | label: m7802 |
| 230 | path: /wavecom_1 |
| 231 | [resource.py:[LINENR]] |
| 232 | |
| 233 | ---------------------------------------------- |
| 234 | trial test_suite hello_world.py |
| 235 | ---------------------------------------------- |
| 236 | tst hello_world.py:[LINENR]: hello world [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 237 | tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 238 | tst hello_world.py:[LINENR]: one [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 239 | tst hello_world.py:[LINENR]: two [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 240 | tst hello_world.py:[LINENR]: three [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
Pau Espin Pedrol | fd5de3d | 2017-11-09 14:26:35 +0100 | [diff] [blame] | 241 | tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suite↪hello_world.py] [test.py:[LINENR]] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 242 | --------------------------------------------------------------------- |
| 243 | trial test_suite PASS |
| 244 | --------------------------------------------------------------------- |
| 245 | PASS: test_suite (pass: 1, skip: 5) |
| 246 | pass: hello_world.py (N.N sec) |
| 247 | skip: mo_mt_sms.py |
| 248 | skip: mo_sms.py |
| 249 | skip: test_error.py |
| 250 | skip: test_fail.py |
| 251 | skip: test_fail_raise.py |
| 252 | - test with scenario |
| 253 | cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test [config.py:[LINENR]] |
| 254 | cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]] |
| 255 | |
| 256 | --------------------------------------------------------------------- |
| 257 | trial test_suite |
| 258 | --------------------------------------------------------------------- |
| 259 | tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]] |
| 260 | tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]] |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 261 | tst {combining_scenarios='resources'}: DBG: {definition_conf={bts=[{'label': 'sysmoCell 5000'}, {'label': 'sysmoCell 5000'}, {'type': 'sysmo'}], ip_address=[{}], modem=[{}, {}]}} [test_suite↪{combining_scenarios='resources'}] [suite.py:[LINENR]] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 262 | tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT] |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 263 | tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]] |
| 264 | tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]] |
| 265 | tst {combining_scenarios='modifiers', scenario='foo'}: DBG: {conf={}, scenario='foo'} [test_suite↪{combining_scenarios='modifiers', scenario='foo'}] [suite.py:[LINENR]] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 266 | tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]] |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 267 | tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72 |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 268 | addr: 10.42.42.53 |
| 269 | band: GSM-1800 |
| 270 | ipa_unit_id: '7' |
| 271 | label: sysmoCell 5000 |
| 272 | trx_list: |
Pau Espin Pedrol | 5847551 | 2017-09-14 15:33:15 +0200 | [diff] [blame] | 273 | - max_power_red: '3' |
| 274 | nominal_power: '10' |
| 275 | - max_power_red: '0' |
| 276 | nominal_power: '12' |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 277 | trx_remote_ip: 10.42.42.112 |
| 278 | type: osmo-bts-trx |
Pau Espin Pedrol | cbc7242 | 2017-09-14 15:55:49 +0200 | [diff] [blame] | 279 | - _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249 |
| 280 | addr: 10.42.42.53 |
| 281 | band: GSM-1800 |
| 282 | ipa_unit_id: '7' |
| 283 | label: sysmoCell 5000 |
| 284 | trx_list: |
| 285 | - nominal_power: '10' |
| 286 | - max_power_red: '1' |
| 287 | nominal_power: '12' |
| 288 | trx_remote_ip: 10.42.42.112 |
| 289 | type: osmo-bts-trx |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 290 | - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9 |
| 291 | addr: 10.42.42.114 |
| 292 | band: GSM-1800 |
| 293 | ipa_unit_id: '1' |
| 294 | label: sysmoBTS 1002 |
| 295 | type: sysmo |
| 296 | [resource.py:[LINENR]] |
| 297 | tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]] |
| 298 | tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4 |
| 299 | addr: 10.42.42.1 |
| 300 | [resource.py:[LINENR]] |
| 301 | tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]] |
| 302 | tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f |
| 303 | imsi: '901700000007801' |
| 304 | ki: D620F48487B1B782DA55DF6717F08FF9 |
| 305 | label: m7801 |
| 306 | path: /wavecom_0 |
| 307 | - _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254 |
| 308 | imsi: '901700000007802' |
| 309 | ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3 |
| 310 | label: m7802 |
| 311 | path: /wavecom_1 |
| 312 | [resource.py:[LINENR]] |
| 313 | |
| 314 | ---------------------------------------------- |
| 315 | trial test_suite hello_world.py |
| 316 | ---------------------------------------------- |
| 317 | tst hello_world.py:[LINENR]: hello world [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 318 | tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 319 | tst hello_world.py:[LINENR]: one [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 320 | tst hello_world.py:[LINENR]: two [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 321 | tst hello_world.py:[LINENR]: three [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
Pau Espin Pedrol | fd5de3d | 2017-11-09 14:26:35 +0100 | [diff] [blame] | 322 | tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suite↪hello_world.py] [test.py:[LINENR]] |
Pau Espin Pedrol | 0b30279 | 2017-09-10 16:33:10 +0200 | [diff] [blame] | 323 | --------------------------------------------------------------------- |
| 324 | trial test_suite PASS |
| 325 | --------------------------------------------------------------------- |
| 326 | PASS: test_suite (pass: 1, skip: 5) |
| 327 | pass: hello_world.py (N.N sec) |
| 328 | skip: mo_mt_sms.py |
| 329 | skip: mo_sms.py |
| 330 | skip: test_error.py |
| 331 | skip: test_fail.py |
| 332 | skip: test_fail_raise.py |
Pau Espin Pedrol | aab5692 | 2018-08-21 14:58:29 +0200 | [diff] [blame] | 333 | - test with scenario and modifiers |
| 334 | cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test [config.py:[LINENR]] |
| 335 | cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]] |
| 336 | tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]] |
| 337 | tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]] |
| 338 | tst {combining_scenarios='resources'}: DBG: {definition_conf={bts=[{'label': 'sysmoCell 5000'}, {'label': 'sysmoCell 5000'}, {'type': 'sysmo'}], ip_address=[{}], modem=[{}, {}]}} [test_suite↪{combining_scenarios='resources'}] [suite.py:[LINENR]] |
| 339 | tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT] |
| 340 | tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]] |
| 341 | tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]] |
| 342 | tst {combining_scenarios='modifiers', scenario='foo'}: DBG: {conf={bts=[{'trx_list': [{'nominal_power': '20'}, {'nominal_power': '20'}]}, {'trx_list': [{'nominal_power': '20'}, {'nominal_power': '20'}]}, {'type': 'sysmo'}]}, scenario='foo'} [test_suite↪{combining_scenarios='modifiers', scenario='foo'}] [suite.py:[LINENR]] |
| 343 | tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]] |
| 344 | tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72 |
| 345 | addr: 10.42.42.53 |
| 346 | band: GSM-1800 |
| 347 | ipa_unit_id: '7' |
| 348 | label: sysmoCell 5000 |
| 349 | trx_list: |
| 350 | - max_power_red: '3' |
| 351 | nominal_power: '10' |
| 352 | - max_power_red: '0' |
| 353 | nominal_power: '12' |
| 354 | trx_remote_ip: 10.42.42.112 |
| 355 | type: osmo-bts-trx |
| 356 | - _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249 |
| 357 | addr: 10.42.42.53 |
| 358 | band: GSM-1800 |
| 359 | ipa_unit_id: '7' |
| 360 | label: sysmoCell 5000 |
| 361 | trx_list: |
| 362 | - nominal_power: '10' |
| 363 | - max_power_red: '1' |
| 364 | nominal_power: '12' |
| 365 | trx_remote_ip: 10.42.42.112 |
| 366 | type: osmo-bts-trx |
| 367 | - _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9 |
| 368 | addr: 10.42.42.114 |
| 369 | band: GSM-1800 |
| 370 | ipa_unit_id: '1' |
| 371 | label: sysmoBTS 1002 |
| 372 | type: sysmo |
| 373 | [resource.py:[LINENR]] |
| 374 | tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]] |
| 375 | tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4 |
| 376 | addr: 10.42.42.1 |
| 377 | [resource.py:[LINENR]] |
| 378 | tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]] |
| 379 | tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f |
| 380 | imsi: '901700000007801' |
| 381 | ki: D620F48487B1B782DA55DF6717F08FF9 |
| 382 | label: m7801 |
| 383 | path: /wavecom_0 |
| 384 | - _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254 |
| 385 | imsi: '901700000007802' |
| 386 | ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3 |
| 387 | label: m7802 |
| 388 | path: /wavecom_1 |
| 389 | [resource.py:[LINENR]] |
| 390 | resources(test_suite)={'bts': [{'_hash': '076ff06a4b719e61779492d3fb99f42a6635bb72', |
| 391 | '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]', |
| 392 | 'addr': '10.42.42.53', |
| 393 | 'band': 'GSM-1800', |
| 394 | 'ipa_unit_id': '7', |
| 395 | 'label': 'sysmoCell 5000', |
| 396 | 'trx_list': [{'max_power_red': '3', 'nominal_power': '20'}, |
| 397 | {'max_power_red': '0', 'nominal_power': '20'}], |
| 398 | 'trx_remote_ip': '10.42.42.112', |
| 399 | 'type': 'osmo-bts-trx'}, |
| 400 | {'_hash': '9eaa928b04ce04b19dbae972f9bfc3eea6f5e249', |
| 401 | '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]', |
| 402 | 'addr': '10.42.42.53', |
| 403 | 'band': 'GSM-1800', |
| 404 | 'ipa_unit_id': '7', |
| 405 | 'label': 'sysmoCell 5000', |
| 406 | 'trx_list': [{'nominal_power': '20'}, |
| 407 | {'max_power_red': '1', 'nominal_power': '20'}], |
| 408 | 'trx_remote_ip': '10.42.42.112', |
| 409 | 'type': 'osmo-bts-trx'}, |
| 410 | {'_hash': '07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9', |
| 411 | '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]', |
| 412 | 'addr': '10.42.42.114', |
| 413 | 'band': 'GSM-1800', |
| 414 | 'ipa_unit_id': '1', |
| 415 | 'label': 'sysmoBTS 1002', |
| 416 | 'type': 'sysmo'}], |
| 417 | 'ip_address': [{'_hash': 'cde1debf28f07f94f92c761b4b7c6bf35785ced4', |
| 418 | '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]', |
| 419 | 'addr': '10.42.42.1'}], |
| 420 | 'modem': [{'_hash': '19c69e45aa090fb511446bd00797690aa82ff52f', |
| 421 | '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]', |
| 422 | 'imsi': '901700000007801', |
| 423 | 'ki': 'D620F48487B1B782DA55DF6717F08FF9', |
| 424 | 'label': 'm7801', |
| 425 | 'path': '/wavecom_0'}, |
| 426 | {'_hash': 'e1a46516a1fb493b2617ab14fc1693a9a45ec254', |
| 427 | '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]', |
| 428 | 'imsi': '901700000007802', |
| 429 | 'ki': '47FDB2D55CE6A10A85ABDAD034A5B7B3', |
| 430 | 'label': 'm7802', |
| 431 | 'path': '/wavecom_1'}]} |
| 432 | |
| 433 | --------------------------------------------------------------------- |
| 434 | trial test_suite |
| 435 | --------------------------------------------------------------------- |
| 436 | |
| 437 | ---------------------------------------------- |
| 438 | trial test_suite hello_world.py |
| 439 | ---------------------------------------------- |
| 440 | tst hello_world.py:[LINENR]: hello world [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 441 | tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 442 | tst hello_world.py:[LINENR]: one [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 443 | tst hello_world.py:[LINENR]: two [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 444 | tst hello_world.py:[LINENR]: three [test_suite↪hello_world.py:[LINENR]] [hello_world.py:[LINENR]] |
| 445 | tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suite↪hello_world.py] [test.py:[LINENR]] |
| 446 | --------------------------------------------------------------------- |
| 447 | trial test_suite PASS |
| 448 | --------------------------------------------------------------------- |
| 449 | PASS: test_suite (pass: 1, skip: 5) |
| 450 | pass: hello_world.py (N.N sec) |
| 451 | skip: mo_mt_sms.py |
| 452 | skip: mo_sms.py |
| 453 | skip: test_error.py |
| 454 | skip: test_fail.py |
| 455 | skip: test_fail_raise.py |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 456 | |
| 457 | - graceful exit. |