From 24b8cce11b915705daaee9b43f7fe1205bdfcf5d Mon Sep 17 00:00:00 2001 From: chexit Date: Sat, 21 Nov 2026 08:56:38 +0300 Subject: [PATCH] Update the WASM contract for radars configured at deployment (#144) The real-.hmod scenario still expected the pre-#134 role switch to retune radar 4 and return its role as feedback. After #134 the profile is chosen at deployment and dispatch refuses the old syntax, so step 14 failed with no feedback. Both stale checks now expect the intended refusal, naming deploy radar_search|radar_track|radar_height and on/off. The deployed station is not transformed back for the test. Verified with python3 tools/airdef.py test-wasm on the pinned host 2bcce64236 and the real airdef.hmod: 30 steps pass. Co-Authored-By: Kimi Code --- airdef-mod/tests/wasm_contract.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airdef-mod/tests/wasm_contract.toml b/airdef-mod/tests/wasm_contract.toml index c7b5440..7a4b978 100644 --- a/airdef-mod/tests/wasm_contract.toml +++ b/airdef-mod/tests/wasm_contract.toml @@ -50,13 +50,15 @@ expect.feedback = "№2 С-400: режим launcher" [[step]] command = "airdef deploy radar_track" +# The profile is chosen at deployment (#134): the old role switch is refused, +# and says where the profile comes from instead of retuning the station. [[step]] command = "airdef radar 4 search" -expect.feedback = "№4 РЛС: роль search" +expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в search не меняет оборудование. Доступно on/off." [[step]] command = "airdef radar 4 engagement" -expect.feedback = "№4 РЛС: роль engagement" +expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в engagement не меняет оборудование. Доступно on/off." [[step]] command = "airdef radar 4 off"