From b3aa0a269cd9aaeceb4c5fb74ce11b6bf8eb71c3 Mon Sep 17 00:00:00 2001 From: Mohammad Al Shakoush Date: Tue, 17 Dec 2024 20:44:04 +0100 Subject: [PATCH] Fix tests? --- tests/test_ssh_proto.py | 1 + tests/test_ssh_user_auth_otp.py | 1 + tests/test_ssh_user_auth_pubkey.py | 2 ++ 3 files changed, 4 insertions(+) diff --git a/tests/test_ssh_proto.py b/tests/test_ssh_proto.py index 3d5ecb05..62807092 100644 --- a/tests/test_ssh_proto.py +++ b/tests/test_ssh_proto.py @@ -48,6 +48,7 @@ def setup_user_and_target( api.create_public_key_credential( user.id, sdk.NewPublicKeyCredential( + label="Public Key", openssh_public_key=open("ssh-keys/id_ed25519.pub").read().strip(), ), ) diff --git a/tests/test_ssh_user_auth_otp.py b/tests/test_ssh_user_auth_otp.py index 4e819236..7cb429c5 100644 --- a/tests/test_ssh_user_auth_otp.py +++ b/tests/test_ssh_user_auth_otp.py @@ -35,6 +35,7 @@ def test_otp( api.create_public_key_credential( user.id, sdk.NewPublicKeyCredential( + label="Public Key", openssh_public_key=open("ssh-keys/id_ed25519.pub").read().strip() ), ) diff --git a/tests/test_ssh_user_auth_pubkey.py b/tests/test_ssh_user_auth_pubkey.py index bb5b533a..9359d2a6 100644 --- a/tests/test_ssh_user_auth_pubkey.py +++ b/tests/test_ssh_user_auth_pubkey.py @@ -29,6 +29,7 @@ def test_ed25519( api.create_public_key_credential( user.id, sdk.NewPublicKeyCredential( + label="Public Key", openssh_public_key=open("ssh-keys/id_ed25519.pub").read().strip() ), ) @@ -104,6 +105,7 @@ def test_rsa( api.create_public_key_credential( user.id, sdk.NewPublicKeyCredential( + label="Public Key", openssh_public_key=open("ssh-keys/id_rsa.pub").read().strip() ), )