1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

test_ssh_authorized_keys

This commit is contained in:
Ivan Mikushin
2015-05-08 16:23:12 +05:00
parent 070162eb55
commit 1f5b50f489
2 changed files with 11 additions and 4 deletions

View File

@@ -31,9 +31,9 @@ def test_system_boot(qemu):
@pytest.mark.timeout(60)
def test_run_system_container(qemu):
assert qemu.returncode is None
assert qemu is not None
u.wait_for_ssh()
ssh = subprocess.Popen(
'./scripts/ssh sudo system-docker run --rm busybox /bin/true', shell=True,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)

View File

@@ -13,8 +13,15 @@ def qemu(request):
@pytest.mark.timeout(40)
def test_check_whats_going_on(qemu):
assert qemu.returncode is None
def test_ssh_authorized_keys(qemu):
assert qemu is not None
u.wait_for_ssh(ssh_command)
assert True
@pytest.mark.timeout(40)
def test_rancher_environment(qemu):
assert qemu is not None
u.wait_for_ssh(ssh_command)
ssh = subprocess.Popen(