1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units
Sam Doran b60854357b
Unify terms and UI between 1Password lookups and facts module (#45427)
* Unify login behavior between 1Password lookup plugins and module

- Use the same names for all credential aspects
- Only require the minimal amount of information for each
- Add more examples

* Change parameter terms

- use terms in line with 1Password documentation.
- update examples
- update tests

* Improve error messages in lookup plugin

* Unify onepassword_facts with lookup plugins

- use same methods and logic for signing in or reusing existing session
- unify terms with lookup plugins

* Change rc test for determing login

An rc other than 1 can be returned when a current login session does not exist.

* Create AnsibleModuleError class

ansible.errors is not available to modules, so create an AnsibleModuleError class within the module

Do not user os.path.expanduser since this is already done by virtue of the type being "path" in the argument spec.

* Add note about risk with fact caching sensitive data

* Add note on op version that was used for testing
2018-09-21 14:26:05 -04:00
..
cli Fix unit tests which modify the source tree. (#45763) 2018-09-17 20:27:14 -07:00
config Fix another corner case of too many warnings for world readable current working directory 2018-08-23 20:23:59 -07:00
contrib Update vmware_inventory (#26308) 2017-07-18 07:20:23 -04:00
errors test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
executor Fix unittests for always adding basic to the AnsiBallZ zips 2018-08-24 15:37:13 -07:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock AnsiballZ improvements 2018-07-26 20:07:25 -07:00
module_utils Fixing HTTPError case of fetch_url for Python 3 compatibility. (#45628) 2018-09-19 10:53:16 -05:00
modules Adds bigiq_device_facts module (#45822) 2018-09-18 22:30:31 -04:00
parsing Mass nuke deprecated items that are easily removed. ci_complete (#44320) 2018-08-20 16:26:10 -05:00
playbook Unit tests for ansible.playbook.become (#38541) 2018-08-23 13:47:20 -05:00
plugins Unify terms and UI between 1Password lookups and facts module (#45427) 2018-09-21 14:26:05 -04:00
template remove unused templar._clean_data() (#42739) 2018-09-11 09:11:03 +02:00
utils [aws unit test utils] only create a recordings directory when the env var is set (#45752) 2018-09-17 18:16:44 -04:00
vars Fix pylint error on utf8 character in string (#45880) 2018-09-20 12:01:44 +10:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
ansible.cfg Fix ansible-test config management. 2017-10-04 12:52:36 -07:00
conftest.py Run unit tests in parallel. (#45812) 2018-09-18 13:58:22 -07:00
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 2017-06-14 11:08:34 -04:00