feat: name no warnings and report no package proxy (0.5.0)
CI / test (3.10) (push) Failing after 19s
CI / test (3.11) (push) Failing after 17s
CI / test (3.12) (push) Failing after 18s
CI / test (3.10) (pull_request) Failing after 18s
CI / test (3.11) (pull_request) Failing after 17s
CI / test (3.12) (pull_request) Failing after 19s
CI / test (3.10) (push) Failing after 19s
CI / test (3.11) (push) Failing after 17s
CI / test (3.12) (push) Failing after 18s
CI / test (3.10) (pull_request) Failing after 18s
CI / test (3.11) (pull_request) Failing after 17s
CI / test (3.12) (pull_request) Failing after 19s
napalm-linux 0.9.0 names no warnings (netOrk #1111), so the override that kept the inherited get_device_warnings from asking for updates goes. The package proxy it now reports is switched off with the template that sets it: QTS has no apt. Requires napalm-linux 0.9.0.
This commit is contained in:
1 parent
375530ac1c
commit
a97c460cc3
3 files changed
+13
-14
No files matched your search
@@ -232,14 +232,15 @@ class TestFixesQtsCannotTake:
|
||||
capability check -- is it callable? -- answers no."""
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"name", ["configure_snmp_agent", "configure_package_proxy", "ensure_package"]
|
||||
"name",
|
||||
["configure_snmp_agent", "configure_package_proxy", "get_package_proxy", "ensure_package"],
|
||||
)
|
||||
def test_switched_off(self, name):
|
||||
assert getattr(QnapQtsDriver, name) is None
|
||||
|
||||
|
||||
def test_device_warnings_do_not_ask_for_updates_qts_cannot_list():
|
||||
"""The inherited get_device_warnings called get_available_updates, which is
|
||||
None here, and logged a TypeError on every poll (#6)."""
|
||||
driver = QnapQtsDriver("nas", "admin", "pw")
|
||||
assert driver.get_device_warnings() == []
|
||||
def test_no_warnings_of_its_own():
|
||||
"""napalm-linux names no warnings any more (netOrk #1111), so neither does
|
||||
this driver; the override that kept the inherited one from asking for updates
|
||||
QTS cannot list (#6) is gone with it."""
|
||||
assert not callable(getattr(QnapQtsDriver, "get_device_warnings", None))
|
||||
Reference in new issue
Block a user