1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-02 10:26:22 +00:00
community.general/tests/unit/plugins
Alexei Znamensky d06c83eb68
etcd3: re-enable and fix tests, add unit tests (#11678)
* etcd3: re-enable and fix tests, add unit tests

- Add unit tests for community.general.etcd3 module (12 tests covering
  state=present/absent, idempotency, check mode, and error paths)
- Fix integration test setup: update etcd binary to v3.6.9 (from v3.2.14),
  download from GitHub releases, add health-check retry loop after start
- Work around etcd3 Python library incompatibility with protobuf >= 4.x
  by setting PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
- Update to FQCNs throughout integration tests
- Re-enable both etcd3 and lookup_etcd3 integration targets

Fixes https://github.com/ansible-collections/community.general/issues/322

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* improve use of multiple context managers

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 15:55:16 +13:00
..
become Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback Add missing __future__ imports (#11567) 2026-03-11 06:42:08 +01:00
connection Add missing __future__ imports (#11567) 2026-03-11 06:42:08 +01:00
filter Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
inventory replace list(map(...)) with comprehension (#11590) 2026-03-14 08:43:23 +01:00
lookup merge_variables: extended merge capabilities added (#11536) 2026-03-19 22:45:44 +01:00
module_utils test(cmd_runner_fmt): assert that unpack_* functions can handle _ArgFormat objects (#11637) 2026-03-22 15:19:09 +13:00
modules etcd3: re-enable and fix tests, add unit tests (#11678) 2026-03-25 15:55:16 +13:00
plugin_utils Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00