community.general/tests/unit/plugins/lookup
lewismiddleton 5b3b7a1fb1
github_app_access_token: add support for private key fact (#8989)
* github_app_access_token: add support for private key fact

Adds support for specifying the GitHub App private key via an ansible
fact instead of a path to a file.

This is useful when you want to generate registration tokens for a
remote host but don't want to put secrets on the host.

* Add license file

* Fix pep8 formatting

* Add changelog fragment

* Run sanity tests on changelog

* Apply suggestions from code review

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>

* Add input validation check

* Add import

* Apply suggestions from code review

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

* Add error for mutually exclusive options

* Update plugins/lookup/github_app_access_token.py

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

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-10-21 20:53:18 +02:00
..
onepassword_fixtures fixes #7918 - onepassword lookup fails if field name contains uppercase letters and section is specified (#7919) 2024-02-16 13:53:07 +01:00
conftest.py Add onepassword_doc lookup plugin (#7490) 2023-11-26 20:32:20 +01:00
onepassword_common.py fixes #7918 - onepassword lookup fails if field name contains uppercase letters and section is specified (#7919) 2024-02-16 13:53:07 +01:00
test_bitwarden.py bitwarden - add support for filtering by organization_id (#8188) 2024-04-20 12:12:45 +02:00
test_bitwarden_secrets_manager.py bitwarden_secrets_manager lookup plugin: support more current versions of BWS CLI (#9028) 2024-10-19 12:49:47 +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_github_app_access_token.py github_app_access_token: add support for private key fact (#8989) 2024-10-21 20:53:18 +02: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 bug(lookup/merge_variables): Fix rendering foreign variables (#8303) 2024-05-11 16:51:51 +02:00
test_onepassword.py Add onepassword_doc lookup plugin (#7490) 2023-11-26 20:32:20 +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