Commit c2434675 authored by chrissi^'s avatar chrissi^
Browse files

parker/tests: remove system config from tests

parent 358c923e
......@@ -51,18 +51,6 @@ def ipv6_link_local(target):
return match[0]
uci_should_persist = [
("wireless.wan_radio0", "wifi-iface"),
("wireless.wan_radio0.disabled", "0"),
("wireless.wan_radio0.macaddr", "72:4c:49:0a:78:eb"),
("wireless.wan_radio0.network", "wan"),
("wireless.wan_radio0.encryption", "psk2"),
("wireless.wan_radio0.device", "radio0"),
("wireless.wan_radio0.mode", "ap"),
("wireless.wan_radio0.key", "stehtinderinfoecke"),
("wireless.wan_radio0.ssid", "meinwlan"),
]
def assert_web(url, text_to_find):
r = requests.get(url)
assert r.status_code == 200, "Trying to get url {} failed with status code {}. Was looking for text '{}' there...".format(url, r.status_code, text_to_find)
......@@ -160,8 +148,8 @@ def test_good_running_ssh(target, in_good_running, config, ipv6_link_local):
("wireless.radio0.supported_rates", "'2000'", False),
("wireless.radio0.basic_rate", "'1000'", False),
("wireless.radio0.basic_rate", "'2000'", False)
] + [x + (True,) for x in uci_should_persist])
def test_good_running(target, in_good_running, uci_key, uci_value, should_be_set):
] )
def test_good_running_uci_config(target, in_good_running, uci_key, uci_value, should_be_set):
command = target.get_driver("ShellDriver")
stdout, _, _ = command.run("uci show {}".format(uci_key))
......
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