blob: 908f24f704fd35532920b10eb3b674665a846594 [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 Pedrolaab56922018-08-21 14:58:29 +020037tst test_suite: DBG: {combining='modifiers'}
38tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +020039tst test_suite: Reserving 3 x bts (candidates: 6)
Pau Espin Pedrol0d455042018-08-27 17:07:41 +020040tst test_suite: DBG: Picked - _hash: a59640b8ba6a373552b24a6f9f65cadd2347bace
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020041 addr: 10.42.42.53
42 band: GSM-1800
43 ipa_unit_id: '7'
44 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +020045 osmo_trx:
46 clock_reference: external
47 launch_trx: 'False'
48 trx_ip: 10.42.42.112
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020049 trx_list:
50 - max_power_red: '3'
51 nominal_power: '10'
52 - max_power_red: '0'
53 nominal_power: '12'
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020054 type: osmo-bts-trx
Pau Espin Pedrol0d455042018-08-27 17:07:41 +020055- _hash: c2feabd082c36a1cdeccb9a5237dfff7dbadb009
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020056 addr: 10.42.42.53
57 band: GSM-1800
58 ipa_unit_id: '7'
59 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +020060 osmo_trx:
61 clock_reference: external
62 launch_trx: 'False'
63 trx_ip: 10.42.42.112
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020064 trx_list:
65 - nominal_power: '10'
66 - max_power_red: '1'
67 nominal_power: '12'
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +020068 type: osmo-bts-trx
69- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020070 addr: 10.42.42.114
71 band: GSM-1800
72 ipa_unit_id: '1'
73 label: sysmoBTS 1002
74 type: sysmo
Neels Hofmeyr31e83202017-06-06 19:44:32 +020075tst test_suite: Reserving 1 x ip_address (candidates: 3)
Neels Hofmeyr76d81032017-05-18 18:35:32 +020076tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
77 addr: 10.42.42.1
Neels Hofmeyr31e83202017-06-06 19:44:32 +020078tst test_suite: Reserving 2 x modem (candidates: 16)
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020079tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020080 imsi: '901700000007801'
81 ki: D620F48487B1B782DA55DF6717F08FF9
82 label: m7801
83 path: /wavecom_0
84- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
85 imsi: '901700000007802'
86 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
87 label: m7802
88 path: /wavecom_1
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020089
90----------------------------------------------
91trial test_suite hello_world.py
92----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020093tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]]
94tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]]
95tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]]
96tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]]
97tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020098tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py]
99---------------------------------------------------------------------
100trial test_suite PASS
101---------------------------------------------------------------------
102PASS: test_suite (pass: 1, skip: 5)
103 pass: hello_world.py (N.N sec)
104 skip: mo_mt_sms.py
105 skip: mo_sms.py
106 skip: test_error.py
107 skip: test_fail.py
108 skip: test_fail_raise.py
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200109
110- a test with an error
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200111
112---------------------------------------------------------------------
113trial test_suite
114---------------------------------------------------------------------
115
116----------------------------------------------
117trial test_suite test_error.py
118----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +0200119tst 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 +0200120tst test_error.py:[LINENR]: ERR: AssertionError: test_error.py:[LINENR]: assert False [test_suitetest_error.py:[LINENR]] [test_error.py:[LINENR]: assert False]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100121tst test_error.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_error.py:[LINENR]] [test.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200122---------------------------------------------------------------------
123trial test_suite FAIL
124---------------------------------------------------------------------
125FAIL: test_suite (fail: 1, skip: 5)
126 skip: hello_world.py (N.N sec)
127 skip: mo_mt_sms.py
128 skip: mo_sms.py
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200129 FAIL: test_error.py (N.N sec) AssertionError: test_error.py:[LINENR]: assert False
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200130 skip: test_fail.py
131 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200132
133- a test with a failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200134
135---------------------------------------------------------------------
136trial test_suite
137---------------------------------------------------------------------
138
139----------------------------------------------
140trial test_suite test_fail.py
141----------------------------------------------
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200142tst 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 +0200143tst test_fail.py:[LINENR]: ERR: EpicFail: This failure is expected [test_suitetest_fail.py:[LINENR]] [test_fail.py:[LINENR]]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100144tst test_fail.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail.py:[LINENR]] [test.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200145---------------------------------------------------------------------
146trial test_suite FAIL
147---------------------------------------------------------------------
148FAIL: test_suite (fail: 1, skip: 5)
149 skip: hello_world.py (N.N sec)
150 skip: mo_mt_sms.py
151 skip: mo_sms.py
152 skip: test_error.py (N.N sec)
153 FAIL: test_fail.py (N.N sec) EpicFail: This failure is expected
154 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200155
156- a test with a raised failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200157
158---------------------------------------------------------------------
159trial test_suite
160---------------------------------------------------------------------
161
162----------------------------------------------
163trial test_suite test_fail_raise.py
164----------------------------------------------
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200165tst 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')]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100166tst test_fail_raise.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail_raise.py:[LINENR]] [test.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200167---------------------------------------------------------------------
168trial test_suite FAIL
169---------------------------------------------------------------------
170FAIL: test_suite (fail: 1, skip: 5)
171 skip: hello_world.py (N.N sec)
172 skip: mo_mt_sms.py
173 skip: mo_sms.py
174 skip: test_error.py (N.N sec)
175 skip: test_fail.py (N.N sec)
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200176 FAIL: test_fail_raise.py (N.N sec) ExpectedFail: This failure is expected
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200177- test with half empty scenario
178cnf 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]]
179cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
180
181---------------------------------------------------------------------
182trial test_suite
183---------------------------------------------------------------------
184tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
185tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200186tst {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 +0200187tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200188tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]]
189tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]]
190tst {combining_scenarios='modifiers', scenario='foo'}: DBG: {conf={}, scenario='foo'} [test_suite↪{combining_scenarios='modifiers', scenario='foo'}] [suite.py:[LINENR]]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200191tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200192tst test_suite: DBG: Picked - _hash: a59640b8ba6a373552b24a6f9f65cadd2347bace
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200193 addr: 10.42.42.53
194 band: GSM-1800
195 ipa_unit_id: '7'
196 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200197 osmo_trx:
198 clock_reference: external
199 launch_trx: 'False'
200 trx_ip: 10.42.42.112
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200201 trx_list:
202 - max_power_red: '3'
203 nominal_power: '10'
204 - max_power_red: '0'
205 nominal_power: '12'
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200206 type: osmo-bts-trx
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200207- _hash: c2feabd082c36a1cdeccb9a5237dfff7dbadb009
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200208 addr: 10.42.42.53
209 band: GSM-1800
210 ipa_unit_id: '7'
211 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200212 osmo_trx:
213 clock_reference: external
214 launch_trx: 'False'
215 trx_ip: 10.42.42.112
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200216 trx_list:
217 - nominal_power: '10'
218 - max_power_red: '1'
219 nominal_power: '12'
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200220 type: osmo-bts-trx
221- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200222 addr: 10.42.42.114
223 band: GSM-1800
224 ipa_unit_id: '1'
225 label: sysmoBTS 1002
226 type: sysmo
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200227 [resource.py:[LINENR]]
228tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
229tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
230 addr: 10.42.42.1
231 [resource.py:[LINENR]]
232tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
233tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
234 imsi: '901700000007801'
235 ki: D620F48487B1B782DA55DF6717F08FF9
236 label: m7801
237 path: /wavecom_0
238- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
239 imsi: '901700000007802'
240 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
241 label: m7802
242 path: /wavecom_1
243 [resource.py:[LINENR]]
244
245----------------------------------------------
246trial test_suite hello_world.py
247----------------------------------------------
248tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
249tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
250tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
251tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
252tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100253tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [test.py:[LINENR]]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200254---------------------------------------------------------------------
255trial test_suite PASS
256---------------------------------------------------------------------
257PASS: test_suite (pass: 1, skip: 5)
258 pass: hello_world.py (N.N sec)
259 skip: mo_mt_sms.py
260 skip: mo_sms.py
261 skip: test_error.py
262 skip: test_fail.py
263 skip: test_fail_raise.py
264- test with scenario
265cnf 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]]
266cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
267
268---------------------------------------------------------------------
269trial test_suite
270---------------------------------------------------------------------
271tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
272tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200273tst {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 +0200274tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200275tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]]
276tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]]
277tst {combining_scenarios='modifiers', scenario='foo'}: DBG: {conf={}, scenario='foo'} [test_suite↪{combining_scenarios='modifiers', scenario='foo'}] [suite.py:[LINENR]]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200278tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200279tst test_suite: DBG: Picked - _hash: a59640b8ba6a373552b24a6f9f65cadd2347bace
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200280 addr: 10.42.42.53
281 band: GSM-1800
282 ipa_unit_id: '7'
283 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200284 osmo_trx:
285 clock_reference: external
286 launch_trx: 'False'
287 trx_ip: 10.42.42.112
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200288 trx_list:
Pau Espin Pedrol58475512017-09-14 15:33:15 +0200289 - max_power_red: '3'
290 nominal_power: '10'
291 - max_power_red: '0'
292 nominal_power: '12'
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200293 type: osmo-bts-trx
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200294- _hash: c2feabd082c36a1cdeccb9a5237dfff7dbadb009
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200295 addr: 10.42.42.53
296 band: GSM-1800
297 ipa_unit_id: '7'
298 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200299 osmo_trx:
300 clock_reference: external
301 launch_trx: 'False'
302 trx_ip: 10.42.42.112
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200303 trx_list:
304 - nominal_power: '10'
305 - max_power_red: '1'
306 nominal_power: '12'
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200307 type: osmo-bts-trx
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200308- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
309 addr: 10.42.42.114
310 band: GSM-1800
311 ipa_unit_id: '1'
312 label: sysmoBTS 1002
313 type: sysmo
314 [resource.py:[LINENR]]
315tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
316tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
317 addr: 10.42.42.1
318 [resource.py:[LINENR]]
319tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
320tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
321 imsi: '901700000007801'
322 ki: D620F48487B1B782DA55DF6717F08FF9
323 label: m7801
324 path: /wavecom_0
325- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
326 imsi: '901700000007802'
327 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
328 label: m7802
329 path: /wavecom_1
330 [resource.py:[LINENR]]
331
332----------------------------------------------
333trial test_suite hello_world.py
334----------------------------------------------
335tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
336tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
337tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
338tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
339tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100340tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [test.py:[LINENR]]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200341---------------------------------------------------------------------
342trial test_suite PASS
343---------------------------------------------------------------------
344PASS: test_suite (pass: 1, skip: 5)
345 pass: hello_world.py (N.N sec)
346 skip: mo_mt_sms.py
347 skip: mo_sms.py
348 skip: test_error.py
349 skip: test_fail.py
350 skip: test_fail_raise.py
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200351- test with scenario and modifiers
352cnf 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]]
353cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
354tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
355tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
356tst {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]]
357tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
358tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]]
359tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]]
360tst {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]]
361tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200362tst test_suite: DBG: Picked - _hash: a59640b8ba6a373552b24a6f9f65cadd2347bace
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200363 addr: 10.42.42.53
364 band: GSM-1800
365 ipa_unit_id: '7'
366 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200367 osmo_trx:
368 clock_reference: external
369 launch_trx: 'False'
370 trx_ip: 10.42.42.112
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200371 trx_list:
372 - max_power_red: '3'
373 nominal_power: '10'
374 - max_power_red: '0'
375 nominal_power: '12'
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200376 type: osmo-bts-trx
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200377- _hash: c2feabd082c36a1cdeccb9a5237dfff7dbadb009
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200378 addr: 10.42.42.53
379 band: GSM-1800
380 ipa_unit_id: '7'
381 label: sysmoCell 5000
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200382 osmo_trx:
383 clock_reference: external
384 launch_trx: 'False'
385 trx_ip: 10.42.42.112
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200386 trx_list:
387 - nominal_power: '10'
388 - max_power_red: '1'
389 nominal_power: '12'
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200390 type: osmo-bts-trx
391- _hash: 07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9
392 addr: 10.42.42.114
393 band: GSM-1800
394 ipa_unit_id: '1'
395 label: sysmoBTS 1002
396 type: sysmo
397 [resource.py:[LINENR]]
398tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
399tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
400 addr: 10.42.42.1
401 [resource.py:[LINENR]]
402tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
403tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
404 imsi: '901700000007801'
405 ki: D620F48487B1B782DA55DF6717F08FF9
406 label: m7801
407 path: /wavecom_0
408- _hash: e1a46516a1fb493b2617ab14fc1693a9a45ec254
409 imsi: '901700000007802'
410 ki: 47FDB2D55CE6A10A85ABDAD034A5B7B3
411 label: m7802
412 path: /wavecom_1
413 [resource.py:[LINENR]]
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200414resources(test_suite)={'bts': [{'_hash': 'a59640b8ba6a373552b24a6f9f65cadd2347bace',
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200415 '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]',
416 'addr': '10.42.42.53',
417 'band': 'GSM-1800',
418 'ipa_unit_id': '7',
419 'label': 'sysmoCell 5000',
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200420 'osmo_trx': {'clock_reference': 'external',
421 'launch_trx': 'False',
422 'trx_ip': '10.42.42.112'},
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200423 'trx_list': [{'max_power_red': '3', 'nominal_power': '20'},
424 {'max_power_red': '0', 'nominal_power': '20'}],
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200425 'type': 'osmo-bts-trx'},
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200426 {'_hash': 'c2feabd082c36a1cdeccb9a5237dfff7dbadb009',
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200427 '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]',
428 'addr': '10.42.42.53',
429 'band': 'GSM-1800',
430 'ipa_unit_id': '7',
431 'label': 'sysmoCell 5000',
Pau Espin Pedrol0d455042018-08-27 17:07:41 +0200432 'osmo_trx': {'clock_reference': 'external',
433 'launch_trx': 'False',
434 'trx_ip': '10.42.42.112'},
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200435 'trx_list': [{'nominal_power': '20'},
436 {'max_power_red': '1', 'nominal_power': '20'}],
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200437 'type': 'osmo-bts-trx'},
438 {'_hash': '07d9c8aaa940b674efcbbabdd69f58a6ce4e94f9',
439 '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]',
440 'addr': '10.42.42.114',
441 'band': 'GSM-1800',
442 'ipa_unit_id': '1',
443 'label': 'sysmoBTS 1002',
444 'type': 'sysmo'}],
445 'ip_address': [{'_hash': 'cde1debf28f07f94f92c761b4b7c6bf35785ced4',
446 '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]',
447 'addr': '10.42.42.1'}],
448 'modem': [{'_hash': '19c69e45aa090fb511446bd00797690aa82ff52f',
449 '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]',
450 'imsi': '901700000007801',
451 'ki': 'D620F48487B1B782DA55DF6717F08FF9',
452 'label': 'm7801',
453 'path': '/wavecom_0'},
454 {'_hash': 'e1a46516a1fb493b2617ab14fc1693a9a45ec254',
455 '_reserved_by': 'test_suite-[ID_NUM]-[ID_NUM]',
456 'imsi': '901700000007802',
457 'ki': '47FDB2D55CE6A10A85ABDAD034A5B7B3',
458 'label': 'm7802',
459 'path': '/wavecom_1'}]}
460
461---------------------------------------------------------------------
462trial test_suite
463---------------------------------------------------------------------
464
465----------------------------------------------
466trial test_suite hello_world.py
467----------------------------------------------
468tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
469tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
470tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
471tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
472tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
473tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [test.py:[LINENR]]
474---------------------------------------------------------------------
475trial test_suite PASS
476---------------------------------------------------------------------
477PASS: test_suite (pass: 1, skip: 5)
478 pass: hello_world.py (N.N sec)
479 skip: mo_mt_sms.py
480 skip: mo_sms.py
481 skip: test_error.py
482 skip: test_fail.py
483 skip: test_fail_raise.py
Neels Hofmeyr3531a192017-03-28 14:30:28 +0200484
485- graceful exit.