Commit 147234b4 authored by chrissi^'s avatar chrissi^
Browse files

parker: do not override ssh-key

parent 301d111c
......@@ -82,22 +82,6 @@ def test_good_config_no_contact(target, in_good_config):
def test_good_config_autoupdater_enabled(target, in_good_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.config_mode
def test_good_config_set_ssh_pubkey(target, in_good_config, config):
with open(config["ssh_pubkey_file"]) as fh:
key = fh.read()
payload = {
"token": "",
"id.keys": "1",
"id.keys.1.keys": key
}
r = requests.post("http://192.168.1.1/cgi-bin/config/admin/remote", params=payload)
assert r.ok, "Could not place ssh key in web interface"
assert r.status_code == 200 , "Return code missmatch"
@pytest.mark.config_mode
def test_generated_wg_key(target, in_good_config):
command = target.get_driver("ShellDriver")
......
Supports Markdown
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