feat: expose live enterprise domain presence
This commit is contained in:
parent
406e9d8a7d
commit
ef1734baee
4 changed files with 81 additions and 2 deletions
|
|
@ -66,6 +66,20 @@ with tempfile.TemporaryDirectory() as temp:
|
|||
else:
|
||||
raise AssertionError("server did not start")
|
||||
|
||||
status = json.load(urllib.request.urlopen(BASE + "/v1/status"))
|
||||
assert status["node_id"] == "AW-GZ-001"
|
||||
assert status["host_state"] == "ONLINE"
|
||||
assert {domain["state"] for domain in status["domains"] if domain["id"] != "DOMAIN-FIFTH"} == {
|
||||
"HOSTED_ACTIVE"
|
||||
}
|
||||
assert status["node_counts"]["ACTIVE"] == 4
|
||||
|
||||
nodes = json.load(urllib.request.urlopen(BASE + "/v1/nodes"))["nodes"]
|
||||
hosted = {node["domain_id"]: node for node in nodes}
|
||||
assert set(hosted) == {"DOMAIN-MAIN", "DOMAIN-SUB", "DOMAIN-ZERO", "DOMAIN-ZS"}
|
||||
assert all(node["state"] == "ACTIVE" for node in hosted.values())
|
||||
assert all(node["display_name"].startswith("AW-GZ-001") for node in hosted.values())
|
||||
|
||||
intake = {
|
||||
"human_name": "Test",
|
||||
"email": "test@example.invalid",
|
||||
|
|
|
|||
Loading…
Reference in a new issue