summaryrefslogtreecommitdiffstats
path: root/test/t/test_ssh_keygen.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:57:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:57:16 +0000
commit839f2a19145079d32e1d0ab5a0f31f9cd7c3afdf (patch)
treee8091b85221c46641c1a902e9e19ca72fd0d002f /test/t/test_ssh_keygen.py
parentAdding upstream version 1:2.13.0. (diff)
downloadbash-completion-upstream.tar.xz
bash-completion-upstream.zip
Adding upstream version 1:2.14.0.upstream/1%2.14.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/t/test_ssh_keygen.py')
-rw-r--r--test/t/test_ssh_keygen.py26
1 files changed, 20 insertions, 6 deletions
diff --git a/test/t/test_ssh_keygen.py b/test/t/test_ssh_keygen.py
index cc6ff4e..6e9953c 100644
--- a/test/t/test_ssh_keygen.py
+++ b/test/t/test_ssh_keygen.py
@@ -55,11 +55,15 @@ class TestSshKeygen:
assert not completion
@pytest.mark.complete("ssh-keygen -O ")
- def test_O(self, completion):
+ def test_bare_O(self, completion):
+ assert not completion
+
+ @pytest.mark.complete("ssh-keygen -s -O ")
+ def test_s_O(self, completion):
assert completion
assert any(x.endswith("=") for x in completion)
- @pytest.mark.complete("ssh-keygen -O force-command=bas")
+ @pytest.mark.complete("ssh-keygen -s -O force-command=bas")
def test_O_force_command(self, completion):
assert completion
assert not completion.startswith("force-command=")
@@ -68,18 +72,28 @@ class TestSshKeygen:
def test_O_unknown(self, completion):
assert not completion
- @pytest.mark.complete("ssh-keygen -O application=")
+ @pytest.mark.complete("ssh-keygen -t ed25519-sk -O application=")
def test_O_application(self, completion):
assert completion == "ssh:"
- @pytest.mark.complete("ssh-keygen -O application=s")
+ @pytest.mark.complete("ssh-keygen -t ed25519-sk -O application=s")
def test_O_application_s(self, completion):
assert completion == "sh:"
- @pytest.mark.complete("ssh-keygen -O application=ssh:")
+ @pytest.mark.complete("ssh-keygen -t ed25519-sk -O application=ssh:")
def test_O_application_ssh_colon(self, completion):
assert not completion
- @pytest.mark.complete("ssh-keygen -O application=nonexistent")
+ @pytest.mark.complete(
+ "ssh-keygen -t ed25519-sk -O application=nonexistent"
+ )
def test_O_application_nonexistent(self, completion):
assert not completion
+
+ @pytest.mark.complete("ssh-keygen -r -O ")
+ def test_r_O(self, completion):
+ assert completion
+
+ @pytest.mark.complete("ssh-keygen -Y -O ")
+ def test_Y_O(self, completion):
+ assert completion