diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-24 14:31:23 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-06-24 17:31:29 +0000 |
commit | 99c81fbe8fa0d6dd257c00a8e7fe1c5e1a15ca72 (patch) | |
tree | 7e8a8f89e20d89a67556a6140f24b474b3ad19ee /smoketest/scripts/cli/base_vyostest_shim.py | |
parent | 316a50a5c7b2cf8f3853d61dc2e3c0a64d66fb20 (diff) | |
download | vyos-1x-99c81fbe8fa0d6dd257c00a8e7fe1c5e1a15ca72.tar.gz vyos-1x-99c81fbe8fa0d6dd257c00a8e7fe1c5e1a15ca72.zip |
smoketest: T6510: ensure one cannot delete the current user in "system login"
(cherry picked from commit 4c7719efa27d9d2966b70b924c90aa2c90022388)
Diffstat (limited to 'smoketest/scripts/cli/base_vyostest_shim.py')
-rw-r--r-- | smoketest/scripts/cli/base_vyostest_shim.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py index efaa74fe0..4bcc50453 100644 --- a/smoketest/scripts/cli/base_vyostest_shim.py +++ b/smoketest/scripts/cli/base_vyostest_shim.py @@ -74,6 +74,11 @@ class VyOSUnitTestSHIM: print('del ' + ' '.join(config)) self._session.delete(config) + def cli_discard(self): + if self.debug: + print('DISCARD') + self._session.discard() + def cli_commit(self): self._session.commit() # during a commit there is a process opening commit_lock, and run() returns 0 |