Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
demonolock wants to merge15 commits intomasterfromskip-ssl-check
Closed
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
15 commits
Select commitHold shift + click to select a range
1b10a54
Add ability to skip ssl when connect to PostgresNode
Nov 1, 2024
104a127
Don't reserve a new port if port was set up
Nov 1, 2024
19ef23f
Fix flake8 style
Nov 18, 2024
43c91c0
Fix test_the_same_port
Nov 18, 2024
1e8d912
Fix failed test_ports_management
Nov 18, 2024
f1d28b4
Add env variable TESTGRES_SKIP_SSL
Nov 18, 2024
e729c2f
Fix sys.modules instead globals
Nov 18, 2024
dc4b4c3
Move _get_ssl_options in separate function
Nov 18, 2024
547081e
Merge branch 'master' into skip-ssl-check
dmitry-lipetskDec 4, 2024
fb6205d
Merge branch 'master' into skip-ssl-check
dmitry-lipetskDec 6, 2024
67f23a7
Merge branch 'master' into skip-ssl-check
dmitry-lipetskDec 8, 2024
b67ae42
Merge branch 'master' into skip-ssl-check
dmitry-lipetskDec 10, 2024
be972e0
Merge branch 'master' into skip-ssl-check
dmitry-lipetskDec 10, 2024
0781132
Merge branch 'master' into skip-ssl-check
dmitry-lipetskDec 10, 2024
fa6d751
[BUG FIX] TestgresRemoteTests.test_safe_psql__expect_error is corrected
dmitry-lipetskDec 24, 2024
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
PrevPrevious commit
NextNext commit
Merge branch 'master' into skip-ssl-check
The following files were modified manualy:- testgres/node.py- testgres/operations/local_ops.py- tests/test_remote.py
  • Loading branch information
@dmitry-lipetsk
dmitry-lipetsk committedDec 10, 2024
commitb67ae42aa89672b8e7b0036d1b217dad94dbb3ab
6 changes: 0 additions & 6 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1067,12 +1067,6 @@ def _psql(

# should be the last one
psql_params.append(dbname)
if not self.os_ops.conn_params.remote:
# start psql process
process = subprocess.Popen(psql_params,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

return self.os_ops.exec_command(
psql_params,
Expand Down
2 changes: 2 additions & 0 deletionstestgres/operations/local_ops.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,8 @@

from ..exceptions import ExecUtilException
from .os_ops import ConnectionParams, OsOperations, get_default_encoding
from .raise_error import RaiseError
from .helpers import Helpers

try:
from shutil import which as find_executable
Expand Down
15 changes: 9 additions & 6 deletionstests/test_remote.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,7 +37,7 @@ def test_exec_command_failure(self):
error = e.message
break
raise Exception("We wait an exception!")
assert error == 'Utility exited with non-zero code. Error: bash: line 1: nonexistent_command: command not found\n'
assert error == 'Utility exited with non-zero code. Error:`bash: line 1: nonexistent_command: command not found`'

def test_exec_command_failure__expect_error(self):
"""
Expand DownExpand Up@@ -98,11 +98,14 @@ def test_makedirs_and_rmdirs_failure(self):
self.operations.makedirs(path)

# Test rmdirs
try:
exit_status, result, error = self.operations.rmdirs(path, verbose=True)
except ExecUtilException as e:
error = e.message
assert error == "Utility exited with non-zero code. Error: rm: cannot remove '/root/test_dir': Permission denied\n"
while True:
try:
self.operations.rmdirs(path, verbose=True)
except ExecUtilException as e:
error = e.message
break
raise Exception("We wait an exception!")
assert error == "Utility exited with non-zero code. Error: `rm: cannot remove '/root/test_dir': Permission denied`"

def test_listdir(self):
"""
Expand Down
You are viewing a condensed version of this merge commit. You can view thefull changes here.

[8]ページ先頭

©2009-2025 Movatter.jp