Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Skip ssl check #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add env variable TESTGRES_SKIP_SSL
  • Loading branch information
vshepard committed Nov 18, 2024
commit f1d28b44952a4aa1cf6eff4b0e1e4761b35e89c9
7 changes: 5 additions & 2 deletions testgres/operations/os_ops.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import getpass
import locale
import os
import sys

try:
Expand All @@ -12,15 +13,17 @@


class ConnectionParams:
def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None, remote=False, skip_ssl=False):
def __init__(self, host='127.0.0.1', port=None, ssh_key=None, username=None, remote=False, skip_ssl=None):
"""
skip_ssl: if is True, the connection is established without SSL.
skip_ssl: if is True, the connection to database is established without SSL.
"""
self.remote = remote
self.host = host
self.port = port
self.ssh_key = ssh_key
self.username = username
if skip_ssl is None:
skip_ssl = os.getenv("TESTGRES_SKIP_SSL", False)
self.skip_ssl = skip_ssl


Expand Down