AgeCommit message (Collapse)AuthorFilesLines
2019-04-30wiip...zecke/more-testsHolger Hans Peter Freyther2-1/+3
Change-Id: Ibac155a9a4b71d1890b6cc5b028ecac7f4c9a7ae
2019-04-30hack.. give it more time...Holger Hans Peter Freyther1-1/+1
Change-Id: I181b54c2b717a95f79fc343a4bc307b2185b275a
2019-04-30virtual: Make mass tests be able to activate themselvesHolger Hans Peter Freyther5-18/+41
We will need to enable/disable generation of lua script code depending on the subscriber and mass test. Change-Id: Ide4d788543d910356efe9f61e789b3975f7bc558
2019-04-30virtual: Make it possible to add tests to the ms driverHolger Hans Peter Freyther3-33/+82
Introduce an Executor that forwards all testcase related methods to a list of testcases. Allow to instantiate them by name and use the result to access the statistics. Change-Id: Ia65ee53987e92b24e6b8c40e1376bc74dc260180
2019-04-30virtual: Introduce a base class for test casesHolger Hans Peter Freyther3-6/+38
Introduce a base class with the intended life cycle and use it. Change-Id: I97968fb02436d5ac8248fc8020539e1af547b030
2019-04-30virtual: Move the starter code into the starter moduleHolger Hans Peter Freyther4-164/+167
There is nothing location update specific in the file. Let's move it into the starter file. Change-Id: I0cd5705eaf53a14523feacece9446331a53b3e59
2019-04-30virtual: Separate starting virtphy/mobile from the testHolger Hans Peter Freyther3-79/+114
Move the starting code out of the Update Location "test". In the mid term we can have a SMS test run in addition to waiting the Update Location tests. A mass-test testcase will have a life-cycle of: * Creation * Configure (number of subscribers, probably all subs) * Pre-Start trigger (same as configure so it can be omitted) * Post-Start (all processes run) * Query if the test has completed The next step is an actual implementation to send SMS. Change-Id: Ie15f5123775d11dd44243b2741d047ed93f318f9
2019-04-30ms_driver: Catch up with the new MS baseclassHolger Hans Peter Freyther1-2/+2
Change-Id: Id8de8b3ee76b515c49e5ea52acaa326a2283b0e1
2019-04-28virtual: Have a single result class that can store dataHolger Hans Peter Freyther4-37/+69
We want to have LU, SMS and other tests run at the same time. Begin by creating a single result where testcases can store additional data. Move the stats code into the UL test case handling and out of the suite. Change-Id: Ie99351bee1515de8cf6870467f08256a53701907
2019-04-28virtual: Unify the lua script into a single oneHolger Hans Peter Freyther3-2/+10
In the quest to support multiple testcases we will use a single script. Parts can be enabled/disabled depending on which tests we want/need to run. Change-Id: I8a093671173976eba9215c00a7aea0f6cab467c6
2019-04-28virtual: The completion ratio is success / success+failureHolger Hans Peter Freyther2-2/+2
Fix the stats code to calculate the real completion ratio. Change-Id: I1b8f32dfbe8faa4c255a8d2d9806303fc8e5933b
2019-04-24BTS_Tests.cfg.tmpl rename BTS_Tests.mp_bb_trxc_ipPhilipp Maier1-1/+1
The module parameter BTS_Tests.mp_bb_trxc_ip got renamed to +BTS_Tests.mp_bts_trxc_ip. Lets change the config template accordingly. Change-Id: I49da16361a4f770852e7046edd457ad0101306bb Related: OS#3863
2019-04-24BTS_Tests.cfg.tmpl: rename BTS_Tests.mp_bb_trxc_portPhilipp Maier1-1/+1
The module parameter BTS_Tests.mp_bb_trxc_port got renamed to BTS_Tests.mp_bts_trxc_port. Lets change the config template accordingly. Change-Id: I776a27642a5024919fe9f882a3d695246a8ce0f7 Related: OS#3863
2019-04-18resources.conf.prod: Update config to use new smart socket HW setupPau Espin Pedrol1-6/+6
Change-Id: I5cfce927569b6a2d8ca57d3394116bbcff3eee56
2019-04-12powersupply: Add support for Intellinet PDUPau Espin Pedrol3-2/+103
Based on original pdutool code from Joachim Steiger. Change-Id: Iab4f7aec1c50f47da4cd734441bb36fa09d171a3
2019-04-08Revert "modem: workaround ofono crash"Pau Espin Pedrol1-1/+0
We already updated our ofono branch to current master (after 1.28), and this fix is not longer required, as stated in ticket OS#3064. Related: OS#3064 This reverts commit f8d12196f05b20aa28b3103db26ea37ba6849362. Change-Id: I884f6d4f3df4f3b4e2ac05e4dba2ad8704697521
2019-04-05processes: Fix kill of processes run under sudoPau Espin Pedrol1-0/+11
sudo drops forwarding of signals sent by processes of the same process group, which means by default will drop signals from parent and children processes. By moving it to another group, we will later be able to kill it. Note: sudo documentation is wrong, since it states it only drops signals from children. See following link for more information: https://stackoverflow.com/questions/34337840/cant-terminate-a-sudo-process-created-with-python-in-ubuntu-15-10 Change-Id: I25990234aaa496c501ff45ad7f7fd549d6f188da
2019-04-05suites: gprs: Keep terminating all iperf3 processes if one fails to terminatePau Espin Pedrol1-1/+4
Change-Id: I0cc183529988463800e0d40c8cf3a4cea041031c
2019-04-04process: Early return during process termination if no proc runningPau Espin Pedrol3-57/+8
This avoids extra unneeded logging about killing with signal when actually no signal is being sent. Change-Id: I5b5dd78fe3301d8eef2ab93da3b37029268ae198
2019-04-04suite: Make _processes an empty list during init timePau Espin Pedrol1-13/+10
It simplifies the code because we don't need to check if it is a list or not. Change-Id: I634901a1f4ba3a6b7294666012ea679ae148ff08
2019-04-04modem: Move modem iface to its netns before using itPau Espin Pedrol3-0/+34
We used to do that once after ofono startup for all iface (modem-netns-setup.py), but then if a modem crashes the interface is re-created on the default netns, and tests fail until manual re-run of modem-netns-setup.py. This way now we always make sure the iface is moved to the expected netns before it is used. Related: OS#3881 Change-Id: I506309c424aa46684c4516a1a0217343ecbf32c6
2019-04-04util: use launch_sync API instead of manual waitPau Espin Pedrol1-12/+3
The API is available so no need to manually craft all steps in there. Change-Id: I4afedb185f6e864929155981e8a2ec2df90110c3
2019-04-03process: Prevent NetNSProcess alive forever after SIGKILLPau Espin Pedrol2-1/+42
NetNSProcess are run in the following process tree: osmo-gsm-tester -> sudo -> bash (osmo-gsm-tester_netns_exec.sh) -> tcpdump. Lots of osmo-gsm-tester_netns_exec.sh scripts with tcpdump child process were spotted in prod setup of osmo-gsm-tester. Apparently that happens because sometimes tcpdump doesn't get killed in time with SIGTERM and SIGINT, and as a result SIGKILL is sent by osmo-gsm-tester as usual termination procedure. When SIGKILL is sent, the parent sudo process is instantly killed without possibility to forward the signal to its children, leaving the bash script and tcpdump alive. In order to fix it, catch SIGKILL for this process class and send instead SIGUSR1. Then, modify the script under sudo to handle SIGUSR1 as if it was a SIGKILL towards its children to make sure child process in the netns terminates. Change-Id: I2bf389c47bbbd75f46af413e7ba897be5be386e1
2019-04-03process: add signal to NetNSProcess kill pathPau Espin Pedrol1-1/+1
This allows to easily differentiate different calls to kill in order to terminate the process when looking at the logs. Change-Id: Ida88f2674b0ed1802f20c519aa4e3cbe81e0def8
2019-03-27default-suites.conf: Add tests for OC2GPau Espin Pedrol1-0/+18
Change-Id: I5599c86565ebb6d7d6931d36fd49e57fe2020d1f
2019-03-27ttcn3: Enable tests against O2CGPau Espin Pedrol2-0/+2
Change-Id: Ie42f9144c6fa5cbee71e3f0b97d60c295f5f531e
2019-03-27Integrate osmo-{bts,pcu}-oc2gPau Espin Pedrol8-1/+334
Change-Id: I446e27039f75e63c2870d751c190a4fd76947000
2019-03-25contrib: jenkins-build-osmo-pcu-oc2g: Enable oc2gbts-phyPau Espin Pedrol1-1/+7
Depends on osmo-pcu Change-Id I7cd89a549c9463e81893ca7dd925299f728e4453. Change-Id: I1384f4adeca7583e48dd94fcb09a1b58d108f1de
2019-03-15contrib: Use proper SDK for OC2G buildsPau Espin Pedrol2-12/+12
Binaries produced by sysmobts SDK are not compatible with OC2G. Change-Id: I5adde9cf8a5f84cfc4b6fc4d4def3836444929ec
2019-03-07nitb_netreg_mass: Provide 100 subscriberszecke/testHolger Hans Peter Freyther2-2/+180
Change-Id: I386885f4179d4fc2df23cc48cd1eda850b5a990b
2019-03-07nitb_netreg_mass: Add code to declare a run successful/failureHolger Hans Peter Freyther3-7/+71
Change-Id: If26047f0635db8c7209af143fbd1da4c9b2312d1
2019-03-07nitb_netreg_mass: Allow a suite to configure num subscriberHolger Hans Peter Freyther7-65/+80
Remove hardcoded configuration and replace it with a reservation in the suite. Change-Id: Ic9fd560c2924731e4fd6eea5aaf3ad565cb4ef52
2019-03-07resource: Add a mobile resource for the virtual testHolger Hans Peter Freyther5-1/+58
Add a new resource and make a reservation in the suite. Change-Id: Ic26aa63cad62323bb85f952640672eb28af0eadc
2019-03-06resources.conf.prod: Add dev_args to select specific Lime devicePau Espin Pedrol1-0/+1
Change-Id: I6ef234edb06031644758174e93a9d3817d0acc1f
2019-03-05Log signals from VoiceCall dbus objectsPau Espin Pedrol1-8/+54
Change-Id: I0def02b9063f75ec32c8b9382bdb12d65e1fb9eb
2019-03-05resource: Introduce a base class for the modemHolger Hans Peter Freyther2-16/+56
Extract IMSI, KI and authentication algorithm into a base class. Change-Id: Id547cdcc241a307a2ea59b5fbac6b8d7a9d95639
2019-03-05resource: Use a factory to initiate a modemHolger Hans Peter Freyther2-2/+15
Change-Id: I4baa791c92196cda477b2d969d4f67dfbe1152af
2019-03-05Revert "nitb_netreg_mass: Add code to declare a run successful/failure"Holger Freyther3-71/+7
This reverts commit b4ad8d72431df2336b9c7fbc6eb9597daa80a35c. Reason for revert: There was a true dependency on earlier changes (len(mobiles)). Rollback until the resource configuration is merged. Change-Id: If0f5e24cec2f0d1d144b464180b341cacbdf0ebb
2019-03-05process: Make killing processes non-sequentialHolger Hans Peter Freyther2-3/+129
Change-Id: Icf1ac6774ea11880542012fd6c6ac73302bb74f5
2019-03-05nitb_netreg_mass: Add code to declare a run successful/failureHolger Hans Peter Freyther3-7/+71
Change-Id: I49a821e8e4656466259e519ef901726cbb76ef86
2019-03-05resource: Introduce a type attribute to the resource definitionHolger Hans Peter Freyther1-0/+1
Change-Id: Ie1fd10ec878311b7347118badb1b9dce5b49e976
2019-03-04process: Make sending signals (kill) externally visibleHolger Hans Peter Freyther1-9/+9
Change-Id: I87bba8a8c467ba5936e0b6604d8abb9432e5e7a8
2019-03-04process: Speed-up terminating lots of processes by batching itHolger Hans Peter Freyther2-10/+38
Introduce a strategy to terminate processes and begin with an implementation for parallel (that has no degree of parallelism right now). Change-Id: I7dd4a7e26aca758198aa08a434eaf5f3f5af632d
2019-02-27pyflakes: Rename local variable to not shadow importHolger Hans Peter Freyther1-2/+2
Change-Id: Ib70130dbbeeeb9813eaea707bf66f1db91088b92
2019-02-27pyflakes: Remove occurrences of using undefined variablesHolger Hans Peter Freyther2-6/+1
Mention the attribute right away and remove a method that looks to have been broken (more vs. more_rules). Change-Id: Iba18a96ff804780e66c69b459e112f9d42b7b2ff
2019-02-27pyflakes: Remove assigned but unread variablesHolger Hans Peter Freyther4-11/+8
Change-Id: Ie257ac051739ea6f846d1aac2c8f778638b5f8a6
2019-02-27pyflakes: Remove imports of unused modulesHolger Hans Peter Freyther9-18/+7
Change-Id: I7496030e5857078cd66a36a5e46c9a50217ce6e3
2019-02-23ms_driver: Rename method to hopefully be more clearHolger Hans Peter Freyther1-2/+2
This is finding min/max in a dataset. Call it like this and update the caller. Change-Id: Ic7f5cd34639f897e460ca1edcb4f9b6df44683e9
2019-02-21contrib: Add script to build osmo-bts and osmo-pcu for oc2gPau Espin Pedrol2-0/+55
Change-Id: I7cc8937fb3e6c5d74b56cb049afb293b0b7ed25e
2019-02-21jenkins: Fix the test for journalctl if it isn't presentHolger Hans Peter Freyther1-1/+1
test -x for an empty string is still true. Check if the result of command is empty or not. It seems to work for the negative case now. Change-Id: I7e4326df155dae776481bf7824694b3fb47abcad