feat: name no warnings and report no package proxy (0.5.0)
CI / test (3.10) (push) Successful in 28s
CI / test (3.11) (push) Successful in 26s
CI / test (3.12) (push) Successful in 27s
CI / test (3.10) (pull_request) Successful in 27s
CI / test (3.11) (pull_request) Successful in 26s
CI / test (3.12) (pull_request) Successful in 27s

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:
Christian Manivong committed 2026-10-17 10:35:10 +02:00
1 parent 375530ac1c
commit 472518576e
3 files changed
+13 -14

No files matched your search

+7 -6
View File
@@ -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))