test: check the proxy fix's own steps, not every step the mixin runs
driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / test (3.13) (pull_request) Successful in 1m1s
driver / lowest (pull_request) Successful in 31s
driver / build (pull_request) Successful in 25s
driver / security (pull_request) Successful in 1m4s
CI / driver (pull_request) Successful in 2m32s
driver / publish (pull_request) Skipped

napalm-device-types adds an https step to configure_package_proxy
(NetOrk/netork#1811). It runs on the transports this driver already has, so
the test checks the four steps it supplies and lets later ones be.
This commit is contained in:
Christian Manivong committed 2026-11-01 07:58:10 +01:00
1 parent b702fa5125
commit dd351f1077
1 file changed
+4 -1
+4 -1
View File
@@ -169,7 +169,10 @@ class TestPackageProxyAndEngineAccess:
result = driver.configure_package_proxy("http://cache.lan:3142") result = driver.configure_package_proxy("http://cache.lan:3142")
assert [s["step"] for s in result["steps"]] == ["configure", "conflicts", "verify", "fetch"] # The steps napalm-device-types runs on this driver's transports; later ones
# (https, NetOrk/netork#1811) are the mixin's own.
steps = [s["step"] for s in result["steps"]]
assert steps[:4] == ["configure", "conflicts", "verify", "fetch"]
assert any("dists/trixie/InRelease" in c for c in ran) assert any("dists/trixie/InRelease" in c for c in ran)
def test_another_file_s_proxy_is_commented_out_as_root(self, driver): def test_another_file_s_proxy_is_commented_out_as_root(self, driver):