diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-05-25 03:56:58 -0700 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2020-05-25 14:06:11 +0000 |
commit | ee15fa4d68876e79e809ba6e11341e81e41fc047 (patch) | |
tree | 966410dbe839e38c083cdb89834ffe555a1b62da /test/mocks/mass-pnf-sim/test_lifecycle.py | |
parent | b299db21973b0f73e0de20004ec8f77c537d6c0d (diff) |
Add functional test for 'clean' subcommand
Change-Id: Iac2b7d5f912b22c6c4b342e350a71ee6ad8b1fbb
Issue-ID: INT-1577
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mocks/mass-pnf-sim/test_lifecycle.py b/test/mocks/mass-pnf-sim/test_lifecycle.py index 9c5ff89be..dc1160c75 100644 --- a/test/mocks/mass-pnf-sim/test_lifecycle.py +++ b/test/mocks/mass-pnf-sim/test_lifecycle.py @@ -126,3 +126,9 @@ def test_stop_idempotence(args_stop, caplog, capfd): assert f'Stopping pnf-sim-lw-{instance} instance:' in caplog.text assert 'ROP_file_creator.sh already not running' in msg.out assert 'Simulator containers are already down' in msg.out + caplog.clear() + +def test_clean(args_clean): + m = MassPnfSim(args_clean) + m.clean() + assert not glob(f"{m.sim_dirname_pattern}*") |