blob: cd5a9e7ad6e157d856a1270fb2bfd8064d647cb1 [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- non-existing suite dir
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +02002cnf -: DBG: Found config file paths.conf as [PATH]/selftest/suite_test/paths.conf in ./suite_test which is [PATH]/selftest/suite_test
3cnf -: DBG: [PATH]/selftest/suite_test/paths.conf: relative path ./test_work/state_dir is [PATH]/selftest/suite_test/test_work/state_dir
4cnf -: DBG: [PATH]/selftest/suite_test/paths.conf: relative path . is [PATH]/selftest/suite_test
5cnf -: 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 Hofmeyr3531a192017-03-28 14:30:28 +02007- no suite.conf
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +02008cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test
Neels Hofmeyr31e83202017-06-06 19:44:32 +02009cnf empty_dir: DBG: reading suite.conf
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020010cnf [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 Hofmeyr3531a192017-03-28 14:30:28 +020011- valid suite dir
Neels Hofmeyref9ed2d2017-05-04 16:39:29 +020012cnf -: DBG: Found path suites_dir as [PATH]/selftest/suite_test
Neels Hofmeyr31e83202017-06-06 19:44:32 +020013cnf test_suite: DBG: reading suite.conf
Neels Hofmeyr3531a192017-03-28 14:30:28 +020014defaults:
15 timeout: 60s
16resources:
17 bts:
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020018 - label: sysmoCell 5000
19 times: '2'
Neels Hofmeyr3531a192017-03-28 14:30:28 +020020 - times: '1'
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020021 type: sysmo
Neels Hofmeyr76d81032017-05-18 18:35:32 +020022 ip_address:
23 - times: '1'
Neels Hofmeyr3531a192017-03-28 14:30:28 +020024 modem:
25 - times: '2'
Neels Hofmeyr3531a192017-03-28 14:30:28 +020026
27- run hello world test
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +020028cnf ResourcesPool: DBG: Found config file resources.conf as [PATH]/selftest/suite_test/resources.conf in ./suite_test which is [PATH]/selftest/suite_test
29cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020030
31---------------------------------------------------------------------
32trial test_suite
33---------------------------------------------------------------------
Neels Hofmeyr7e2e8f12017-05-14 03:37:13 +020034tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ...
Neels Hofmeyr31e83202017-06-06 19:44:32 +020035tst test_suite: DBG: {combining='resources'}
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020036tst {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 Pedrol0b302792017-09-10 16:33:10 +020037tst test_suite: Reserving 3 x bts (candidates: 6)
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020038tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72
39 addr: 10.42.42.53
40 band: GSM-1800
41 ipa_unit_id: '7'
42 label: sysmoCell 5000
43 trx_list:
44 - max_power_red: '3'
45 nominal_power: '10'
46 - max_power_red: '0'
47 nominal_power: '12'
48 trx_remote_ip: 10.42.42.112
49 type: osmo-bts-trx
50- _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249
51 addr: 10.42.42.53
52 band: GSM-1800
53 ipa_unit_id: '7'
54 label: sysmoCell 5000
55 trx_list:
56 - nominal_power: '10'
57 - max_power_red: '1'
58 nominal_power: '12'
59 trx_remote_ip: 10.42.42.112
60 type: osmo-bts-trx
61- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020062 addr: 10.42.42.114
63 band: GSM-1800
64 ipa_unit_id: '1'
65 label: sysmoBTS 1002
66 type: sysmo
Neels Hofmeyr31e83202017-06-06 19:44:32 +020067tst test_suite: Reserving 1 x ip_address (candidates: 3)
Neels Hofmeyr76d81032017-05-18 18:35:32 +020068tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
69 addr: 10.42.42.1
Neels Hofmeyr31e83202017-06-06 19:44:32 +020070tst test_suite: Reserving 2 x modem (candidates: 16)
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020071tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020072 imsi: '901700000007801'
73 ki: D620F48487B1B782DA55DF6717F08FF9
74 label: m7801
75 path: /wavecom_0
76- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
77 imsi: '901700000007802'
78 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
79 label: m7802
80 path: /wavecom_1
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020081
82----------------------------------------------
83trial test_suite hello_world.py
84----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020085tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]]
86tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]]
87tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]]
88tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]]
89tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020090tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py]
91---------------------------------------------------------------------
92trial test_suite PASS
93---------------------------------------------------------------------
94PASS: test_suite (pass: 1, skip: 5)
95 pass: hello_world.py (N.N sec)
96 skip: mo_mt_sms.py
97 skip: mo_sms.py
98 skip: test_error.py
99 skip: test_fail.py
100 skip: test_fail_raise.py
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200101
102- a test with an error
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200103
104---------------------------------------------------------------------
105trial test_suite
106---------------------------------------------------------------------
107
108----------------------------------------------
109trial test_suite test_error.py
110----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +0200111tst test_error.py:[LINENR]: I am 'test_suite' / 'test_error.py:[LINENR]' [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]]
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200112tst test_error.py:[LINENR]: ERR: AssertionError: test_error.py:[LINENR]: assert False [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]: assert False]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200113tst test_error.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_error.py:[LINENR]] [suite.py:[LINENR]]
114---------------------------------------------------------------------
115trial test_suite FAIL
116---------------------------------------------------------------------
117FAIL: test_suite (fail: 1, skip: 5)
118 skip: hello_world.py (N.N sec)
119 skip: mo_mt_sms.py
120 skip: mo_sms.py
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200121 FAIL: test_error.py (N.N sec) AssertionError: test_error.py:[LINENR]: assert False
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200122 skip: test_fail.py
123 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200124
125- a test with a failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200126
127---------------------------------------------------------------------
128trial test_suite
129---------------------------------------------------------------------
130
131----------------------------------------------
132trial test_suite test_fail.py
133----------------------------------------------
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200134tst test_fail.py:[LINENR]: I am 'test_suite' / 'test_fail.py:[LINENR]' [test_suitetest_fail.py:[LINENR]] [test_fail.py:[LINENR]]
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200135tst test_fail.py:[LINENR]: ERR: EpicFail: This failure is expected [test_suitetest_fail.py:[LINENR]] [test_fail.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200136tst test_fail.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail.py:[LINENR]] [suite.py:[LINENR]]
137---------------------------------------------------------------------
138trial test_suite FAIL
139---------------------------------------------------------------------
140FAIL: test_suite (fail: 1, skip: 5)
141 skip: hello_world.py (N.N sec)
142 skip: mo_mt_sms.py
143 skip: mo_sms.py
144 skip: test_error.py (N.N sec)
145 FAIL: test_fail.py (N.N sec) EpicFail: This failure is expected
146 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200147
148- a test with a raised failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200149
150---------------------------------------------------------------------
151trial test_suite
152---------------------------------------------------------------------
153
154----------------------------------------------
155trial test_suite test_fail_raise.py
156----------------------------------------------
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200157tst test_fail_raise.py:[LINENR]: ERR: ExpectedFail: This failure is expected [test_suitetest_fail_raise.py:[LINENR]] [test_fail_raise.py:[LINENR]: raise ExpectedFail('This failure is expected')]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200158tst test_fail_raise.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail_raise.py:[LINENR]] [suite.py:[LINENR]]
159---------------------------------------------------------------------
160trial test_suite FAIL
161---------------------------------------------------------------------
162FAIL: test_suite (fail: 1, skip: 5)
163 skip: hello_world.py (N.N sec)
164 skip: mo_mt_sms.py
165 skip: mo_sms.py
166 skip: test_error.py (N.N sec)
167 skip: test_fail.py (N.N sec)
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200168 FAIL: test_fail_raise.py (N.N sec) ExpectedFail: This failure is expected
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200169- test with half empty scenario
170cnf 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]]
171cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
172
173---------------------------------------------------------------------
174trial test_suite
175---------------------------------------------------------------------
176tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
177tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200178tst {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 Pedrol0b302792017-09-10 16:33:10 +0200179tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
180tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200181tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72
182 addr: 10.42.42.53
183 band: GSM-1800
184 ipa_unit_id: '7'
185 label: sysmoCell 5000
186 trx_list:
187 - max_power_red: '3'
188 nominal_power: '10'
189 - max_power_red: '0'
190 nominal_power: '12'
191 trx_remote_ip: 10.42.42.112
192 type: osmo-bts-trx
193- _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249
194 addr: 10.42.42.53
195 band: GSM-1800
196 ipa_unit_id: '7'
197 label: sysmoCell 5000
198 trx_list:
199 - nominal_power: '10'
200 - max_power_red: '1'
201 nominal_power: '12'
202 trx_remote_ip: 10.42.42.112
203 type: osmo-bts-trx
204- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200205 addr: 10.42.42.114
206 band: GSM-1800
207 ipa_unit_id: '1'
208 label: sysmoBTS 1002
209 type: sysmo
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200210 [resource.py:[LINENR]]
211tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
212tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
213 addr: 10.42.42.1
214 [resource.py:[LINENR]]
215tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
216tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
217 imsi: '901700000007801'
218 ki: D620F48487B1B782DA55DF6717F08FF9
219 label: m7801
220 path: /wavecom_0
221- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
222 imsi: '901700000007802'
223 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
224 label: m7802
225 path: /wavecom_1
226 [resource.py:[LINENR]]
227
228----------------------------------------------
229trial test_suite hello_world.py
230----------------------------------------------
231tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
232tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
233tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
234tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
235tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
236tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [suite.py:[LINENR]]
237---------------------------------------------------------------------
238trial test_suite PASS
239---------------------------------------------------------------------
240PASS: test_suite (pass: 1, skip: 5)
241 pass: hello_world.py (N.N sec)
242 skip: mo_mt_sms.py
243 skip: mo_sms.py
244 skip: test_error.py
245 skip: test_fail.py
246 skip: test_fail_raise.py
247- test with scenario
248cnf 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]]
249cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
250
251---------------------------------------------------------------------
252trial test_suite
253---------------------------------------------------------------------
254tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
255tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200256tst {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 Pedrol0b302792017-09-10 16:33:10 +0200257tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
258tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200259tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200260 addr: 10.42.42.53
261 band: GSM-1800
262 ipa_unit_id: '7'
263 label: sysmoCell 5000
264 trx_list:
Pau Espin Pedrol58475512017-09-14 15:33:15 +0200265 - max_power_red: '3'
266 nominal_power: '10'
267 - max_power_red: '0'
268 nominal_power: '12'
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200269 trx_remote_ip: 10.42.42.112
270 type: osmo-bts-trx
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200271- _hash: 9eaa928b04ce04b19dbae972f9bfc3eea6f5e249
272 addr: 10.42.42.53
273 band: GSM-1800
274 ipa_unit_id: '7'
275 label: sysmoCell 5000
276 trx_list:
277 - nominal_power: '10'
278 - max_power_red: '1'
279 nominal_power: '12'
280 trx_remote_ip: 10.42.42.112
281 type: osmo-bts-trx
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200282- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
283 addr: 10.42.42.114
284 band: GSM-1800
285 ipa_unit_id: '1'
286 label: sysmoBTS 1002
287 type: sysmo
288 [resource.py:[LINENR]]
289tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
290tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
291 addr: 10.42.42.1
292 [resource.py:[LINENR]]
293tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
294tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
295 imsi: '901700000007801'
296 ki: D620F48487B1B782DA55DF6717F08FF9
297 label: m7801
298 path: /wavecom_0
299- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
300 imsi: '901700000007802'
301 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
302 label: m7802
303 path: /wavecom_1
304 [resource.py:[LINENR]]
305
306----------------------------------------------
307trial test_suite hello_world.py
308----------------------------------------------
309tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
310tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
311tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
312tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
313tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
314tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [suite.py:[LINENR]]
315---------------------------------------------------------------------
316trial test_suite PASS
317---------------------------------------------------------------------
318PASS: test_suite (pass: 1, skip: 5)
319 pass: hello_world.py (N.N sec)
320 skip: mo_mt_sms.py
321 skip: mo_sms.py
322 skip: test_error.py
323 skip: test_fail.py
324 skip: test_fail_raise.py
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200325
326- graceful exit.