testgres icon indicating copy to clipboard operation
testgres copied to clipboard

Testing a DB installed on remote host

Open qakapil opened this issue 6 years ago • 5 comments

Hi,

This is not an issue but just a quick question about the tool. Can I use testgres to test a DB cluster installed on remote host ?

Thanks, Kapil.

qakapil avatar Mar 07 '18 05:03 qakapil

Hi @qakapil,

Unfortunately, remote hosts are not supported yet. You could create an instance of PostgresNode and change its host, but it won't do you any good: most of its methods would be useless (e.g. start, stop, get_control_data etc).

How would you solve this problem? Perhaps you could give us an idea.

funbringer avatar Mar 07 '18 09:03 funbringer

Hi @funbringer, Probably we can pass a flag to skip start/stop methods (assuming the DB Cluster on remote host is already up). I will investigate this and let you know. I have one more question - Is testgres primarily being used to test Postgres extensions ? Does testgres tests more features which installcheck tests (pg_regress) are not testing ?

Thanks, Kapil.

qakapil avatar Mar 08 '18 20:03 qakapil

Is testgres primarily being used to test Postgres extensions ? Does testgres tests more features which installcheck tests (pg_regress) are not testing ?

Currently, yes. For instance, we use it for pg_pathman, pg_shardman, pg_probackup. The main reason is that you can't test streaming replication, sharding, dump/restore etc with linear regression tests.

funbringer avatar Mar 12 '18 09:03 funbringer

Now that the questions have been answered, I think we should classify this issue as a feature request.

funbringer avatar Mar 12 '18 09:03 funbringer

It should be easy to implement by a library like http://www.paramiko.org/

stalkerg avatar Jan 22 '20 07:01 stalkerg