diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-06-04 12:18:41 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2020-06-05 13:47:18 +0000 |
commit | 33a15ff45fdd97aac87f73f24b7af65948753640 (patch) | |
tree | 4fc5b56a16f930ce0f8f51fa798ac2989f74dd7c /test/mocks/mass-pnf-sim/test_lifecycle.py | |
parent | 626f28619bbfb16fd5a2c23bb7002225886b39ae (diff) |
Drop shell wrapper for 'trigger_custom' action as well
Change-Id: I388038656505c6937e10ba9f65d70d0e6514e17b
Issue-ID: INT-1611
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, 4 insertions, 5 deletions
diff --git a/test/mocks/mass-pnf-sim/test_lifecycle.py b/test/mocks/mass-pnf-sim/test_lifecycle.py index 5ddb93943..d3b452bbd 100644 --- a/test/mocks/mass-pnf-sim/test_lifecycle.py +++ b/test/mocks/mass-pnf-sim/test_lifecycle.py @@ -120,16 +120,15 @@ def test_trigger_idempotence(args_trigger, caplog): assert 'Simulator started' not in caplog.text caplog.clear() -def test_trigger_custom(args_trigger_custom, caplog, capfd): +def test_trigger_custom(args_trigger_custom, caplog): MassPnfSim(args_trigger_custom).trigger_custom() - msg = capfd.readouterr() for instance in range(SIM_INSTANCES): instance_ip_offset = instance * 16 ip_offset = 2 assert f'Triggering pnf-sim-lw-{instance} instance:' in caplog.text - assert f'PNF-Sim IP: {str(ip_address(IPSTART) + ip_offset + instance_ip_offset)}' in msg.out - assert 'Simulator started' not in msg.out - assert "Cannot start simulator since it's already running" in msg.out + assert f'PNF-Sim IP: {str(ip_address(IPSTART) + ip_offset + instance_ip_offset)}' in caplog.text + assert 'Simulator started' not in caplog.text + assert "Cannot start simulator since it's already running" in caplog.text caplog.clear() def test_stop(args_stop, caplog): |