aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/MassPnfSim.py
AgeCommit message (Collapse)AuthorFilesLines
2020-05-25Drop shell 'rm' command and use 'rmtree' native Python routineBartek Grzybowski1-5/+6
Change-Id: Id5487723b8eb6fdc065ffe712907f9a715f610c5 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-19Iterate over all bootstrapped instances by defaultBartek Grzybowski1-10/+31
Commands that support '--count' option now iterate over all autodetected bootstrapped simulator instances by default, not just the first one. Change-Id: Ia5703047447b4da98d775636fe38911f81520848 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-19Add a method to enumerate bootstrapped simulator instancesBartek Grzybowski1-0/+6
Change-Id: Ifbafc748a47b1db3fabfb337b44a66523c9ef80f Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-18Make the actions decorator a static method in a subclassBartek Grzybowski1-26/+29
Change-Id: I2bd702ff1d92c80510204cb4666f6c3db7fa62e0 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-18Create a boilerplate decorator for MassPnfSim class actionsBartek Grzybowski1-17/+28
Change-Id: Ia095a608d204e3da6dae101afa04f2e66a9bceeb Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-15Run Maven directlyBartek Grzybowski1-3/+7
Maven will be run directly from MassPnfSim module, not through wrapper shell script. Change-Id: Ib2936391ace3cbd31c3b5bba4ad6d776cfb890d8 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-15Leverage internal shell runner in bootstrap modeBartek Grzybowski1-16/+9
Use native python modules for file operations Change-Id: I1ca505f9a891c722c2aace118536fa470bf50b35 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-15Add internal method for shell runner in MassPnfSim moduleBartek Grzybowski1-46/+29
Since now if module is called in 'debug' mode shell script is run with trace. Change-Id: I7bddf6c0583c4b56d4a0c3b5eeb6a78af561891f Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-15Make the maven image build an independent stepBartek Grzybowski1-0/+4
This improves testability as in CI the image build is done by relevant CI runner from provided POM file so building from script is redundant. Updated doc in regard on how to build the image locally. Change-Id: I7666bc638996c855fed139ee46fcc80379a02f3b Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-12Get the routine name to call with getattrBartek Grzybowski1-1/+1
Each subcommand has a corresponding method in MassPnfSim class hence it can be called directly by it's name. Change-Id: Id7139a5f96cceac89559bd68d89085130703f4bd Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-12Move CLI options processing to module levelBartek Grzybowski1-0/+64
Change-Id: Ie4c379480e2c641285507173387a770db63458f0 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-11Improve code testabilityBartek Grzybowski1-0/+157
A module is created with specific class methods to perform particular simulator services' lifecycle operations. Change-Id: I467360ab304a00f049bf53c3958e42f445f2d75b Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>