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/inventory
patchback[bot] 5d6fcaef53
LXD inventory: Support virtual machines (#3519) (#3900)
* LXD 4.x compatibility (Containers and VMs)

* add changelog fragment

* update fixture

* update plugin options

* backwards compatible alias

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

* Update changelogs/fragments/3519-inventory-support-lxd-4.yml

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

* add lxd 4.0 requirement

* filter for type of virtualization added. due to duplication in the namespace, "type" is not used as the keyword but "nature".

* add type filter

Since the first version of this inventory plugin only supports containers,
a filter function was added to filter between containers and
virtual machines or both.
By default only containers are displayed, as in the first version of the plugin.
This behavior will change in the future.

* rename C(nature) to C(type)

The term "nature" does not fit into the lxd namespace.
Therefore i renamed nature to type.

* update changelog fragment

* Update plugins/inventory/lxd.py

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

* Apply suggestions from code review

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

* rename typefilter to type_filter

* fix tests with type_filter

* Update plugins/inventory/lxd.py

* Update plugins/inventory/lxd.py

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Frank Dornheim <“dornheim@posteo.de@users.noreply.github.com”>
(cherry picked from commit 8825ef4711)

Co-authored-by: Élie <elie@deloumeau.fr>
2021-12-14 06:42:47 +01:00
..
fixtures LXD inventory: Support virtual machines (#3519) (#3900) 2021-12-14 06:42:47 +01:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00
test_cobbler.py add inventory plugin unit test test_verify_file (#2773) 2021-06-10 22:05:04 +02:00
test_icinga2.py Icinga2 inventory plugin (#3202) 2021-09-18 15:19:41 +02:00
test_linode.py Linode Inventory can use full IP data from APIv4 (#3203) 2021-08-27 06:20:04 +02:00
test_lxd.py LXD inventory: Support virtual machines (#3519) (#3900) 2021-12-14 06:42:47 +01:00
test_opennebula.py Added OpenNebula inventory plugin (#810) 2021-09-28 16:32:15 +02:00
test_proxmox.py Proxmox inventory: Added snapshots fact (#3044) 2021-07-22 22:55:07 +02:00
test_stackpath_compute.py add inventory plugin unit test test_verify_file (#2773) 2021-06-10 22:05:04 +02:00
test_xen_orchestra.py Xen orchestra inventory: Added groups, keyed_groups and compose support (#3766) (#3772) 2021-11-22 19:27:00 +01:00