diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-06-18 12:42:58 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-06-18 12:42:58 +0200 |
commit | 10ed88c266c0305d0b79c013a80b9dde38b0a7d7 (patch) | |
tree | c850d76841bd5f5cc2a58b478ee9ec34dbb2080d /test/mocks/mass-pnf-sim/test_lifecycle.py | |
parent | d35d3b8c0ca5784e0ffd7cebad0fa68631f767ab (diff) |
Start/stop the 3GPP measurements file generator at simulator start/stop
Change-Id: I6976168afc7cad2a44333e33632775dbb63aec12
Issue-ID: INT-1630
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/mocks/mass-pnf-sim/test_lifecycle.py')
-rw-r--r-- | test/mocks/mass-pnf-sim/test_lifecycle.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/mocks/mass-pnf-sim/test_lifecycle.py b/test/mocks/mass-pnf-sim/test_lifecycle.py index 0452c3298..1309ef077 100644 --- a/test/mocks/mass-pnf-sim/test_lifecycle.py +++ b/test/mocks/mass-pnf-sim/test_lifecycle.py @@ -41,10 +41,6 @@ def test_bootstrap(args_bootstrap, caplog): sim_dirname_pattern = MassPnfSim().sim_dirname_pattern assert len(glob(f"{sim_dirname_pattern}*")) == SIM_INSTANCES - # Verify ROP_file_creator.sh running - for instance in range(SIM_INSTANCES): - assert f"ROP_file_creator.sh {instance}" in popen('ps afx').read() - # Verify simulators configs content is valid start_port = 2000 for instance in range(SIM_INSTANCES): @@ -79,6 +75,10 @@ def test_start(args_start, caplog): assert f'Starting pnf-sim-lw-{instance} instance:' in caplog.text assert f'PNF-Sim IP: {str(ip_address(IPSTART) + ip_offset + instance_ip_offset)}' in caplog.text assert 'Starting simulator containers' in caplog.text + assert f"ROP_file_creator.sh {instance} successfully started" in caplog.text + assert f"3GPP measurements file generator for instance {instance} is already running" not in caplog.text + # Verify ROP_file_creator.sh running + assert f"ROP_file_creator.sh {instance}" in popen('ps afx').read() caplog.clear() def test_start_status(args_status, docker_containers, caplog): @@ -95,6 +95,7 @@ def test_start_idempotence(args_start, caplog): MassPnfSim().start(args_start) assert 'containers are already up' in caplog.text assert 'Starting simulator containers' not in caplog.text + assert f"is already running" in caplog.text caplog.clear() def test_trigger(args_trigger, caplog): |