mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 17:40:37 +00:00
Update test_runner/regress/test_tenants.py
Co-authored-by: Alexander Bayandin <alexander@neon.tech>
This commit is contained in:
@@ -420,11 +420,8 @@ def test_pageserver_create_tenants_fail(
|
||||
client = env.pageserver.http_client()
|
||||
client.configure_failpoints(("tenant-create-fail", "return"))
|
||||
tenant_id = TenantId("deadbeefdeadbeefdeadbeefdeadbeef")
|
||||
try:
|
||||
with pytest.raises(PageserverApiException, match=f"failpoint: tenant-create-fail"):
|
||||
client.tenant_create(tenant_id)
|
||||
except Exception as e:
|
||||
exception_string = str(e)
|
||||
assert "tenant-create-fail" in exception_string, "should reach failpoint"
|
||||
|
||||
path = Path(env.repo_dir) / "tenants" / str(tenant_id)
|
||||
assert not path.exists()
|
||||
|
||||
Reference in New Issue
Block a user