testgres

Testing framework for PostgreSQL and its extensions

OTHER License

Downloads
17.6K
Stars
124
Committers
19

Bot releases are hidden (Show)

testgres - 1.10.0 Latest Release

Published by demonolock 7 months ago

What's Changed

  • Add pg_upgrade option by @demonolock (#97)
    This function allows upgrade PostgreSQL versions.
  • Remove unnecessary output by @homper (#88)
  • Fix get_pg_version for Linux Mint by @demonolock (#101)
  • Set default test locale to en by @Ogurezzz (#107)
    This change aims to standardize test outputs.
  • Fix Error during executing query by @z-kasymalieva (#110)
    Resolved an issue related to executing queries within the framework, particularly when executing commands that do not produce row output, which previously resulted in errors.
  • Run the archive command through exec by @asavchkov (#113)
    If the PostgreSQL archive command is run through the dash shell the shell produces a core dump upon receiving a SIGQUIT during the PostgreSQL server shutdown. This change replaces the dash process with pg_probackup to avoid the production of a core dump.

New Contributors

Full Changelog: https://github.com/postgrespro/testgres/compare/1.9.3...1.10.0

testgres - 1.9.3

Published by asavchkov 10 months ago

  • Fixed a problem on MacOS with command --version
  • Fixed problems on Windows
testgres - 1.9.2

Published by demonolock 12 months ago

  • Removed sshtunnel and fabric libraries usage
testgres - 1.9.1

Published by demonolock about 1 year ago

  • Removed paramiko library usage
testgres - 1.9.0

Published by demonolock about 1 year ago

  • Added the ability to create PostgreSQL nodes on remote hosts via SSH. All local commands, such as directory creation and file reading, have been moved to the LocalOperations class. Remote commands are now housed in the RemoteOperations class. The class is selected depending on the parameters passed to PostgresNode.
testgres - 1.8.9

Published by demonolock about 1 year ago

  • Introducing support for specific PostgreSQL versions
testgres - 1.8.8

Published by demonolock about 1 year ago

  • Minor enhancements in test syntax
testgres - Adapt to PG14 and python-3.10

Published by kulaginm over 2 years ago

.

testgres - Adapt to PG 13

Published by arssher almost 4 years ago

And revert cdc933ff4af.

testgres - Adapt to PG 12

Published by arssher almost 5 years ago

testgres - 1.8.2

Published by funbringer over 6 years ago

Small fix: PostgresNode.safe_psql() now raises error on wrong input (issue #52).

testgres - 1.8.1

Published by funbringer over 6 years ago

Small fix: make NodeBackup aware of inheritors of PostgresNode.

testgres - 1.8.0

Published by funbringer over 6 years ago

  • Add suppress option to PostgresNode.poll_query_until() (PR #51);
  • Add format option to PostgresNode.dump() (PR #32);
  • Add promote() method to PostgresNode (PR #47);
  • Add version property to PostgresNode (PR #49);
  • Add support for logical replication (PR #42);
testgres - 1.7.0

Published by funbringer over 6 years ago

  • Add wait option to PostgresNode.start() (PR #45);
  • PostgresNode.reload() now returns self;
  • Add support for replication slots (PR #41);
testgres - 1.6.0

Published by funbringer over 6 years ago

  • New dependency: psutil;

  • New properties:

    • child_processes - list of ProcessProxy objects representing PostgreSQL processes,
    • auxiliary_processes - subset of child_processes, represents auxiliary processes (e.g. autovacuum),
    • auxiliary_pids - dict of { ProcessType : PID } pairs,
    • source_walsender - available on replica: represents master's walsender;
  • New context manager scoped_config(): temporary change GlobalConfig;

  • Testgres is able to provide unique system ids for cached instances (see #35);

  • Temp dirs use tgs_ as prefix;

testgres -

Published by funbringer over 6 years ago

  • Improved pgbench API (see pgbench_run() etc);
  • Set allow_streaming=True in init() and default_conf() by default;
  • New option unix_sockets=True in init() and default_conf();
  • Fixed base_dir ignore if provided base_dir does not exist (#31);
  • StartNodeException now includes last N lines of postgresql.log;
  • Improved exception handling (using six.raise_from);
  • Auto name generation for PostgresNode (see generate_app_name);
  • Provide compatibility mode for execute(), psql(), safe_psql() and poll_query_until() methods (see positional_args_hack);
testgres - 1.4.1

Published by funbringer almost 7 years ago

apply --auth-local and --auth-host params passed to initdb in PostgresNode.init();

testgres - 1.4.0

Published by funbringer almost 7 years ago

  • use max_attempts=0 (infinite) by default in poll_query_until();
  • fix support for utf-8 (non-ascii symbols);
  • improved error handling;
  • don't install enum34 on python 3.4+.
testgres -

Published by funbringer almost 7 years ago

  • introduced default_conf();
  • don't remove base_dir if it was provided by user;
testgres -

Published by funbringer almost 7 years ago

  • introduced TestgresConfig;
  • add log_statement='all' parameter to default_conf();