community.general/lib/ansible/modules/database/postgresql
Pilou 460d932aa8 postgresql_user: fix bugs related to 'expires' option (#23862)
* Factorize tests related to no_password_change using an include task

* Refactor: deduplicate tasks

* postgresql_user: test 'expires' parameter

* Change 'valid until' even it's the only updated field

* value is changed when another value is provided

* value isn't returned when unset

* Remove unused variable

* psycopg2.extras.DictRow is able to handle comparison

* postgresql_user: simplify helper method

* postgresql_user: define variable just before using it

* Fix comparison between user input and applied configuration

* new test: adding an invalid attribute

* Refactor, add cleaning task

* Check that using same attribute a 2nd time does nothing

* Always try to remove created user

* postgresql_user: fix pep8
2017-06-11 14:48:39 -07:00
..
__init__.py Some more module categorization. 2016-12-08 11:22:25 -05:00
postgresql_db.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
postgresql_ext.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
postgresql_lang.py New metadata 1.0 (#22587) 2017-03-14 09:07:22 -07:00
postgresql_privs.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
postgresql_schema.py E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
postgresql_user.py postgresql_user: fix bugs related to 'expires' option (#23862) 2017-06-11 14:48:39 -07:00