mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
Silence test failure with gRPC
The error message is just a little different with gRPC.
This commit is contained in:
@@ -157,6 +157,7 @@ def test_cannot_create_endpoint_on_non_uploaded_timeline(neon_env_builder: NeonE
|
|||||||
[
|
[
|
||||||
".*request{method=POST path=/v1/tenant/.*/timeline request_id=.*}: request was dropped before completing.*",
|
".*request{method=POST path=/v1/tenant/.*/timeline request_id=.*}: request was dropped before completing.*",
|
||||||
".*page_service_conn_main.*: query handler for 'basebackup .* ERROR: Not found: Timeline",
|
".*page_service_conn_main.*: query handler for 'basebackup .* ERROR: Not found: Timeline",
|
||||||
|
".*request failed with Unavailable: Timeline .* is not active",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
ps_http = env.pageserver.http_client()
|
ps_http = env.pageserver.http_client()
|
||||||
@@ -194,7 +195,7 @@ def test_cannot_create_endpoint_on_non_uploaded_timeline(neon_env_builder: NeonE
|
|||||||
|
|
||||||
env.neon_cli.mappings_map_branch(initial_branch, env.initial_tenant, env.initial_timeline)
|
env.neon_cli.mappings_map_branch(initial_branch, env.initial_tenant, env.initial_timeline)
|
||||||
|
|
||||||
with pytest.raises(RuntimeError, match="ERROR: Not found: Timeline"):
|
with pytest.raises(RuntimeError, match=f"Timeline {env.initial_tenant}/{env.initial_timeline} is not active"):
|
||||||
env.endpoints.create_start(
|
env.endpoints.create_start(
|
||||||
initial_branch, tenant_id=env.initial_tenant, basebackup_request_tries=2
|
initial_branch, tenant_id=env.initial_tenant, basebackup_request_tries=2
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user