diff --git a/src/k1link/fleet/equipment_bootstrap.py b/src/k1link/fleet/equipment_bootstrap.py index a1299996..23eb312c 100644 --- a/src/k1link/fleet/equipment_bootstrap.py +++ b/src/k1link/fleet/equipment_bootstrap.py @@ -68,6 +68,7 @@ def apply(hosts, identifier, revision): "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ) or time.time() - host["last_sync_at"] > 30 ): diff --git a/src/k1link/fleet/equipment_command_runtime.py b/src/k1link/fleet/equipment_command_runtime.py index 3c041151..bdc1cd9d 100644 --- a/src/k1link/fleet/equipment_command_runtime.py +++ b/src/k1link/fleet/equipment_command_runtime.py @@ -83,6 +83,7 @@ def enqueue(hosts, identifier, request_id, preset_id): "0.2.2", "0.2.3", "0.2.4", + "0.2.5", }: raise EquipmentError("Подключите проверенную версию VPS Host с поддержкой очереди.") count = db.execute( diff --git a/src/k1link/fleet/equipment_network.py b/src/k1link/fleet/equipment_network.py index dea72b45..d86c77b5 100644 --- a/src/k1link/fleet/equipment_network.py +++ b/src/k1link/fleet/equipment_network.py @@ -254,6 +254,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ) ) automatic_access = None @@ -335,6 +336,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", }: raise EquipmentError("Для разрешения обеих SIM установите актуальный VPS Host.") if body["kind"] == "select-sim" and source.get("status", {}).get("version") not in { @@ -366,6 +368,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", }: raise EquipmentError("Для смены SIM установите актуальный VPS Host.") else: @@ -422,6 +425,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ), "request-position": ( "0.1.8", @@ -468,6 +472,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ), "pulse-output": ( "0.1.9", @@ -513,6 +518,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ), "set-output": ( "0.1.10", @@ -557,6 +563,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ), } if source.get("status", {}).get("version") not in versions[command["kind"]]: @@ -611,6 +618,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", ) for h in (source, target) ): @@ -703,6 +711,7 @@ def start( "0.2.2", "0.2.3", "0.2.4", + "0.2.5", } if durable_delivery: lifetime = ( diff --git a/tests/fixtures/arnavi_vps/client-v1.json b/tests/fixtures/arnavi_vps/client-v1.json index 80c26e02..33ee4950 100644 --- a/tests/fixtures/arnavi_vps/client-v1.json +++ b/tests/fixtures/arnavi_vps/client-v1.json @@ -322,6 +322,6 @@ "web_protocol.py": "f9c3eba194144e6cc839e80997917967b8075bdbc866fdbefa6929b55cd27c86" }, "schema": "nodedc.arnavi-client-contract/v1", - "server_version": "0.2.4", + "server_version": "0.2.5", "synthetic_only": true } diff --git a/tests/test_equipment_bootstrap.py b/tests/test_equipment_bootstrap.py index a4d3ffef..327f6abb 100644 --- a/tests/test_equipment_bootstrap.py +++ b/tests/test_equipment_bootstrap.py @@ -76,6 +76,6 @@ def test_initial_usb_apply_accepts_current_shipped_host(): def test_initial_apply_accepts_shared_host_without_changing_legacy_pairing(): hosts, _, host = context() - host["status"]["version"] = "0.2.4" + host["status"]["version"] = "0.2.5" assert apply(hosts, "device", 1) == {"ok": True} hosts.equipment.apply.assert_called_once_with("device", 1) diff --git a/tests/test_equipment_command_runtime.py b/tests/test_equipment_command_runtime.py index 7a27fd22..c633b495 100644 --- a/tests/test_equipment_command_runtime.py +++ b/tests/test_equipment_command_runtime.py @@ -41,7 +41,7 @@ def sender(monkeypatch): @pytest.mark.parametrize( - "version", ["0.1.26", "0.1.27", "0.1.28", "0.1.29", "0.1.30", "0.1.31", "0.2.0", "0.2.3", "0.2.4"] + "version", ["0.1.26", "0.1.27", "0.1.28", "0.1.29", "0.1.30", "0.1.31", "0.2.0", "0.2.3", "0.2.4", "0.2.5"] ) def test_queue_survives_restart_and_idempotent_submit(ready, monkeypatch, version): equipment, hosts, row = ready