test(fixtures): store all fake_ssh uploads so stopped-container bw-limits path is reachable

Upstream v1.7.7 test_stopped_container_is_not_reported_as_applied fails on
clean v1.7.7: fake_ssh only stored /clientsTable uploads, so the docker cp
of /tmp/_amnz_bwlimits raised KeyError before the deferred RuntimeError.
This commit is contained in:
leonidorlov-hash committed 2026-10-20 11:24:36 +03:00
1 parent ff50dbec47
commit 628dcc93f2
1 file changed
+3 -3
+3 -3
View File
@@ -54,9 +54,9 @@ def fake_ssh():
return '', '', 1
def upload(content, remote_path):
# only the clientsTable snapshot models the server's table;
# _apply_bw_limits uploads other files (tc scripts, bwlimits)
if remote_path.endswith('/clientsTable'):
# clientsTable staging is what models the server's table, but every
# upload must be stored: _apply_bw_limits uploads bwlimits/tc scripts
# and its docker cp reads them back before any container check.
uploads[remote_path] = content
ssh.run_sudo_command = sudo