test: move http header related tests from io tests to spec tests
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
committed by
Steve Chavez
parent
8fa26ee865
commit
b6c12abf0e
@@ -2087,26 +2087,6 @@ def test_client_error_verbosity_config(defaultenv):
|
||||
}
|
||||
|
||||
|
||||
def test_vary_custom_header_set(defaultenv):
|
||||
"Test default Vary header value is overridden in pre-request database function"
|
||||
|
||||
env = {**defaultenv, "PGRST_DB_PRE_REQUEST": "custom_vary_hdr"}
|
||||
|
||||
with run(env=env) as postgrest:
|
||||
response = postgrest.session.get("/projects")
|
||||
|
||||
assert response.headers["Vary"] == "X-Test-Accept"
|
||||
|
||||
|
||||
def test_vary_default_header_set(defaultenv):
|
||||
"Test default Vary header value matches default one"
|
||||
|
||||
with run(env=defaultenv) as postgrest:
|
||||
response = postgrest.session.get("/projects")
|
||||
|
||||
assert response.headers["Vary"] == "Accept, Prefer, Range"
|
||||
|
||||
|
||||
def test_positive_pool_metric(defaultenv):
|
||||
"When a network failure is caused on the pg connection, pgrst_db_pool_available stays positive"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user