1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00
community.general/tests/unit/plugins
Stéphane Graber a1bf2fc44a
Add Incus inventory plugin (#10972)
* BOTMETA: Add Incus inventory plugin

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>

* plugins/inventory: Implement basic Incus support

This is a simple inventory plugin leveraging the local `incus` command
line tool. It supports accessing multiple remotes and projects, builds a
simple group hierarchy based on the remotes and projects and exposes
most properties as variable. It also supports basic filtering using the
server-side filtering syntax supported by the Incus CLI.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>

* plugins/inventory/incus: Add support for constructable groups

This allows the use of constructable groups and also allows disabling
the default group structure.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>

* plugins/inventory/incus: Add unit tests

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>

---------

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2025-10-28 21:24:09 +01:00
..
become unit tests: use f-strings (#10993) 2025-10-27 12:32:33 +13:00
cache Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files (#10886) 2025-10-10 19:52:04 +02:00
callback unit tests: use f-strings (#10993) 2025-10-27 12:32:33 +13:00
connection Unit tests: clean up compat imports (#10902) 2025-10-11 10:03:37 +02:00
filter Unit tests: clean up compat imports (#10902) 2025-10-11 10:03:37 +02:00
inventory Add Incus inventory plugin (#10972) 2025-10-28 21:24:09 +01:00
lookup unit tests: use f-strings (#10993) 2025-10-27 12:32:33 +13:00
module_utils unit tests: use f-strings (#10993) 2025-10-27 12:32:33 +13:00
modules unit tests (modules): use f-strings (#10992) 2025-10-27 11:08:33 +13:00
plugin_utils Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files (#10886) 2025-10-10 19:52:04 +02:00