Compare commits
2
Commits
b17ff5554e
...
97614742bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97614742bb | ||
|
|
a78fdeae66 |
@@ -67,6 +67,8 @@ def apply(hosts, identifier, revision):
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
)
|
)
|
||||||
or time.time() - host["last_sync_at"] > 30
|
or time.time() - host["last_sync_at"] > 30
|
||||||
):
|
):
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ def enqueue(hosts, identifier, request_id, preset_id):
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
}:
|
}:
|
||||||
raise EquipmentError("Подключите проверенную версию VPS Host с поддержкой очереди.")
|
raise EquipmentError("Подключите проверенную версию VPS Host с поддержкой очереди.")
|
||||||
count = db.execute(
|
count = db.execute(
|
||||||
|
|||||||
@@ -253,6 +253,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
automatic_access = None
|
automatic_access = None
|
||||||
@@ -333,6 +335,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
}:
|
}:
|
||||||
raise EquipmentError("Для разрешения обеих SIM установите актуальный VPS Host.")
|
raise EquipmentError("Для разрешения обеих SIM установите актуальный VPS Host.")
|
||||||
if body["kind"] == "select-sim" and source.get("status", {}).get("version") not in {
|
if body["kind"] == "select-sim" and source.get("status", {}).get("version") not in {
|
||||||
@@ -363,6 +367,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
}:
|
}:
|
||||||
raise EquipmentError("Для смены SIM установите актуальный VPS Host.")
|
raise EquipmentError("Для смены SIM установите актуальный VPS Host.")
|
||||||
else:
|
else:
|
||||||
@@ -418,6 +424,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
),
|
),
|
||||||
"request-position": (
|
"request-position": (
|
||||||
"0.1.8",
|
"0.1.8",
|
||||||
@@ -463,6 +471,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
),
|
),
|
||||||
"pulse-output": (
|
"pulse-output": (
|
||||||
"0.1.9",
|
"0.1.9",
|
||||||
@@ -507,6 +517,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
),
|
),
|
||||||
"set-output": (
|
"set-output": (
|
||||||
"0.1.10",
|
"0.1.10",
|
||||||
@@ -550,6 +562,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
if source.get("status", {}).get("version") not in versions[command["kind"]]:
|
if source.get("status", {}).get("version") not in versions[command["kind"]]:
|
||||||
@@ -603,6 +617,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
)
|
)
|
||||||
for h in (source, target)
|
for h in (source, target)
|
||||||
):
|
):
|
||||||
@@ -694,6 +710,8 @@ def start(
|
|||||||
"0.2.1",
|
"0.2.1",
|
||||||
"0.2.2",
|
"0.2.2",
|
||||||
"0.2.3",
|
"0.2.3",
|
||||||
|
"0.2.4",
|
||||||
|
"0.2.5",
|
||||||
}
|
}
|
||||||
if durable_delivery:
|
if durable_delivery:
|
||||||
lifetime = (
|
lifetime = (
|
||||||
|
|||||||
+1
-1
@@ -322,6 +322,6 @@
|
|||||||
"web_protocol.py": "f9c3eba194144e6cc839e80997917967b8075bdbc866fdbefa6929b55cd27c86"
|
"web_protocol.py": "f9c3eba194144e6cc839e80997917967b8075bdbc866fdbefa6929b55cd27c86"
|
||||||
},
|
},
|
||||||
"schema": "nodedc.arnavi-client-contract/v1",
|
"schema": "nodedc.arnavi-client-contract/v1",
|
||||||
"server_version": "0.2.3",
|
"server_version": "0.2.5",
|
||||||
"synthetic_only": true
|
"synthetic_only": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,6 +76,6 @@ def test_initial_usb_apply_accepts_current_shipped_host():
|
|||||||
|
|
||||||
def test_initial_apply_accepts_shared_host_without_changing_legacy_pairing():
|
def test_initial_apply_accepts_shared_host_without_changing_legacy_pairing():
|
||||||
hosts, _, host = context()
|
hosts, _, host = context()
|
||||||
host["status"]["version"] = "0.2.3"
|
host["status"]["version"] = "0.2.5"
|
||||||
assert apply(hosts, "device", 1) == {"ok": True}
|
assert apply(hosts, "device", 1) == {"ok": True}
|
||||||
hosts.equipment.apply.assert_called_once_with("device", 1)
|
hosts.equipment.apply.assert_called_once_with("device", 1)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def sender(monkeypatch):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@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"]
|
"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):
|
def test_queue_survives_restart_and_idempotent_submit(ready, monkeypatch, version):
|
||||||
equipment, hosts, row = ready
|
equipment, hosts, row = ready
|
||||||
|
|||||||
Reference in New Issue
Block a user