Use SSL certs verification for CI DB

This commit is contained in:
Mikhail f. Shiryaev 2022-05-19 18:23:20 +02:00
parent 8a74b1cf2f
commit 7134fc848f
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -32,9 +32,7 @@ class ClickHouseHelper:
}
for i in range(5):
response = requests.post(
url, params=params, data=json_str, headers=auth, verify=False
)
response = requests.post(url, params=params, data=json_str, headers=auth)
logging.info("Response content '%s'", response.content)
@ -103,9 +101,7 @@ class ClickHouseHelper:
for i in range(5):
response = None
try:
response = requests.get(
self.url, params=params, headers=self.auth, verify=False
)
response = requests.get(self.url, params=params, headers=self.auth)
response.raise_for_status()
return response.text
except Exception as ex: