blob: b792b57f82491724fd728cb2197daeee08f404f7 [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 Pedrolcbc72422017-09-14 15:55:49 +020040tst 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 Hofmeyr17c139e2017-04-12 02:42:02 +020064 addr: 10.42.42.114
65 band: GSM-1800
66 ipa_unit_id: '1'
67 label: sysmoBTS 1002
68 type: sysmo
Neels Hofmeyr31e83202017-06-06 19:44:32 +020069tst test_suite: Reserving 1 x ip_address (candidates: 3)
Neels Hofmeyr76d81032017-05-18 18:35:32 +020070tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
71 addr: 10.42.42.1
Neels Hofmeyr31e83202017-06-06 19:44:32 +020072tst test_suite: Reserving 2 x modem (candidates: 16)
Neels Hofmeyrcccbe592017-05-07 01:16:07 +020073tst test_suite: DBG: Picked - _hash: 19c69e45aa090fb511446bd00797690aa82ff52f
Neels Hofmeyr17c139e2017-04-12 02:42:02 +020074 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 Hofmeyr6ccda112017-06-06 19:41:17 +020083
84----------------------------------------------
85trial test_suite hello_world.py
86----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +020087tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]]
88tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]]
89tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]]
90tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]]
91tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +020092tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py]
93---------------------------------------------------------------------
94trial test_suite PASS
95---------------------------------------------------------------------
96PASS: 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 Hofmeyr3531a192017-03-28 14:30:28 +0200103
104- a test with an error
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200105
106---------------------------------------------------------------------
107trial test_suite
108---------------------------------------------------------------------
109
110----------------------------------------------
111trial test_suite test_error.py
112----------------------------------------------
Neels Hofmeyrd1bedb12017-05-07 03:02:23 +0200113tst 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 +0200114tst 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 +0100115tst test_error.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_error.py:[LINENR]] [test.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200116---------------------------------------------------------------------
117trial test_suite FAIL
118---------------------------------------------------------------------
119FAIL: 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 Hofmeyr1a7a3f02017-06-10 01:18:27 +0200123 FAIL: test_error.py (N.N sec) AssertionError: test_error.py:[LINENR]: assert False
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200124 skip: test_fail.py
125 skip: test_fail_raise.py
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200126
127- a test with a failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200128
129---------------------------------------------------------------------
130trial test_suite
131---------------------------------------------------------------------
132
133----------------------------------------------
134trial test_suite test_fail.py
135----------------------------------------------
Pau Espin Pedrol0ffb4142017-05-15 18:24:35 +0200136tst 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 +0200137tst 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 +0100138tst test_fail.py:[LINENR]: Test FAILED (N.N sec) [test_suitetest_fail.py:[LINENR]] [test.py:[LINENR]]
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200139---------------------------------------------------------------------
140trial test_suite FAIL
141---------------------------------------------------------------------
142FAIL: 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 Pedrol0ffb4142017-05-15 18:24:35 +0200149
150- a test with a raised failure
Neels Hofmeyr6ccda112017-06-06 19:41:17 +0200151
152---------------------------------------------------------------------
153trial test_suite
154---------------------------------------------------------------------
155
156----------------------------------------------
157trial test_suite test_fail_raise.py
158----------------------------------------------
Neels Hofmeyr1a7a3f02017-06-10 01:18:27 +0200159tst 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 +0100160tst 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 +0200161---------------------------------------------------------------------
162trial test_suite FAIL
163---------------------------------------------------------------------
164FAIL: 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 Hofmeyr1a7a3f02017-06-10 01:18:27 +0200170 FAIL: test_fail_raise.py (N.N sec) ExpectedFail: This failure is expected
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200171- test with half empty scenario
172cnf 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]]
173cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
174
175---------------------------------------------------------------------
176trial test_suite
177---------------------------------------------------------------------
178tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
179tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200180tst {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 +0200181tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200182tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]]
183tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]]
184tst {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 +0200185tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200186tst 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 Pedrol0b302792017-09-10 16:33:10 +0200210 addr: 10.42.42.114
211 band: GSM-1800
212 ipa_unit_id: '1'
213 label: sysmoBTS 1002
214 type: sysmo
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200215 [resource.py:[LINENR]]
216tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
217tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
218 addr: 10.42.42.1
219 [resource.py:[LINENR]]
220tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
221tst 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----------------------------------------------
234trial test_suite hello_world.py
235----------------------------------------------
236tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
237tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
238tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
239tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
240tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100241tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [test.py:[LINENR]]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200242---------------------------------------------------------------------
243trial test_suite PASS
244---------------------------------------------------------------------
245PASS: 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
253cnf 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]]
254cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
255
256---------------------------------------------------------------------
257trial test_suite
258---------------------------------------------------------------------
259tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
260tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200261tst {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 +0200262tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
Pau Espin Pedrolaab56922018-08-21 14:58:29 +0200263tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]]
264tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]]
265tst {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 +0200266tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200267tst test_suite: DBG: Picked - _hash: 076ff06a4b719e61779492d3fb99f42a6635bb72
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200268 addr: 10.42.42.53
269 band: GSM-1800
270 ipa_unit_id: '7'
271 label: sysmoCell 5000
272 trx_list:
Pau Espin Pedrol58475512017-09-14 15:33:15 +0200273 - max_power_red: '3'
274 nominal_power: '10'
275 - max_power_red: '0'
276 nominal_power: '12'
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200277 trx_remote_ip: 10.42.42.112
278 type: osmo-bts-trx
Pau Espin Pedrolcbc72422017-09-14 15:55:49 +0200279- _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 Pedrol0b302792017-09-10 16:33:10 +0200290- _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]]
297tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
298tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
299 addr: 10.42.42.1
300 [resource.py:[LINENR]]
301tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
302tst 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----------------------------------------------
315trial test_suite hello_world.py
316----------------------------------------------
317tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
318tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
319tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
320tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
321tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
Pau Espin Pedrolfd5de3d2017-11-09 14:26:35 +0100322tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [test.py:[LINENR]]
Pau Espin Pedrol0b302792017-09-10 16:33:10 +0200323---------------------------------------------------------------------
324trial test_suite PASS
325---------------------------------------------------------------------
326PASS: 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 Pedrolaab56922018-08-21 14:58:29 +0200333- test with scenario and modifiers
334cnf 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]]
335cnf ResourcesPool: DBG: Found path state_dir as [PATH]/selftest/suite_test/test_work/state_dir [config.py:[LINENR]]
336tst test_suite: reserving resources in [PATH]/selftest/suite_test/test_work/state_dir ... [suite.py:[LINENR]]
337tst test_suite: DBG: {combining='resources'} [suite.py:[LINENR]]
338tst {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]]
339tst {combining_scenarios='resources', scenario='foo'}: [RESOURCE_DICT]
340tst test_suite: DBG: {combining='modifiers'} [suite.py:[LINENR]]
341tst {combining_scenarios='modifiers'}: DBG: {definition_conf={}} [test_suite↪{combining_scenarios='modifiers'}] [suite.py:[LINENR]]
342tst {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]]
343tst test_suite: Reserving 3 x bts (candidates: 6) [resource.py:[LINENR]]
344tst 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]]
374tst test_suite: Reserving 1 x ip_address (candidates: 3) [resource.py:[LINENR]]
375tst test_suite: DBG: Picked - _hash: cde1debf28f07f94f92c761b4b7c6bf35785ced4
376 addr: 10.42.42.1
377 [resource.py:[LINENR]]
378tst test_suite: Reserving 2 x modem (candidates: 16) [resource.py:[LINENR]]
379tst 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]]
390resources(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---------------------------------------------------------------------
434trial test_suite
435---------------------------------------------------------------------
436
437----------------------------------------------
438trial test_suite hello_world.py
439----------------------------------------------
440tst hello_world.py:[LINENR]: hello world [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
441tst hello_world.py:[LINENR]: I am 'test_suite' / 'hello_world.py:[LINENR]' [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
442tst hello_world.py:[LINENR]: one [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
443tst hello_world.py:[LINENR]: two [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
444tst hello_world.py:[LINENR]: three [test_suitehello_world.py:[LINENR]] [hello_world.py:[LINENR]]
445tst hello_world.py:[LINENR] Test passed (N.N sec) [test_suitehello_world.py] [test.py:[LINENR]]
446---------------------------------------------------------------------
447trial test_suite PASS
448---------------------------------------------------------------------
449PASS: 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 Hofmeyr3531a192017-03-28 14:30:28 +0200456
457- graceful exit.