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