diff --git a/src/k1link/fleet/equipment_bootstrap.py b/src/k1link/fleet/equipment_bootstrap.py index 93be4a9e..1e101e77 100644 --- a/src/k1link/fleet/equipment_bootstrap.py +++ b/src/k1link/fleet/equipment_bootstrap.py @@ -65,6 +65,8 @@ def apply(hosts, identifier, revision): "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ) 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 7420112e..1f19dccd 100644 --- a/src/k1link/fleet/equipment_command_runtime.py +++ b/src/k1link/fleet/equipment_command_runtime.py @@ -80,6 +80,8 @@ def enqueue(hosts, identifier, request_id, preset_id): "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", }: raise EquipmentError("Подключите проверенную версию VPS Host с поддержкой очереди.") count = db.execute( diff --git a/src/k1link/fleet/equipment_network.py b/src/k1link/fleet/equipment_network.py index ed653e3b..29fe1350 100644 --- a/src/k1link/fleet/equipment_network.py +++ b/src/k1link/fleet/equipment_network.py @@ -251,6 +251,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ) ) automatic_access = None @@ -329,6 +331,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", }: raise EquipmentError("Для разрешения обеих SIM установите актуальный VPS Host.") if body["kind"] == "select-sim" and source.get("status", {}).get("version") not in { @@ -357,6 +361,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", }: raise EquipmentError("Для смены SIM установите актуальный VPS Host.") else: @@ -410,6 +416,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ), "request-position": ( "0.1.8", @@ -453,6 +461,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ), "pulse-output": ( "0.1.9", @@ -495,6 +505,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ), "set-output": ( "0.1.10", @@ -536,6 +548,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ), } if source.get("status", {}).get("version") not in versions[command["kind"]]: @@ -587,6 +601,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", ) for h in (source, target) ): @@ -676,6 +692,8 @@ def start( "0.1.46", "0.2.0", "0.2.1", + "0.2.2", + "0.2.3", } if durable_delivery: lifetime = ( diff --git a/tests/fixtures/arnavi_vps/client-v1.json b/tests/fixtures/arnavi_vps/client-v1.json index 3ed7ca22..3106c1cf 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.1.46", + "server_version": "0.2.3", "synthetic_only": true } diff --git a/tests/test_equipment_bootstrap.py b/tests/test_equipment_bootstrap.py index 6a9eed2f..85a497c0 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.0" + host["status"]["version"] = "0.2.3" 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 43611463..869eaf73 100644 --- a/tests/test_equipment_command_runtime.py +++ b/tests/test_equipment_command_runtime.py @@ -40,7 +40,9 @@ def sender(monkeypatch): return sent -@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"]) +@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"] +) def test_queue_survives_restart_and_idempotent_submit(ready, monkeypatch, version): equipment, hosts, row = ready for host in hosts.rows():