mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added negative test case for --list-sources option
Negative test test_append_arguments_to_list_sources added to --list-sources Signed-off-by: Kaleemullah Siddiqui <ksiddiqu@redhat.com> Reviewed-By: Mohammad Rizwan <myusuf@redhat.com>
This commit is contained in:
@@ -1590,3 +1590,16 @@ class TestIpaHealthCLI(IntegrationTest):
|
||||
ensure ABI compatibility.
|
||||
"""
|
||||
self.master.run_command(["pki-healthcheck"])
|
||||
|
||||
def test_append_arguments_to_list_sources(self):
|
||||
"""
|
||||
Verify that when arguments are specified to --list-sources
|
||||
option, error is displayed on the console.
|
||||
"""
|
||||
cmd = self.base_cmd + ["--list-sources", "source"]
|
||||
result = self.master.run_command(cmd, raiseonerr=False)
|
||||
assert result.returncode == 2
|
||||
assert (
|
||||
"ipa-healthcheck: error: unrecognized arguments: source"
|
||||
in result.stderr_text
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user