Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

TestTestgresCommon - unified tests for local and remote #216

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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5488ecd
TestTestgresCommon - unified tests for local and remote
dmitry-lipetsk Mar 12, 2025
a6edd3a
TestTestgresCommon is updated
dmitry-lipetsk Mar 12, 2025
3c055af
TestTestgresCommon is updated
dmitry-lipetsk Mar 13, 2025
188b3b2
TestTestgresCommon is updated
dmitry-lipetsk Mar 13, 2025
9b137ca
Merge branch 'master' into D20250312_002--TestTestgresCommon
dmitry-lipetsk Mar 13, 2025
9bddc3b
Merge branch 'master' into D20250312_002--TestTestgresCommon
dmitry-lipetsk Mar 14, 2025
75f0326
Merge branch 'master' into D20250312_002--TestTestgresCommon
dmitry-lipetsk Mar 16, 2025
292b403
TestTestgresCommon is updated
dmitry-lipetsk Mar 16, 2025
0fb22e8
PostgresNode_Base is added
dmitry-lipetsk Mar 16, 2025
2e5bd9d
test_simple_remote.py is cleaned
dmitry-lipetsk Mar 16, 2025
7f89186
Merge branch 'master' into D20250312_002--TestTestgresCommon
dmitry-lipetsk Mar 16, 2025
48fd887
Formatting (flake8)
dmitry-lipetsk Mar 16, 2025
bf28a1a
Formatting
dmitry-lipetsk Mar 17, 2025
f64dd60
PostgresNode_Base is updated (documentation)
dmitry-lipetsk Mar 17, 2025
490130e
PostgresNode is updated (documentation)
dmitry-lipetsk Mar 17, 2025
ff9b7bc
PostgresNode_Base::_prefix is removed
dmitry-lipetsk Mar 17, 2025
9e1979f
PostgresNode::clean is corrected
dmitry-lipetsk Mar 17, 2025
3e9cad1
node_base.py is updated
dmitry-lipetsk Mar 17, 2025
12fa7f2
node_base.py is updated
dmitry-lipetsk Mar 17, 2025
cef7982
node.py is updated
dmitry-lipetsk Mar 17, 2025
61feb2c
NodeApp::make_empty is updated
dmitry-lipetsk Mar 17, 2025
84a51c7
PostgresNode::cleanup is fixed
dmitry-lipetsk Mar 17, 2025
f7f915d
PostgresNode::cleanup is updated (flake8)
dmitry-lipetsk Mar 17, 2025
882b8ec
PostgresNode_Base::clone_with_new_name_and_base_dir is added
dmitry-lipetsk Mar 17, 2025
e8e392e
PostgresNode is updated (comment)
dmitry-lipetsk Mar 17, 2025
06287f2
Merge remote-tracking branch 'origin/D20250316_003--PostgresNode_Base…
dmitry-lipetsk Mar 17, 2025
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
4 changes: 3 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

set -eux

if [ -z ${TEST_FILTER+x} ]; then export TEST_FILTER="TestgresTests"; fi
if [ -z ${TEST_FILTER+x} ]; \
then export TEST_FILTER="TestgresTests or (TestTestgresCommon and (not remote_ops))"; \
fi

# choose python version
echo python version is $PYTHON_VERSION
Expand Down
3 changes: 1 addition & 2 deletions testgres/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ def spawn_primary(self, name=None, destroy=True):
base_dir = self._prepare_dir(destroy)

# Build a new PostgresNode
NodeClass = self.original_node.__class__
with clean_on_error(NodeClass(name=name, base_dir=base_dir, conn_params=self.original_node.os_ops.conn_params)) as node:
with clean_on_error(self.original_node.clone_with_new_name_and_base_dir(name=name, base_dir=base_dir)) as node:

# New nodes should always remove dir tree
node._should_rm_dirs = True
Expand Down
Loading