feat(vesc): integrate native calibration diagnostics and configuration archives
This commit is contained in:
@@ -84,6 +84,25 @@ def cert(row):
|
||||
serialization.Encoding.DER
|
||||
)
|
||||
|
||||
def test_rover_stream_requires_current_pairing_and_binding(setup):
|
||||
fleet, _, _, _ = setup
|
||||
public, _ = create(setup)
|
||||
fleet.advance(public["id"])
|
||||
row = fleet.find(public["id"])
|
||||
body = {"schema": SCHEMA, "node_id": row["node_id"],
|
||||
"binding_id": row["binding"]["binding_id"], "relay_id": "a"*32}
|
||||
certificate = cert(row)
|
||||
status, result = fleet.receive(certificate, "/v1/node/rover-stream", body)
|
||||
assert status == 200
|
||||
assert result['command'] is None
|
||||
assert result['control_clock']['instance'] == fleet.rover_control.clock_id
|
||||
status, _ = fleet.receive(certificate, "/v1/node/rover-stream", {**body, "binding_id": "other"})
|
||||
assert status == 410
|
||||
row['enrollment'] = 'revoked'
|
||||
fleet.save(row)
|
||||
status, _ = fleet.receive(certificate, "/v1/node/rover-stream", body)
|
||||
assert status == 410
|
||||
|
||||
|
||||
def test_migrated_heartbeat_preserves_identity_and_old_reply_cannot_reverse(setup):
|
||||
fleet, _, _, _ = setup
|
||||
|
||||
Reference in New Issue
Block a user