You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration
Josh Moore d5ae6cc585 postgres_db: add dump and restore support (#20627)
* Feature #2731: added postgres import and dump

* Feature #2731: be more permissive of arguments

```
hacking/test-module -m ./ppostgresql_db.py -a "db=example state=dump target=/tmp/out"`
```

failed previously since host, user, and port were required as keywords
in the pg_dump / pg_import methods.

* Feature #2731: fixed doc string for validate-modules

```
$ ansible-validate-modules database/postgresql/
```

now passes.

* Feature #2731: disable 'password' for dump/restore

* Feature #2731: bump added version to 2.3

* Feature #2731: replace db_import with db_restore

* Feature #2731: add missing version description

* Feature #2731: fix 'state' description

* Feature #2731: fix pep8 issues

* Feature #2731: put state documentation in a single string

* Bump added version from 2.3 to 2.4

* Fix pep8 and pylint errors

* Attempt yaml formatting of documentation string

* Add integration tests for postgres_db:dump/restore

* Update dump/restore logic to support new kw-args

Also attempt to support password; integration tests are
still failing.

* Revert to postgres user for dump/restore

Passing PGPASSWORD is not working for subprocesses. For the
moment, reverting to the strategy of failing if login_password
is set and using `postgres` for all testing of dump/restore.

* Various cleanups to have tests passing

* Working tests for {sql,tar} x {,bz2,gz,xz}

* Use pg_user to support FreeBSD

* Revert login_ prefixes and re-enable password support

All `login_` keywords are mapped to their non-prefix versions
so the previous changes were effectively using `postgres` for
all actions. With the proper keywords, PGPASSWORD-passing to
the subprocess is now working.

* Optionally add password

environ_update doesn't handle None values in the
dictionary to be added to the environment. Adding
check.

* Quick fixes

* Refactor login arguments after fixes from pchauncey

The fixes introduced by pchaunchy pointed to further issues
(like no --dbname on PG<=9.2) with the login parameters. This
refactors them and adds further tests.

Note: this will still not pass integration tests due to a further
      issue with pg_dump as a non-admin user:

      pg_restore: [archiver (db)] Error while PROCESSING TOC:
      pg_restore: [archiver (db)] Error from TOC entry 1925; 0 0 COMMENT EXTENSION plpgsql
      pg_restore: [archiver (db)] could not execute query: ERROR:  must be owner of extension plpgsql

* Introduce target_opts for passing limiting dumped/restored schemas

The current integration tests (PG version and template DBs) don't
permit a regular user (`{{ db_user1 }}`) access to plpgsql causing
restores to fail. By adding an option for passing arbitrary args to
pg_dump and pg_restore, testing is made easier. This also paves the
way for `-j` usage, once the PG version is bumped.
7 years ago
..
group_vars Run vyos_command Network tests in Shippable (#24514) 8 years ago
host_vars breaks testing in non virtual envs, since env var can be used in those 9 years ago
roles Add module netscaler_cs_action (#26147) 7 years ago
targets postgres_db: add dump and restore support (#20627) 7 years ago
vars Split integration tests out from Makefile. (#17976) 8 years ago
Makefile Remove legacy integration test make targets. (#26255) 7 years ago
amazon.yml Adding support for Amazon ECR (#19306) 8 years ago
asa.yaml Continue running network tests after failure (#26407) 7 years ago
azure.yml add azure integration tests 10 years ago
cleanup_azure.py test/: PEP8 compliancy (#24803) 7 years ago
cleanup_ec2.py test/: PEP8 compliancy (#24803) 7 years ago
cleanup_gce.py test/: PEP8 compliancy (#24803) 7 years ago
cleanup_rax.py test/: PEP8 compliancy (#24803) 7 years ago
cloud-config-aws.yml.template Add support for cloud tests to ansible-test. (#24315) 8 years ago
cloud-config-cs.ini.template Add support for cloud tests to ansible-test. (#24315) 8 years ago
cloudflare.yml Fix cosmetic problems in YAML source 8 years ago
cloudscale.yml new module cloudscale_server (#20175) 8 years ago
cnos.yaml New module: cnos_vlan and various utility files (#21107) 8 years ago
consul.yml Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
consul_inventory.yml Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
consul_running.py Support print() function in test/ 9 years ago
credentials.template Update git test to not rm ~/.ssh/known_hosts. 7 years ago
dellos6.yaml Migrate Network Tests into ansible/ansible (#18233) 8 years ago
dellos9.yaml Migrate Network Tests into ansible/ansible (#18233) 8 years ago
dellos10.yaml Migrate Network Tests into ansible/ansible (#18233) 8 years ago
eos.yaml Continue running network tests after failure (#26407) 7 years ago
exoscale.yml exo_dns: new module utils and integration tests for exoscale DNS (#17230) 8 years ago
galaxy_playbook.yml Allow installation of roles from yaml roles file 10 years ago
galaxy_playbook_git.yml [hotfix] add missed playbook file 9 years ago
galaxy_roles.yml Fix cosmetic problems in YAML source 8 years ago
galaxy_rolesfile Add tests for #10620 9 years ago
gce.yml [GCP] Global Load Balancer Integration Test (#24704) 7 years ago
gce_credentials.py test/: PEP8 compliancy (#24803) 7 years ago
integration_config.yml Fix cosmetic problems in YAML source 8 years ago
inventory Facts Refresh (2.4 roadmap) (#23012) 7 years ago
inventory.network Add VyOS integration tests for net_linkagg (#26478) 7 years ago
inventory.networking.template Increase python version coverage for tests. (#24762) 7 years ago
inventory.remote.template Add support for OS X CI on Shippable. (#17160) 8 years ago
inventory.winrm.template Increase python version coverage for tests. (#24762) 7 years ago
ios.yaml Continue running network tests after failure (#26407) 7 years ago
iosxr.yaml Continue running network tests after failure (#26407) 7 years ago
jenkins.yml jenkins_job: add integration tests (#17499) 8 years ago
junos.yaml Implementation of junos_static_route module (#26501) 7 years ago
netscaler.yaml Add netscaler_server module (#25537) 7 years ago
network-all.yaml add vyos, openvswitch to network-all playbook (#26167) 7 years ago
nxos.yaml Continue running network tests after failure (#26407) 7 years ago
ops.yaml Continue running network tests after failure (#26407) 7 years ago
ovs.yaml Enforce the _raw_params variable with include_role (#26430) 7 years ago
platform_agnostic.yaml Add VyOS integration tests for net_linkagg (#26478) 7 years ago
rackspace.yml Add tests for rax_scaling_group 9 years ago
setup_gce.py test/: PEP8 compliancy (#24803) 7 years ago
target-prefixes.network Fix network integration test config. (#26057) 7 years ago
vyos.yaml Enable vyos_linkagg integration tests and test with 3 NICs (#26519) 7 years ago