Commit c5b56407 authored by chrissi^'s avatar chrissi^

test_new_config_ssh: Add missing fixture

This test has probably never worked since
d3c634f4.
Signed-off-by: chrissi^'s avatarChris Fiege <chris@tinyhost.de>
parent 7945e977
......@@ -477,8 +477,22 @@ def test_new_config_autoupdater_enabled(target, in_new_config):
assert_web("http://192.168.1.1/cgi-bin/config/admin/autoupdater", 'value="1" id="id.1.1.enabled" name="id.1.1.enabled" checked="checked"')
@pytest.mark.flaky(reruns=10, reruns_delay=10)
def test_new_config_ssh(target, in_new_config):
r = subprocess.run(["ssh", "-o", "UserKnownHostsFile=/dev/null", "-o", "StrictHostKeyChecking=no", "-o", "PreferredAuthentications=publickey", "-i", config["ssh_key_file"], config["ssh_connect_host_config"], "echo 1"])
def test_new_config_ssh(target, in_new_config, config):
r = subprocess.run(
[
"ssh",
"-o",
"UserKnownHostsFile=/dev/null",
"-o",
"StrictHostKeyChecking=no",
"-o",
"PreferredAuthentications=publickey",
"-i",
config["ssh_key_file"],
config["ssh_connect_host_config"],
"echo 1"
]
)
assert r.returncode == 0, "SSH connection during config mode failed"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment