Record production customer transfer availability
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -231,6 +231,19 @@ def run(server, agent, folder, db, api):
|
||||
assert sql(f"SELECT count(*) FROM observations WHERE tenant_id='{A}' AND agent_id='{old_agent}';") != "0"
|
||||
print("PASS source certificate revoked, source history preserved and target inventory isolated")
|
||||
|
||||
def generation():
|
||||
return int(sql(f"SELECT connection_generation FROM agent_installations WHERE agent_id='{target_agent}';"))
|
||||
|
||||
previous_generation = generation()
|
||||
proc.terminate()
|
||||
proc.wait(timeout=12)
|
||||
proc = subprocess.Popen([agent], env=config, stdout=log, stderr=log)
|
||||
until(lambda: generation() > previous_generation, 30)
|
||||
active = json.loads((state / "identity.json").read_text())
|
||||
assert active["agent_id"] == target_agent
|
||||
assert request("/agent/v1/customer-transfer", tls=old_context)[0] == 401
|
||||
print("PASS restart preserves the new pairing using the original installer configuration")
|
||||
|
||||
tokens = f"/api/v1/tenants/{A}/mcp-tokens"
|
||||
for audience, allowed_tenants in [("selected", [A]), ("all", [])]:
|
||||
status, issued, _ = request(tokens, {
|
||||
|
||||
Reference in New Issue
Block a user