ansible/test/units
Ted Timmons 5d9df86b42 Postgres ssl mode prefer (#21498)
* refactor postgres,
* adds a basic unit test module
* first step towards a common utils module
* set postgresql_db doc argument defaults to what the code actually uses

* unit tests that actually test a missing/found psycopg2, no dependency needed

* add doc fragments, use common args, ansible2ify the imports

* update dict

* add AnsibleModule import

* mv AnsibleModule import to correct file

* restore some database utils we need

* rm some more duplicated pg doc fragments

* change ssl_mode from disable to prefer, add update docs

* use LibraryError pattern for import verification

per comments on #21435. basically LibraryError and touching up its usage in pg_db and the tests.
2017-02-16 11:29:43 -08:00
..
cli Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
contrib PEP 8 W291 whitespace cleanup. 2017-01-27 17:08:02 -08:00
errors Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
executor Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
inventory Add lots of test cases to inventory/test_host.py (#17827) 2016-11-29 13:38:04 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
module_utils Postgres ssl mode prefer (#21498) 2017-02-16 11:29:43 -08:00
modules refactors junos modules to support persistent socket connections (#21365) 2017-02-16 10:53:03 -05:00
parsing Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
playbook Legacy pep8 updates for setup.py and tests 2017-02-11 16:04:52 -08:00
plugins Fix test failures if 'future' package is installed (#15005) 2017-02-16 11:36:26 -05:00
template Don't check for var._obj in template._clean_data (#20868) 2017-02-08 16:09:34 -05:00
utils PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
vars PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00