Stage SMB CF/CFE inputs for Windows Agent
This commit is contained in:
@@ -2091,6 +2091,10 @@ def test_html5_ai_structure_routes_unc_directory_with_cf_through_windows_agent(m
|
||||
started.update(kwargs)
|
||||
return FakeJob()
|
||||
|
||||
async def fake_stage_binary_input(**kwargs):
|
||||
started["staged_from"] = kwargs["local_input"]
|
||||
return r"\\192.168.220.220\mst\SFERA\ai-structure-staging\unc-demo"
|
||||
|
||||
saved_runs: dict[str, dict[str, object]] = {}
|
||||
|
||||
monkeypatch.setattr(controller, "copy_smb_tree_to_local", fake_copy_smb_tree_to_local)
|
||||
@@ -2108,15 +2112,17 @@ def test_html5_ai_structure_routes_unc_directory_with_cf_through_windows_agent(m
|
||||
prepare=lambda **_: {},
|
||||
work_root=tmp_path / "work",
|
||||
start_binary_job=fake_start_binary_job,
|
||||
stage_binary_input=fake_stage_binary_input,
|
||||
save_run_state=lambda job_id, payload: saved_runs.setdefault(job_id, payload),
|
||||
)
|
||||
)
|
||||
|
||||
assert "Windows Agent" in html
|
||||
assert copied_targets
|
||||
assert started["input_path"] == r"\\192.168.220.200\mst\1c\MARKA\CODEX\CF"
|
||||
assert started["input_path"] == r"\\192.168.220.220\mst\SFERA\ai-structure-staging\unc-demo"
|
||||
assert started["detected_binary_relative_path"] == "base.cf"
|
||||
assert started["detected_binary_relative_paths"] == ["base.cf"]
|
||||
assert started["staged_from"] == copied_targets[0][1]
|
||||
assert "agent-import-test" in saved_runs
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user