blob: 3a129a3faa6cbf9f2798f1c004f5c9985b88a2b5 [file] [log] [blame]
"""
Test N2VC's ssh key generation
"""
import os
import pytest
from . import base
import tempfile
@pytest.mark.asyncio
async def test_ssh_keygen(monkeypatch):
with tempfile.TemporaryDirectory() as tmpdirname:
monkeypatch.setitem(os.environ, "HOME", tmpdirname)
client = base.get_n2vc()
public_key = await client.GetPublicKey()
assert len(public_key)