def test_pubkey_passphrase_credential() -> None: cred = PubKeyCredential('cerulean', '/home/cerulean/.ssh/id2_rsa', 'kingfisher') assert cred.username == 'cerulean' assert cred.public_key == '/home/cerulean/.ssh/id2_rsa' assert cred.passphrase == 'kingfisher'
def test_passphrase() -> None: cred = PubKeyCredential('cerulean', '/home/cerulean/.ssh/id2_rsa', 'kingfisher') with SshTerminal('cerulean-test-ssh', 22, cred) as term: pass
def test_pubkey() -> None: cred = PubKeyCredential('cerulean', '/home/cerulean/.ssh/id1_rsa') with SshTerminal('cerulean-test-ssh', 22, cred) as term: pass
def test_pubkey_credential() -> None: cred = PubKeyCredential('cerulean', '/home/cerulean/.ssh/id1_rsa') assert cred.username == 'cerulean' assert cred.public_key == '/home/cerulean/.ssh/id1_rsa' assert cred.passphrase is None