Automatic style fix

This commit is contained in:
robot-clickhouse 2022-08-22 22:43:00 +00:00
parent 61d014f6ec
commit 315d38c365
2 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,10 @@ def server(_bucket, _path):
response.content_type = "text/xml"
return '<?xml version="1.0" encoding="UTF-8"?><Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message><RequestId>txfbd566d03042474888193-00608d7538</RequestId></Error>'
response.set_header("Location", "http://minio1:9001/" + _bucket + "/" + _path + "?" + request.query_string)
response.set_header(
"Location",
"http://minio1:9001/" + _bucket + "/" + _path + "?" + request.query_string,
)
response.status = 307
return "Redirected"

View File

@ -43,6 +43,7 @@ def run_endpoint(cluster):
logging.info("S3 endpoint started")
@pytest.fixture(scope="module")
def cluster():
try:
@ -67,6 +68,7 @@ def cluster():
finally:
cluster.shutdown()
def test_dataloss(cluster):
node = cluster.instances["node"]