blob: 3a129a3faa6cbf9f2798f1c004f5c9985b88a2b5 [file] [log] [blame]
Adam Israelfa329072018-09-14 11:26:13 -04001"""
2Test N2VC's ssh key generation
3"""
4import os
5import pytest
6from . import base
7import tempfile
8
9
10@pytest.mark.asyncio
11async def test_ssh_keygen(monkeypatch):
12 with tempfile.TemporaryDirectory() as tmpdirname:
13 monkeypatch.setitem(os.environ, "HOME", tmpdirname)
14
15 client = base.get_n2vc()
16
17 public_key = await client.GetPublicKey()
18 assert len(public_key)