mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 01:20:38 +00:00
tests: update for tenant generations (#5449)
## Problem Some existing tests are written in a way that's incompatible with tenant generations. ## Summary of changes Update all the tests that need updating: this is things like calling through the NeonPageserver.tenant_attach helper to get a generation number, instead of calling directly into the pageserver API. There are various more subtle cases.
This commit is contained in:
@@ -266,9 +266,7 @@ class NeonPageserverHttpClient(requests.Session):
|
||||
def tenant_create(self, new_tenant_id: uuid.UUID, ok_if_exists):
|
||||
res = self.post(
|
||||
f"http://{self.host}:{self.port}/v1/tenant",
|
||||
json={
|
||||
"new_tenant_id": new_tenant_id.hex,
|
||||
},
|
||||
json={"new_tenant_id": new_tenant_id.hex, "generation": 1},
|
||||
)
|
||||
|
||||
if res.status_code == 409:
|
||||
|
||||
Reference in New Issue
Block a user