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/tests/unit/plugins/lookup
patchback[bot] e69ea28662
[PR #6389/5365647e backport][stable-7] New lookup plug-in: Bitwarden Secrets Manager (#6889)
New lookup plug-in: Bitwarden Secrets Manager (#6389)

* add Bitwarden Secrets Manager lookup

* fix pep8 and yamllint complaints

* fix version_added, add maintainer and copyright notice

* document BWS_ACCESS_TOKEN env var and declare as required

* avoid returning nested list

* update 'value of a secret' example after f6c4492c

* update copyright notice in bitwarden_secrets_manager plugin

thx felixfontein

Co-authored-by: Felix Fontein <felix@fontein.de>

* rename classes to distinguish from existing bw plugin

* use AnsibleLookupError, formatting

* bump version_added to 7.0.0

Co-authored-by: Felix Fontein <felix@fontein.de>

* ci fix: python style guide calls for excessive blank lines

https://peps.python.org/pep-0008/#blank-lines

* first attempt at unit tests for bws lookup

* ci fix: remove trailing newline

* attempt to fix tests object not callable error

* address formatting, tests and pyright suggestions

* reduce scope of mocked code for more real test coverage

only the actual bws CLI call is mocked now, this should enable the
exception thrown test to succeed if I didn't add new problems

* fix undefined variable 'expected_rc'

* fix mocked _run method to return correct data types

* keep list of one element for test case comparison

* bump version_added to 7.2.0

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: jantari <jantari@github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 5365647ee7)

Co-authored-by: jantari <jantari@outlook.de>
2023-07-08 18:09:39 +02:00
..
onepassword_fixtures Consolidate onepassword unit tests so that ansible-test will find them when the plugin is modified (#6075) 2023-02-25 10:57:48 +01:00
onepassword_common.py Consolidate onepassword unit tests so that ansible-test will find them when the plugin is modified (#6075) 2023-02-25 10:57:48 +01:00
onepassword_conftest.py Consolidate onepassword unit tests so that ansible-test will find them when the plugin is modified (#6075) 2023-02-25 10:57:48 +01:00
test_bitwarden.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_bitwarden_secrets_manager.py [PR #6389/5365647e backport][stable-7] New lookup plug-in: Bitwarden Secrets Manager (#6889) 2023-07-08 18:09:39 +02:00
test_dependent.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
test_dsv.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
test_etcd3.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_lastpass.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_manifold.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_merge_variables.py Add new merge_variables lookup plugin (#5533) 2023-03-26 11:27:30 +02:00
test_onepassword.py Consolidate onepassword unit tests so that ansible-test will find them when the plugin is modified (#6075) 2023-02-25 10:57:48 +01:00
test_revbitspss.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
test_tss.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00