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/plugins
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
..
action Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
cache Disable abstract-class-instantiated for smoketests 2017-07-25 15:58:23 -07:00
callback Ensure that the src file contents is converted to unicode in diff info (#45744) 2018-09-20 12:31:48 -05:00
cliconf Fix cli_command multiple prompt issue (#44922) 2018-08-31 20:04:12 +05:30
connection Move persistent connections to only use registered variables (#45616) 2018-09-20 09:56:43 -04:00
filter Skip ipaddr test that fails on Python 3.7+. 2018-09-04 09:23:31 -07:00
httpapi Store Authorization header inside HttpApi connection plugin (#45598) 2018-09-13 19:34:30 +05:30
inventory Fix inventory plugin cache + add tests (#38229) 2018-05-24 15:34:54 -04:00
loader_fixtures Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00
lookup Unify terms and UI between 1Password lookups and facts module (#45427) 2018-09-21 14:26:05 -04:00
shell Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
strategy New keyword: ignore_unreachable (#43857) 2018-08-23 11:41:02 -04:00
terminal Adding slx_command module and supporting module_utils. (#38235) 2018-04-11 12:59:34 +01:00
vars Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_plugins.py Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00