Update test_runner/regress/test_tenants.py

Co-authored-by: Alexander Bayandin <alexander@neon.tech>
This commit is contained in:
Alex Chi Z
2023-05-16 17:44:04 -04:00
committed by GitHub
parent a93cd31554
commit 38602ef580

View File

@@ -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()