From 96c88658b23541cc96dbada50e3b84a1ffe5e7c0 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 5 Aug 2021 09:59:31 -0400 Subject: [PATCH 01/24] add cert option to module documentation --- plugins/modules/netbox_cable.py | 5 +++++ plugins/modules/netbox_circuit.py | 5 +++++ plugins/modules/netbox_circuit_termination.py | 5 +++++ plugins/modules/netbox_circuit_type.py | 5 +++++ plugins/modules/netbox_cluster.py | 5 +++++ plugins/modules/netbox_cluster_group.py | 5 +++++ plugins/modules/netbox_cluster_type.py | 5 +++++ plugins/modules/netbox_console_port.py | 5 +++++ plugins/modules/netbox_console_port_template.py | 5 +++++ plugins/modules/netbox_console_server_port.py | 5 +++++ plugins/modules/netbox_console_server_port_template.py | 5 +++++ plugins/modules/netbox_device.py | 5 +++++ plugins/modules/netbox_device_bay.py | 5 +++++ plugins/modules/netbox_device_bay_template.py | 5 +++++ plugins/modules/netbox_device_interface.py | 5 +++++ plugins/modules/netbox_device_interface_template.py | 5 +++++ plugins/modules/netbox_device_role.py | 5 +++++ plugins/modules/netbox_device_type.py | 5 +++++ plugins/modules/netbox_front_port.py | 5 +++++ plugins/modules/netbox_front_port_template.py | 5 +++++ plugins/modules/netbox_inventory_item.py | 5 +++++ plugins/modules/netbox_ip_address.py | 5 +++++ plugins/modules/netbox_ipam_role.py | 5 +++++ plugins/modules/netbox_manufacturer.py | 5 +++++ plugins/modules/netbox_platform.py | 5 +++++ plugins/modules/netbox_power_feed.py | 5 +++++ plugins/modules/netbox_power_outlet.py | 5 +++++ plugins/modules/netbox_power_outlet_template.py | 5 +++++ plugins/modules/netbox_power_panel.py | 5 +++++ plugins/modules/netbox_power_port.py | 5 +++++ plugins/modules/netbox_power_port_template.py | 5 +++++ plugins/modules/netbox_prefix.py | 5 +++++ plugins/modules/netbox_provider.py | 5 +++++ plugins/modules/netbox_rack.py | 5 +++++ plugins/modules/netbox_rack_group.py | 5 +++++ plugins/modules/netbox_rack_role.py | 5 +++++ plugins/modules/netbox_rear_port.py | 5 +++++ plugins/modules/netbox_rear_port_template.py | 5 +++++ plugins/modules/netbox_region.py | 5 +++++ plugins/modules/netbox_rir.py | 5 +++++ plugins/modules/netbox_route_target.py | 5 +++++ plugins/modules/netbox_service.py | 5 +++++ plugins/modules/netbox_site.py | 5 +++++ plugins/modules/netbox_tag.py | 5 +++++ plugins/modules/netbox_tenant.py | 5 +++++ plugins/modules/netbox_tenant_group.py | 5 +++++ plugins/modules/netbox_virtual_chassis.py | 5 +++++ plugins/modules/netbox_virtual_machine.py | 5 +++++ plugins/modules/netbox_vlan.py | 5 +++++ plugins/modules/netbox_vlan_group.py | 5 +++++ plugins/modules/netbox_vm_interface.py | 5 +++++ plugins/modules/netbox_vrf.py | 5 +++++ 52 files changed, 260 insertions(+) diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index e5ca6cc99..32a9b1899 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index 1fdbced9f..b2585ce69 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_circuit_termination.py b/plugins/modules/netbox_circuit_termination.py index 0b13df50d..8680bdf2a 100644 --- a/plugins/modules/netbox_circuit_termination.py +++ b/plugins/modules/netbox_circuit_termination.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: required: true type: dict diff --git a/plugins/modules/netbox_circuit_type.py b/plugins/modules/netbox_circuit_type.py index 285c89ed4..8ce052f0e 100644 --- a/plugins/modules/netbox_circuit_type.py +++ b/plugins/modules/netbox_circuit_type.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: required: true type: dict diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index ccdd6c475..539f5e800 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: required: true type: dict diff --git a/plugins/modules/netbox_cluster_group.py b/plugins/modules/netbox_cluster_group.py index cc71fa91e..913ab4e34 100644 --- a/plugins/modules/netbox_cluster_group.py +++ b/plugins/modules/netbox_cluster_group.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: required: true type: dict diff --git a/plugins/modules/netbox_cluster_type.py b/plugins/modules/netbox_cluster_type.py index 7a7a2431f..18efd8418 100644 --- a/plugins/modules/netbox_cluster_type.py +++ b/plugins/modules/netbox_cluster_type.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: required: true type: dict diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index 704dc1a97..6b5c0e856 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_console_port_template.py b/plugins/modules/netbox_console_port_template.py index aca87a012..9fb891b78 100644 --- a/plugins/modules/netbox_console_port_template.py +++ b/plugins/modules/netbox_console_port_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index 28eeea561..7ca0ce276 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_console_server_port_template.py b/plugins/modules/netbox_console_server_port_template.py index 9ce6b0eda..5bde52f18 100644 --- a/plugins/modules/netbox_console_server_port_template.py +++ b/plugins/modules/netbox_console_server_port_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index f659d993f..d95a7d04e 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -40,6 +40,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the device configuration diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index d9755f14a..89a6c522b 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the device bay configuration diff --git a/plugins/modules/netbox_device_bay_template.py b/plugins/modules/netbox_device_bay_template.py index 7df84ab7c..a2a4ac56c 100644 --- a/plugins/modules/netbox_device_bay_template.py +++ b/plugins/modules/netbox_device_bay_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the device bay template configuration diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index ac7f56fb8..2b9129b13 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the interface configuration diff --git a/plugins/modules/netbox_device_interface_template.py b/plugins/modules/netbox_device_interface_template.py index b265ec5a4..0d50ae28f 100644 --- a/plugins/modules/netbox_device_interface_template.py +++ b/plugins/modules/netbox_device_interface_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the prefix configuration diff --git a/plugins/modules/netbox_device_role.py b/plugins/modules/netbox_device_role.py index 7274dce4b..d6902a59c 100644 --- a/plugins/modules/netbox_device_role.py +++ b/plugins/modules/netbox_device_role.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the device role configuration diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index ddc2af5c7..200d0afd0 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the device type configuration diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index 90afff8f4..efd6ee171 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_front_port_template.py b/plugins/modules/netbox_front_port_template.py index b6212a46f..8c90d73a5 100644 --- a/plugins/modules/netbox_front_port_template.py +++ b/plugins/modules/netbox_front_port_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index 6f34a1d18..c3f7c0529 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 2472557aa..0adbd1f85 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -40,6 +40,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_ipam_role.py b/plugins/modules/netbox_ipam_role.py index 5df6bdd34..725e600ac 100644 --- a/plugins/modules/netbox_ipam_role.py +++ b/plugins/modules/netbox_ipam_role.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_manufacturer.py b/plugins/modules/netbox_manufacturer.py index 77a1c4652..ed005e4d5 100644 --- a/plugins/modules/netbox_manufacturer.py +++ b/plugins/modules/netbox_manufacturer.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_platform.py b/plugins/modules/netbox_platform.py index 66a0150cb..639ed5ab7 100644 --- a/plugins/modules/netbox_platform.py +++ b/plugins/modules/netbox_platform.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index e8b069283..9c77043a6 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 175c9f75f..7b03f5966 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_power_outlet_template.py b/plugins/modules/netbox_power_outlet_template.py index adab636ac..8759387d7 100644 --- a/plugins/modules/netbox_power_outlet_template.py +++ b/plugins/modules/netbox_power_outlet_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_power_panel.py b/plugins/modules/netbox_power_panel.py index 5608b337b..d4744a9c1 100644 --- a/plugins/modules/netbox_power_panel.py +++ b/plugins/modules/netbox_power_panel.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index 899bc7af3..e58ac37a3 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_power_port_template.py b/plugins/modules/netbox_power_port_template.py index f20f6ce95..7b62f2cd7 100644 --- a/plugins/modules/netbox_power_port_template.py +++ b/plugins/modules/netbox_power_port_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index 2ef3bf13f..64206110d 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -40,6 +40,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index b2bab4b4d..3d928f258 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 6b8cf514c..7d82fe84a 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_rack_group.py b/plugins/modules/netbox_rack_group.py index 955b5158b..cdb39047a 100644 --- a/plugins/modules/netbox_rack_group.py +++ b/plugins/modules/netbox_rack_group.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_rack_role.py b/plugins/modules/netbox_rack_role.py index ba8929549..3d725fe89 100644 --- a/plugins/modules/netbox_rack_role.py +++ b/plugins/modules/netbox_rack_role.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index 4c53ef6b8..9fa5ae1a4 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_rear_port_template.py b/plugins/modules/netbox_rear_port_template.py index 80f34c5e3..e6eaa1e42 100644 --- a/plugins/modules/netbox_rear_port_template.py +++ b/plugins/modules/netbox_rear_port_template.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_region.py b/plugins/modules/netbox_region.py index 01d9ee104..392ada084 100644 --- a/plugins/modules/netbox_region.py +++ b/plugins/modules/netbox_region.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_rir.py b/plugins/modules/netbox_rir.py index 95ca3698c..50459353a 100644 --- a/plugins/modules/netbox_rir.py +++ b/plugins/modules/netbox_rir.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index 8e456951f..6e59ec13d 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index 672955c73..98126c356 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -37,6 +37,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index 620b0ec3d..a18981154 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_tag.py b/plugins/modules/netbox_tag.py index 20a399f2c..dcd8adda6 100644 --- a/plugins/modules/netbox_tag.py +++ b/plugins/modules/netbox_tag.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index b5b239e65..d653ced0f 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_tenant_group.py b/plugins/modules/netbox_tenant_group.py index 0748119bd..243847621 100644 --- a/plugins/modules/netbox_tenant_group.py +++ b/plugins/modules/netbox_tenant_group.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 9b0851016..0b0005132 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -39,6 +39,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict required: true diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index aaae4e933..438624a3d 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 34de99dbc..4c4b39774 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_vlan_group.py b/plugins/modules/netbox_vlan_group.py index 0fd7a9953..ba2dd1c60 100644 --- a/plugins/modules/netbox_vlan_group.py +++ b/plugins/modules/netbox_vlan_group.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index dbc8ef3b4..7b81ef669 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: description: - Defines the vm interface configuration diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 4c8d9c101..445611160 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -38,6 +38,11 @@ - The token created within Netbox to authorize API access required: true type: str + cert: + description: + - Certificate path + default: true + required: false data: type: dict description: From 5fbf2582fc4615a06af6c36db00719ef54c1a4f4 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 5 Aug 2021 11:17:04 -0400 Subject: [PATCH 02/24] correct tab mistake --- plugins/modules/netbox_cable.py | 2 +- plugins/modules/netbox_circuit.py | 2 +- plugins/modules/netbox_circuit_termination.py | 2 +- plugins/modules/netbox_circuit_type.py | 2 +- plugins/modules/netbox_cluster.py | 2 +- plugins/modules/netbox_cluster_group.py | 2 +- plugins/modules/netbox_cluster_type.py | 2 +- plugins/modules/netbox_console_port.py | 2 +- plugins/modules/netbox_console_port_template.py | 2 +- plugins/modules/netbox_console_server_port.py | 2 +- plugins/modules/netbox_console_server_port_template.py | 2 +- plugins/modules/netbox_device.py | 2 +- plugins/modules/netbox_device_bay.py | 2 +- plugins/modules/netbox_device_bay_template.py | 2 +- plugins/modules/netbox_device_interface.py | 2 +- plugins/modules/netbox_device_interface_template.py | 2 +- plugins/modules/netbox_device_role.py | 2 +- plugins/modules/netbox_device_type.py | 2 +- plugins/modules/netbox_front_port.py | 2 +- plugins/modules/netbox_front_port_template.py | 2 +- plugins/modules/netbox_inventory_item.py | 2 +- plugins/modules/netbox_ip_address.py | 2 +- plugins/modules/netbox_ipam_role.py | 2 +- plugins/modules/netbox_manufacturer.py | 2 +- plugins/modules/netbox_platform.py | 2 +- plugins/modules/netbox_power_feed.py | 2 +- plugins/modules/netbox_power_outlet.py | 2 +- plugins/modules/netbox_power_outlet_template.py | 2 +- plugins/modules/netbox_power_panel.py | 2 +- plugins/modules/netbox_power_port.py | 2 +- plugins/modules/netbox_power_port_template.py | 2 +- plugins/modules/netbox_prefix.py | 2 +- plugins/modules/netbox_provider.py | 2 +- plugins/modules/netbox_rack.py | 2 +- plugins/modules/netbox_rack_group.py | 2 +- plugins/modules/netbox_rack_role.py | 2 +- plugins/modules/netbox_rear_port.py | 2 +- plugins/modules/netbox_rear_port_template.py | 2 +- plugins/modules/netbox_region.py | 2 +- plugins/modules/netbox_rir.py | 2 +- plugins/modules/netbox_route_target.py | 2 +- plugins/modules/netbox_service.py | 2 +- plugins/modules/netbox_site.py | 2 +- plugins/modules/netbox_tag.py | 2 +- plugins/modules/netbox_tenant.py | 2 +- plugins/modules/netbox_tenant_group.py | 2 +- plugins/modules/netbox_virtual_chassis.py | 2 +- plugins/modules/netbox_virtual_machine.py | 2 +- plugins/modules/netbox_vlan.py | 2 +- plugins/modules/netbox_vlan_group.py | 2 +- plugins/modules/netbox_vm_interface.py | 2 +- plugins/modules/netbox_vrf.py | 2 +- 52 files changed, 52 insertions(+), 52 deletions(-) diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index 32a9b1899..18b332402 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index b2585ce69..d484ff2c8 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_circuit_termination.py b/plugins/modules/netbox_circuit_termination.py index 8680bdf2a..94bddb39e 100644 --- a/plugins/modules/netbox_circuit_termination.py +++ b/plugins/modules/netbox_circuit_termination.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: required: true diff --git a/plugins/modules/netbox_circuit_type.py b/plugins/modules/netbox_circuit_type.py index 8ce052f0e..bfe4d5b6f 100644 --- a/plugins/modules/netbox_circuit_type.py +++ b/plugins/modules/netbox_circuit_type.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: required: true diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index 539f5e800..8d9550c48 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: required: true diff --git a/plugins/modules/netbox_cluster_group.py b/plugins/modules/netbox_cluster_group.py index 913ab4e34..dc3da1359 100644 --- a/plugins/modules/netbox_cluster_group.py +++ b/plugins/modules/netbox_cluster_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: required: true diff --git a/plugins/modules/netbox_cluster_type.py b/plugins/modules/netbox_cluster_type.py index 18efd8418..93d8d06d1 100644 --- a/plugins/modules/netbox_cluster_type.py +++ b/plugins/modules/netbox_cluster_type.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: required: true diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index 6b5c0e856..a1ba50f12 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_console_port_template.py b/plugins/modules/netbox_console_port_template.py index 9fb891b78..0f7cc5d71 100644 --- a/plugins/modules/netbox_console_port_template.py +++ b/plugins/modules/netbox_console_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index 7ca0ce276..77e79adb6 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_console_server_port_template.py b/plugins/modules/netbox_console_server_port_template.py index 5bde52f18..ce44823fb 100644 --- a/plugins/modules/netbox_console_server_port_template.py +++ b/plugins/modules/netbox_console_server_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index d95a7d04e..d172b3f43 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -43,7 +43,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index 89a6c522b..a8c3abae4 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_device_bay_template.py b/plugins/modules/netbox_device_bay_template.py index a2a4ac56c..b9e175f11 100644 --- a/plugins/modules/netbox_device_bay_template.py +++ b/plugins/modules/netbox_device_bay_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index 2b9129b13..ac5107f38 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_device_interface_template.py b/plugins/modules/netbox_device_interface_template.py index 0d50ae28f..285f61084 100644 --- a/plugins/modules/netbox_device_interface_template.py +++ b/plugins/modules/netbox_device_interface_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_device_role.py b/plugins/modules/netbox_device_role.py index d6902a59c..7b9ad7a80 100644 --- a/plugins/modules/netbox_device_role.py +++ b/plugins/modules/netbox_device_role.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 200d0afd0..7d9c13e0c 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index efd6ee171..ecf865536 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_front_port_template.py b/plugins/modules/netbox_front_port_template.py index 8c90d73a5..971ed6630 100644 --- a/plugins/modules/netbox_front_port_template.py +++ b/plugins/modules/netbox_front_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index c3f7c0529..fd55fce3b 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 0adbd1f85..4ec29040b 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -43,7 +43,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_ipam_role.py b/plugins/modules/netbox_ipam_role.py index 725e600ac..894967a26 100644 --- a/plugins/modules/netbox_ipam_role.py +++ b/plugins/modules/netbox_ipam_role.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_manufacturer.py b/plugins/modules/netbox_manufacturer.py index ed005e4d5..49e9bde0a 100644 --- a/plugins/modules/netbox_manufacturer.py +++ b/plugins/modules/netbox_manufacturer.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_platform.py b/plugins/modules/netbox_platform.py index 639ed5ab7..34f2eb9c2 100644 --- a/plugins/modules/netbox_platform.py +++ b/plugins/modules/netbox_platform.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index 9c77043a6..5aa9ba011 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 7b03f5966..929f637e8 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_power_outlet_template.py b/plugins/modules/netbox_power_outlet_template.py index 8759387d7..a77ff1118 100644 --- a/plugins/modules/netbox_power_outlet_template.py +++ b/plugins/modules/netbox_power_outlet_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_power_panel.py b/plugins/modules/netbox_power_panel.py index d4744a9c1..0c1f6cf00 100644 --- a/plugins/modules/netbox_power_panel.py +++ b/plugins/modules/netbox_power_panel.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index e58ac37a3..46bf3c190 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_power_port_template.py b/plugins/modules/netbox_power_port_template.py index 7b62f2cd7..542d3815b 100644 --- a/plugins/modules/netbox_power_port_template.py +++ b/plugins/modules/netbox_power_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index 64206110d..b2877a18f 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -43,7 +43,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index 3d928f258..dfdc410eb 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 7d82fe84a..006415e78 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_rack_group.py b/plugins/modules/netbox_rack_group.py index cdb39047a..e17257b5d 100644 --- a/plugins/modules/netbox_rack_group.py +++ b/plugins/modules/netbox_rack_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_rack_role.py b/plugins/modules/netbox_rack_role.py index 3d725fe89..2b604a3af 100644 --- a/plugins/modules/netbox_rack_role.py +++ b/plugins/modules/netbox_rack_role.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index 9fa5ae1a4..dfa44c695 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_rear_port_template.py b/plugins/modules/netbox_rear_port_template.py index e6eaa1e42..b87b7b36f 100644 --- a/plugins/modules/netbox_rear_port_template.py +++ b/plugins/modules/netbox_rear_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_region.py b/plugins/modules/netbox_region.py index 392ada084..d99bf742d 100644 --- a/plugins/modules/netbox_region.py +++ b/plugins/modules/netbox_region.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_rir.py b/plugins/modules/netbox_rir.py index 50459353a..de4d9eff2 100644 --- a/plugins/modules/netbox_rir.py +++ b/plugins/modules/netbox_rir.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index 6e59ec13d..23a8287c1 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index 98126c356..ceda5ddbd 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -40,7 +40,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index a18981154..281af5a32 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_tag.py b/plugins/modules/netbox_tag.py index dcd8adda6..baf7a8bf3 100644 --- a/plugins/modules/netbox_tag.py +++ b/plugins/modules/netbox_tag.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index d653ced0f..fa4b98815 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_tenant_group.py b/plugins/modules/netbox_tenant_group.py index 243847621..cc8162a8b 100644 --- a/plugins/modules/netbox_tenant_group.py +++ b/plugins/modules/netbox_tenant_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 0b0005132..b1c071ab8 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 438624a3d..21f4781f8 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 4c4b39774..3e75d1324 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_vlan_group.py b/plugins/modules/netbox_vlan_group.py index ba2dd1c60..7b6b1aa75 100644 --- a/plugins/modules/netbox_vlan_group.py +++ b/plugins/modules/netbox_vlan_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index 7b81ef669..f5fc0a6ad 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: description: diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 445611160..ba5130052 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: true required: false data: type: dict From a41bd4a57bc03841975eeba0e61b1f3989c8b2a4 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 5 Aug 2021 12:04:53 -0400 Subject: [PATCH 03/24] add cert type to modules documentation --- plugins/modules/netbox_cable.py | 1 + plugins/modules/netbox_circuit.py | 1 + plugins/modules/netbox_circuit_termination.py | 1 + plugins/modules/netbox_circuit_type.py | 1 + plugins/modules/netbox_cluster.py | 1 + plugins/modules/netbox_cluster_group.py | 1 + plugins/modules/netbox_cluster_type.py | 1 + plugins/modules/netbox_console_port.py | 1 + plugins/modules/netbox_console_port_template.py | 1 + plugins/modules/netbox_console_server_port.py | 1 + plugins/modules/netbox_console_server_port_template.py | 1 + plugins/modules/netbox_device.py | 1 + plugins/modules/netbox_device_bay.py | 1 + plugins/modules/netbox_device_bay_template.py | 1 + plugins/modules/netbox_device_interface.py | 1 + plugins/modules/netbox_device_interface_template.py | 1 + plugins/modules/netbox_device_role.py | 1 + plugins/modules/netbox_device_type.py | 1 + plugins/modules/netbox_front_port.py | 1 + plugins/modules/netbox_front_port_template.py | 1 + plugins/modules/netbox_inventory_item.py | 1 + plugins/modules/netbox_ip_address.py | 1 + plugins/modules/netbox_ipam_role.py | 1 + plugins/modules/netbox_manufacturer.py | 1 + plugins/modules/netbox_platform.py | 1 + plugins/modules/netbox_power_feed.py | 1 + plugins/modules/netbox_power_outlet.py | 1 + plugins/modules/netbox_power_outlet_template.py | 1 + plugins/modules/netbox_power_panel.py | 1 + plugins/modules/netbox_power_port.py | 1 + plugins/modules/netbox_power_port_template.py | 1 + plugins/modules/netbox_prefix.py | 1 + plugins/modules/netbox_provider.py | 1 + plugins/modules/netbox_rack.py | 1 + plugins/modules/netbox_rack_group.py | 1 + plugins/modules/netbox_rack_role.py | 1 + plugins/modules/netbox_rear_port.py | 1 + plugins/modules/netbox_rear_port_template.py | 1 + plugins/modules/netbox_region.py | 1 + plugins/modules/netbox_rir.py | 1 + plugins/modules/netbox_route_target.py | 1 + plugins/modules/netbox_service.py | 1 + plugins/modules/netbox_site.py | 1 + plugins/modules/netbox_tag.py | 1 + plugins/modules/netbox_tenant.py | 1 + plugins/modules/netbox_tenant_group.py | 1 + plugins/modules/netbox_virtual_chassis.py | 1 + plugins/modules/netbox_virtual_machine.py | 1 + plugins/modules/netbox_vlan.py | 1 + plugins/modules/netbox_vlan_group.py | 1 + plugins/modules/netbox_vm_interface.py | 1 + plugins/modules/netbox_vrf.py | 1 + 52 files changed, 52 insertions(+) diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index 18b332402..6e2ca69cb 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index d484ff2c8..b9961e2ce 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_circuit_termination.py b/plugins/modules/netbox_circuit_termination.py index 94bddb39e..a7f34913f 100644 --- a/plugins/modules/netbox_circuit_termination.py +++ b/plugins/modules/netbox_circuit_termination.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: required: true type: dict diff --git a/plugins/modules/netbox_circuit_type.py b/plugins/modules/netbox_circuit_type.py index bfe4d5b6f..81c35eab2 100644 --- a/plugins/modules/netbox_circuit_type.py +++ b/plugins/modules/netbox_circuit_type.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: required: true type: dict diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index 8d9550c48..d34752e74 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: required: true type: dict diff --git a/plugins/modules/netbox_cluster_group.py b/plugins/modules/netbox_cluster_group.py index dc3da1359..df2960c9e 100644 --- a/plugins/modules/netbox_cluster_group.py +++ b/plugins/modules/netbox_cluster_group.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: required: true type: dict diff --git a/plugins/modules/netbox_cluster_type.py b/plugins/modules/netbox_cluster_type.py index 93d8d06d1..0cc765133 100644 --- a/plugins/modules/netbox_cluster_type.py +++ b/plugins/modules/netbox_cluster_type.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: required: true type: dict diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index a1ba50f12..2362af301 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_console_port_template.py b/plugins/modules/netbox_console_port_template.py index 0f7cc5d71..44f4fb582 100644 --- a/plugins/modules/netbox_console_port_template.py +++ b/plugins/modules/netbox_console_port_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index 77e79adb6..af72f3cd0 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_console_server_port_template.py b/plugins/modules/netbox_console_server_port_template.py index ce44823fb..dbf5114b5 100644 --- a/plugins/modules/netbox_console_server_port_template.py +++ b/plugins/modules/netbox_console_server_port_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index d172b3f43..a2b6c41b5 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -45,6 +45,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the device configuration diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index a8c3abae4..47440e3b4 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the device bay configuration diff --git a/plugins/modules/netbox_device_bay_template.py b/plugins/modules/netbox_device_bay_template.py index b9e175f11..34ce708a4 100644 --- a/plugins/modules/netbox_device_bay_template.py +++ b/plugins/modules/netbox_device_bay_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the device bay template configuration diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index ac5107f38..93d10a83c 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the interface configuration diff --git a/plugins/modules/netbox_device_interface_template.py b/plugins/modules/netbox_device_interface_template.py index 285f61084..c4514b7c9 100644 --- a/plugins/modules/netbox_device_interface_template.py +++ b/plugins/modules/netbox_device_interface_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the prefix configuration diff --git a/plugins/modules/netbox_device_role.py b/plugins/modules/netbox_device_role.py index 7b9ad7a80..a1505c6a1 100644 --- a/plugins/modules/netbox_device_role.py +++ b/plugins/modules/netbox_device_role.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the device role configuration diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 7d9c13e0c..52ac73771 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the device type configuration diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index ecf865536..0b0a5e61f 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_front_port_template.py b/plugins/modules/netbox_front_port_template.py index 971ed6630..b689ffed6 100644 --- a/plugins/modules/netbox_front_port_template.py +++ b/plugins/modules/netbox_front_port_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index fd55fce3b..2974dffb6 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 4ec29040b..83d9f3096 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -45,6 +45,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_ipam_role.py b/plugins/modules/netbox_ipam_role.py index 894967a26..261649bc8 100644 --- a/plugins/modules/netbox_ipam_role.py +++ b/plugins/modules/netbox_ipam_role.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_manufacturer.py b/plugins/modules/netbox_manufacturer.py index 49e9bde0a..d5630d5db 100644 --- a/plugins/modules/netbox_manufacturer.py +++ b/plugins/modules/netbox_manufacturer.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_platform.py b/plugins/modules/netbox_platform.py index 34f2eb9c2..0c576a2c4 100644 --- a/plugins/modules/netbox_platform.py +++ b/plugins/modules/netbox_platform.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index 5aa9ba011..520db0f04 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 929f637e8..57269d5b8 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_power_outlet_template.py b/plugins/modules/netbox_power_outlet_template.py index a77ff1118..1d998329f 100644 --- a/plugins/modules/netbox_power_outlet_template.py +++ b/plugins/modules/netbox_power_outlet_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_power_panel.py b/plugins/modules/netbox_power_panel.py index 0c1f6cf00..da529cf43 100644 --- a/plugins/modules/netbox_power_panel.py +++ b/plugins/modules/netbox_power_panel.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index 46bf3c190..2b5c9376b 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_power_port_template.py b/plugins/modules/netbox_power_port_template.py index 542d3815b..f023bdf0f 100644 --- a/plugins/modules/netbox_power_port_template.py +++ b/plugins/modules/netbox_power_port_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index b2877a18f..8a11667f5 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -45,6 +45,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index dfdc410eb..ca7c9e5c2 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 006415e78..322800f6f 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_rack_group.py b/plugins/modules/netbox_rack_group.py index e17257b5d..f822ba1bc 100644 --- a/plugins/modules/netbox_rack_group.py +++ b/plugins/modules/netbox_rack_group.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_rack_role.py b/plugins/modules/netbox_rack_role.py index 2b604a3af..a18943521 100644 --- a/plugins/modules/netbox_rack_role.py +++ b/plugins/modules/netbox_rack_role.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index dfa44c695..42358ea24 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_rear_port_template.py b/plugins/modules/netbox_rear_port_template.py index b87b7b36f..3ca539dc3 100644 --- a/plugins/modules/netbox_rear_port_template.py +++ b/plugins/modules/netbox_rear_port_template.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_region.py b/plugins/modules/netbox_region.py index d99bf742d..d8a59f1e5 100644 --- a/plugins/modules/netbox_region.py +++ b/plugins/modules/netbox_region.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_rir.py b/plugins/modules/netbox_rir.py index de4d9eff2..eed7bc034 100644 --- a/plugins/modules/netbox_rir.py +++ b/plugins/modules/netbox_rir.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index 23a8287c1..b1c0c600e 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index ceda5ddbd..b1b476386 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -42,6 +42,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index 281af5a32..be70163fe 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_tag.py b/plugins/modules/netbox_tag.py index baf7a8bf3..9e75a479b 100644 --- a/plugins/modules/netbox_tag.py +++ b/plugins/modules/netbox_tag.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index fa4b98815..2f287de2a 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_tenant_group.py b/plugins/modules/netbox_tenant_group.py index cc8162a8b..79b272b50 100644 --- a/plugins/modules/netbox_tenant_group.py +++ b/plugins/modules/netbox_tenant_group.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index b1c071ab8..3bde1f893 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -44,6 +44,7 @@ - Certificate path default: true required: false + type: raw data: type: dict required: true diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 21f4781f8..132d01251 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 3e75d1324..9078275da 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_vlan_group.py b/plugins/modules/netbox_vlan_group.py index 7b6b1aa75..08af37876 100644 --- a/plugins/modules/netbox_vlan_group.py +++ b/plugins/modules/netbox_vlan_group.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index f5fc0a6ad..fd8461544 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: description: - Defines the vm interface configuration diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index ba5130052..5c696a735 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -43,6 +43,7 @@ - Certificate path default: true required: false + type: raw data: type: dict description: From 6c4e1b03ddb36923c07caabf8fcc321ba130f0cc Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 5 Aug 2021 12:06:17 -0400 Subject: [PATCH 04/24] set cert default to false --- plugins/modules/netbox_cable.py | 2 +- plugins/modules/netbox_circuit.py | 2 +- plugins/modules/netbox_circuit_termination.py | 2 +- plugins/modules/netbox_circuit_type.py | 2 +- plugins/modules/netbox_cluster.py | 2 +- plugins/modules/netbox_cluster_group.py | 2 +- plugins/modules/netbox_cluster_type.py | 2 +- plugins/modules/netbox_console_port.py | 2 +- plugins/modules/netbox_console_port_template.py | 2 +- plugins/modules/netbox_console_server_port.py | 2 +- plugins/modules/netbox_console_server_port_template.py | 2 +- plugins/modules/netbox_device.py | 2 +- plugins/modules/netbox_device_bay.py | 2 +- plugins/modules/netbox_device_bay_template.py | 2 +- plugins/modules/netbox_device_interface.py | 2 +- plugins/modules/netbox_device_interface_template.py | 2 +- plugins/modules/netbox_device_role.py | 2 +- plugins/modules/netbox_device_type.py | 2 +- plugins/modules/netbox_front_port.py | 2 +- plugins/modules/netbox_front_port_template.py | 2 +- plugins/modules/netbox_inventory_item.py | 2 +- plugins/modules/netbox_ip_address.py | 2 +- plugins/modules/netbox_ipam_role.py | 2 +- plugins/modules/netbox_manufacturer.py | 2 +- plugins/modules/netbox_platform.py | 2 +- plugins/modules/netbox_power_feed.py | 2 +- plugins/modules/netbox_power_outlet.py | 2 +- plugins/modules/netbox_power_outlet_template.py | 2 +- plugins/modules/netbox_power_panel.py | 2 +- plugins/modules/netbox_power_port.py | 2 +- plugins/modules/netbox_power_port_template.py | 2 +- plugins/modules/netbox_prefix.py | 2 +- plugins/modules/netbox_provider.py | 2 +- plugins/modules/netbox_rack.py | 2 +- plugins/modules/netbox_rack_group.py | 2 +- plugins/modules/netbox_rack_role.py | 2 +- plugins/modules/netbox_rear_port.py | 2 +- plugins/modules/netbox_rear_port_template.py | 2 +- plugins/modules/netbox_region.py | 2 +- plugins/modules/netbox_rir.py | 2 +- plugins/modules/netbox_route_target.py | 2 +- plugins/modules/netbox_service.py | 2 +- plugins/modules/netbox_site.py | 2 +- plugins/modules/netbox_tag.py | 2 +- plugins/modules/netbox_tenant.py | 2 +- plugins/modules/netbox_tenant_group.py | 2 +- plugins/modules/netbox_virtual_chassis.py | 2 +- plugins/modules/netbox_virtual_machine.py | 2 +- plugins/modules/netbox_vlan.py | 2 +- plugins/modules/netbox_vlan_group.py | 2 +- plugins/modules/netbox_vm_interface.py | 2 +- plugins/modules/netbox_vrf.py | 2 +- 52 files changed, 52 insertions(+), 52 deletions(-) diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index 6e2ca69cb..d82cf4cb4 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index b9961e2ce..73e64f89c 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_circuit_termination.py b/plugins/modules/netbox_circuit_termination.py index a7f34913f..1c36ff070 100644 --- a/plugins/modules/netbox_circuit_termination.py +++ b/plugins/modules/netbox_circuit_termination.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_circuit_type.py b/plugins/modules/netbox_circuit_type.py index 81c35eab2..62a8959ea 100644 --- a/plugins/modules/netbox_circuit_type.py +++ b/plugins/modules/netbox_circuit_type.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index d34752e74..e32cef519 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_cluster_group.py b/plugins/modules/netbox_cluster_group.py index df2960c9e..7ebaecb25 100644 --- a/plugins/modules/netbox_cluster_group.py +++ b/plugins/modules/netbox_cluster_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_cluster_type.py b/plugins/modules/netbox_cluster_type.py index 0cc765133..655f02d77 100644 --- a/plugins/modules/netbox_cluster_type.py +++ b/plugins/modules/netbox_cluster_type.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index 2362af301..356e44e80 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_port_template.py b/plugins/modules/netbox_console_port_template.py index 44f4fb582..d3b0d3fc9 100644 --- a/plugins/modules/netbox_console_port_template.py +++ b/plugins/modules/netbox_console_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index af72f3cd0..e8827ecaa 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_server_port_template.py b/plugins/modules/netbox_console_server_port_template.py index dbf5114b5..1005c1bb9 100644 --- a/plugins/modules/netbox_console_server_port_template.py +++ b/plugins/modules/netbox_console_server_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index a2b6c41b5..4f0d24e58 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -43,7 +43,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index 47440e3b4..1bc159e11 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_bay_template.py b/plugins/modules/netbox_device_bay_template.py index 34ce708a4..79ddb6af1 100644 --- a/plugins/modules/netbox_device_bay_template.py +++ b/plugins/modules/netbox_device_bay_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index 93d10a83c..ab6ddfa1e 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_interface_template.py b/plugins/modules/netbox_device_interface_template.py index c4514b7c9..bb6911663 100644 --- a/plugins/modules/netbox_device_interface_template.py +++ b/plugins/modules/netbox_device_interface_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_role.py b/plugins/modules/netbox_device_role.py index a1505c6a1..e7459970d 100644 --- a/plugins/modules/netbox_device_role.py +++ b/plugins/modules/netbox_device_role.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 52ac73771..e5138fc46 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index 0b0a5e61f..9743b5dbb 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_front_port_template.py b/plugins/modules/netbox_front_port_template.py index b689ffed6..4bb290818 100644 --- a/plugins/modules/netbox_front_port_template.py +++ b/plugins/modules/netbox_front_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index 2974dffb6..5784adfe1 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 83d9f3096..ebbd2448a 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -43,7 +43,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_ipam_role.py b/plugins/modules/netbox_ipam_role.py index 261649bc8..9e0654dfc 100644 --- a/plugins/modules/netbox_ipam_role.py +++ b/plugins/modules/netbox_ipam_role.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_manufacturer.py b/plugins/modules/netbox_manufacturer.py index d5630d5db..2afe317d7 100644 --- a/plugins/modules/netbox_manufacturer.py +++ b/plugins/modules/netbox_manufacturer.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_platform.py b/plugins/modules/netbox_platform.py index 0c576a2c4..8ed57990c 100644 --- a/plugins/modules/netbox_platform.py +++ b/plugins/modules/netbox_platform.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index 520db0f04..46e4c2eb0 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 57269d5b8..4dc1993e5 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_outlet_template.py b/plugins/modules/netbox_power_outlet_template.py index 1d998329f..f4d17bd87 100644 --- a/plugins/modules/netbox_power_outlet_template.py +++ b/plugins/modules/netbox_power_outlet_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_panel.py b/plugins/modules/netbox_power_panel.py index da529cf43..d3c99a8c3 100644 --- a/plugins/modules/netbox_power_panel.py +++ b/plugins/modules/netbox_power_panel.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index 2b5c9376b..26dc00bd8 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_port_template.py b/plugins/modules/netbox_power_port_template.py index f023bdf0f..d780f7cf6 100644 --- a/plugins/modules/netbox_power_port_template.py +++ b/plugins/modules/netbox_power_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index 8a11667f5..03961eebd 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -43,7 +43,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index ca7c9e5c2..abe9ffb33 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 322800f6f..d08682531 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rack_group.py b/plugins/modules/netbox_rack_group.py index f822ba1bc..04132ea14 100644 --- a/plugins/modules/netbox_rack_group.py +++ b/plugins/modules/netbox_rack_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rack_role.py b/plugins/modules/netbox_rack_role.py index a18943521..8326293b7 100644 --- a/plugins/modules/netbox_rack_role.py +++ b/plugins/modules/netbox_rack_role.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index 42358ea24..426e8323a 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rear_port_template.py b/plugins/modules/netbox_rear_port_template.py index 3ca539dc3..5cfebceb6 100644 --- a/plugins/modules/netbox_rear_port_template.py +++ b/plugins/modules/netbox_rear_port_template.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_region.py b/plugins/modules/netbox_region.py index d8a59f1e5..d0ee08989 100644 --- a/plugins/modules/netbox_region.py +++ b/plugins/modules/netbox_region.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rir.py b/plugins/modules/netbox_rir.py index eed7bc034..3138a1144 100644 --- a/plugins/modules/netbox_rir.py +++ b/plugins/modules/netbox_rir.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index b1c0c600e..8bb361485 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index b1b476386..6fbeab106 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -40,7 +40,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index be70163fe..57db343e6 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_tag.py b/plugins/modules/netbox_tag.py index 9e75a479b..75084532f 100644 --- a/plugins/modules/netbox_tag.py +++ b/plugins/modules/netbox_tag.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index 2f287de2a..4eb135a7f 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_tenant_group.py b/plugins/modules/netbox_tenant_group.py index 79b272b50..5f405cd9b 100644 --- a/plugins/modules/netbox_tenant_group.py +++ b/plugins/modules/netbox_tenant_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 3bde1f893..97095f654 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -42,7 +42,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 132d01251..267eeba2d 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 9078275da..91d0f4b55 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vlan_group.py b/plugins/modules/netbox_vlan_group.py index 08af37876..26c3abd52 100644 --- a/plugins/modules/netbox_vlan_group.py +++ b/plugins/modules/netbox_vlan_group.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index fd8461544..6791434c2 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 5c696a735..831e371cb 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -41,7 +41,7 @@ cert: description: - Certificate path - default: true + default: false required: false type: raw data: From 5561a0ad1134692b6118d95ba8f1e3f2d91edfce Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 5 Aug 2021 12:34:38 -0400 Subject: [PATCH 05/24] remove cert default --- plugins/modules/netbox_cable.py | 1 - plugins/modules/netbox_circuit.py | 1 - plugins/modules/netbox_circuit_termination.py | 1 - plugins/modules/netbox_circuit_type.py | 1 - plugins/modules/netbox_cluster.py | 1 - plugins/modules/netbox_cluster_group.py | 1 - plugins/modules/netbox_cluster_type.py | 1 - plugins/modules/netbox_console_port.py | 1 - plugins/modules/netbox_console_port_template.py | 1 - plugins/modules/netbox_console_server_port.py | 1 - plugins/modules/netbox_console_server_port_template.py | 1 - plugins/modules/netbox_device.py | 1 - plugins/modules/netbox_device_bay.py | 1 - plugins/modules/netbox_device_bay_template.py | 1 - plugins/modules/netbox_device_interface.py | 1 - plugins/modules/netbox_device_interface_template.py | 1 - plugins/modules/netbox_device_role.py | 1 - plugins/modules/netbox_device_type.py | 1 - plugins/modules/netbox_front_port.py | 1 - plugins/modules/netbox_front_port_template.py | 1 - plugins/modules/netbox_inventory_item.py | 1 - plugins/modules/netbox_ip_address.py | 1 - plugins/modules/netbox_ipam_role.py | 1 - plugins/modules/netbox_manufacturer.py | 1 - plugins/modules/netbox_platform.py | 1 - plugins/modules/netbox_power_feed.py | 1 - plugins/modules/netbox_power_outlet.py | 1 - plugins/modules/netbox_power_outlet_template.py | 1 - plugins/modules/netbox_power_panel.py | 1 - plugins/modules/netbox_power_port.py | 1 - plugins/modules/netbox_power_port_template.py | 1 - plugins/modules/netbox_prefix.py | 1 - plugins/modules/netbox_provider.py | 1 - plugins/modules/netbox_rack.py | 1 - plugins/modules/netbox_rack_group.py | 1 - plugins/modules/netbox_rack_role.py | 1 - plugins/modules/netbox_rear_port.py | 1 - plugins/modules/netbox_rear_port_template.py | 1 - plugins/modules/netbox_region.py | 1 - plugins/modules/netbox_rir.py | 1 - plugins/modules/netbox_route_target.py | 1 - plugins/modules/netbox_service.py | 1 - plugins/modules/netbox_site.py | 1 - plugins/modules/netbox_tag.py | 1 - plugins/modules/netbox_tenant.py | 1 - plugins/modules/netbox_tenant_group.py | 1 - plugins/modules/netbox_virtual_chassis.py | 1 - plugins/modules/netbox_virtual_machine.py | 1 - plugins/modules/netbox_vlan.py | 1 - plugins/modules/netbox_vlan_group.py | 1 - plugins/modules/netbox_vm_interface.py | 1 - plugins/modules/netbox_vrf.py | 1 - 52 files changed, 52 deletions(-) diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index d82cf4cb4..e96dcd6e5 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index 73e64f89c..f0733ef55 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_circuit_termination.py b/plugins/modules/netbox_circuit_termination.py index 1c36ff070..f7f46f4d4 100644 --- a/plugins/modules/netbox_circuit_termination.py +++ b/plugins/modules/netbox_circuit_termination.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_circuit_type.py b/plugins/modules/netbox_circuit_type.py index 62a8959ea..b9b156709 100644 --- a/plugins/modules/netbox_circuit_type.py +++ b/plugins/modules/netbox_circuit_type.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index e32cef519..889e94ec2 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_cluster_group.py b/plugins/modules/netbox_cluster_group.py index 7ebaecb25..130056b3a 100644 --- a/plugins/modules/netbox_cluster_group.py +++ b/plugins/modules/netbox_cluster_group.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_cluster_type.py b/plugins/modules/netbox_cluster_type.py index 655f02d77..6f225258e 100644 --- a/plugins/modules/netbox_cluster_type.py +++ b/plugins/modules/netbox_cluster_type.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index 356e44e80..e962dfc48 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_port_template.py b/plugins/modules/netbox_console_port_template.py index d3b0d3fc9..6464b3e16 100644 --- a/plugins/modules/netbox_console_port_template.py +++ b/plugins/modules/netbox_console_port_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index e8827ecaa..f68b10272 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_console_server_port_template.py b/plugins/modules/netbox_console_server_port_template.py index 1005c1bb9..5b139d9d4 100644 --- a/plugins/modules/netbox_console_server_port_template.py +++ b/plugins/modules/netbox_console_server_port_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index 4f0d24e58..3f0677e71 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -43,7 +43,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index 1bc159e11..b3e886c21 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_bay_template.py b/plugins/modules/netbox_device_bay_template.py index 79ddb6af1..6aa102719 100644 --- a/plugins/modules/netbox_device_bay_template.py +++ b/plugins/modules/netbox_device_bay_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index ab6ddfa1e..7ef49f56a 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_interface_template.py b/plugins/modules/netbox_device_interface_template.py index bb6911663..de7bd9425 100644 --- a/plugins/modules/netbox_device_interface_template.py +++ b/plugins/modules/netbox_device_interface_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_role.py b/plugins/modules/netbox_device_role.py index e7459970d..9ff42d672 100644 --- a/plugins/modules/netbox_device_role.py +++ b/plugins/modules/netbox_device_role.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index e5138fc46..2bcb9f9bd 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index 9743b5dbb..49ea0e28a 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_front_port_template.py b/plugins/modules/netbox_front_port_template.py index 4bb290818..1cb7ec5f4 100644 --- a/plugins/modules/netbox_front_port_template.py +++ b/plugins/modules/netbox_front_port_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index 5784adfe1..750ddc75e 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index ebbd2448a..2fae5d500 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -43,7 +43,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_ipam_role.py b/plugins/modules/netbox_ipam_role.py index 9e0654dfc..9c2077ff0 100644 --- a/plugins/modules/netbox_ipam_role.py +++ b/plugins/modules/netbox_ipam_role.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_manufacturer.py b/plugins/modules/netbox_manufacturer.py index 2afe317d7..dff73bf97 100644 --- a/plugins/modules/netbox_manufacturer.py +++ b/plugins/modules/netbox_manufacturer.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_platform.py b/plugins/modules/netbox_platform.py index 8ed57990c..2695cdf3c 100644 --- a/plugins/modules/netbox_platform.py +++ b/plugins/modules/netbox_platform.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index 46e4c2eb0..ef9d14c83 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 4dc1993e5..44a45486b 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_outlet_template.py b/plugins/modules/netbox_power_outlet_template.py index f4d17bd87..9318a7652 100644 --- a/plugins/modules/netbox_power_outlet_template.py +++ b/plugins/modules/netbox_power_outlet_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_panel.py b/plugins/modules/netbox_power_panel.py index d3c99a8c3..17a47793f 100644 --- a/plugins/modules/netbox_power_panel.py +++ b/plugins/modules/netbox_power_panel.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index 26dc00bd8..b29f1b8f3 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_power_port_template.py b/plugins/modules/netbox_power_port_template.py index d780f7cf6..0f73ca4ee 100644 --- a/plugins/modules/netbox_power_port_template.py +++ b/plugins/modules/netbox_power_port_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index 03961eebd..61f091c59 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -43,7 +43,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index abe9ffb33..c54f9db00 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index d08682531..6a61a1cbd 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rack_group.py b/plugins/modules/netbox_rack_group.py index 04132ea14..6462f0b88 100644 --- a/plugins/modules/netbox_rack_group.py +++ b/plugins/modules/netbox_rack_group.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rack_role.py b/plugins/modules/netbox_rack_role.py index 8326293b7..2d546206a 100644 --- a/plugins/modules/netbox_rack_role.py +++ b/plugins/modules/netbox_rack_role.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index 426e8323a..b52f474b6 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rear_port_template.py b/plugins/modules/netbox_rear_port_template.py index 5cfebceb6..cb8c4e1f2 100644 --- a/plugins/modules/netbox_rear_port_template.py +++ b/plugins/modules/netbox_rear_port_template.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_region.py b/plugins/modules/netbox_region.py index d0ee08989..a1b54e501 100644 --- a/plugins/modules/netbox_region.py +++ b/plugins/modules/netbox_region.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_rir.py b/plugins/modules/netbox_rir.py index 3138a1144..4e9571c2a 100644 --- a/plugins/modules/netbox_rir.py +++ b/plugins/modules/netbox_rir.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index 8bb361485..eb3eecb78 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index 6fbeab106..f950fa4b9 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -40,7 +40,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index 57db343e6..e0c06b5de 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_tag.py b/plugins/modules/netbox_tag.py index 75084532f..b833222c8 100644 --- a/plugins/modules/netbox_tag.py +++ b/plugins/modules/netbox_tag.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index 4eb135a7f..389424b7b 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_tenant_group.py b/plugins/modules/netbox_tenant_group.py index 5f405cd9b..c734234e8 100644 --- a/plugins/modules/netbox_tenant_group.py +++ b/plugins/modules/netbox_tenant_group.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 97095f654..18c2aec02 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -42,7 +42,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 267eeba2d..9bc2f1ea8 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 91d0f4b55..2214a8a17 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vlan_group.py b/plugins/modules/netbox_vlan_group.py index 26c3abd52..6f10d000f 100644 --- a/plugins/modules/netbox_vlan_group.py +++ b/plugins/modules/netbox_vlan_group.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index 6791434c2..92eab1abb 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 831e371cb..3f717d0e4 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -41,7 +41,6 @@ cert: description: - Certificate path - default: false required: false type: raw data: From 437dfaf195a68c7e5679282a5f2003d3b7114b85 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Thu, 5 Aug 2021 13:03:43 -0400 Subject: [PATCH 06/24] fix last remaining missing cert reference --- plugins/modules/netbox_aggregate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/modules/netbox_aggregate.py b/plugins/modules/netbox_aggregate.py index b3ee1066d..dfdccfc4f 100644 --- a/plugins/modules/netbox_aggregate.py +++ b/plugins/modules/netbox_aggregate.py @@ -38,6 +38,11 @@ - "The token created within Netbox to authorize API access" required: true type: str + cert: + description: + - Certificate path + required: false + type: raw data: description: - "Defines the aggregate configuration" From 0322a4803c28e6ac0b42b17b152ec3b0a63b05c0 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Fri, 10 Sep 2021 22:46:49 -0400 Subject: [PATCH 07/24] address list but elements is not defined CI error --- docs/getting_started/contributing/modules/new_module.rst | 2 +- plugins/modules/netbox_aggregate.py | 2 +- plugins/modules/netbox_circuit.py | 2 +- plugins/modules/netbox_cluster.py | 2 +- plugins/modules/netbox_console_port.py | 2 +- plugins/modules/netbox_console_server_port.py | 2 +- plugins/modules/netbox_device.py | 2 +- plugins/modules/netbox_device_bay.py | 2 +- plugins/modules/netbox_device_interface.py | 2 +- plugins/modules/netbox_device_type.py | 2 +- plugins/modules/netbox_front_port.py | 2 +- plugins/modules/netbox_inventory_item.py | 2 +- plugins/modules/netbox_ip_address.py | 2 +- plugins/modules/netbox_power_feed.py | 2 +- plugins/modules/netbox_power_outlet.py | 2 +- plugins/modules/netbox_power_port.py | 2 +- plugins/modules/netbox_prefix.py | 2 +- plugins/modules/netbox_provider.py | 2 +- plugins/modules/netbox_rack.py | 2 +- plugins/modules/netbox_rear_port.py | 2 +- plugins/modules/netbox_route_target.py | 2 +- plugins/modules/netbox_service.py | 2 +- plugins/modules/netbox_site.py | 2 +- plugins/modules/netbox_tenant.py | 2 +- plugins/modules/netbox_virtual_chassis.py | 2 +- plugins/modules/netbox_virtual_machine.py | 2 +- plugins/modules/netbox_vlan.py | 2 +- plugins/modules/netbox_vm_interface.py | 2 +- plugins/modules/netbox_vrf.py | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/getting_started/contributing/modules/new_module.rst b/docs/getting_started/contributing/modules/new_module.rst index f2799b8c9..88c63ca88 100644 --- a/docs/getting_started/contributing/modules/new_module.rst +++ b/docs/getting_started/contributing/modules/new_module.rst @@ -282,7 +282,7 @@ Let's move onto the ``main()`` function in the module and take a look at the req name=dict(required=True, type="str"), tenant=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_aggregate.py b/plugins/modules/netbox_aggregate.py index dfdccfc4f..7e1aef57c 100644 --- a/plugins/modules/netbox_aggregate.py +++ b/plugins/modules/netbox_aggregate.py @@ -175,7 +175,7 @@ def main(): rir=dict(required=False, type="raw"), date_added=dict(required=False, type="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index f0733ef55..39dfbef54 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -209,7 +209,7 @@ def main(): commit_rate=dict(required=False, type="int"), description=dict(required=False, type="str"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index 889e94ec2..558227801 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -196,7 +196,7 @@ def main(): site=dict(required=False, type="raw"), tenant=dict(required=False, type="raw"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index e962dfc48..419de17c7 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -202,7 +202,7 @@ def main(): type="str", ), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index f68b10272..9d8c91017 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -202,7 +202,7 @@ def main(): type="str", ), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index 3f0677e71..f1bb7025c 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -308,7 +308,7 @@ def main(): vc_position=dict(required=False, type="int"), vc_priority=dict(required=False, type="int"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), local_context_data=dict(required=False, type="dict"), custom_fields=dict(required=False, type="dict"), ), diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index b3e886c21..c33bd972a 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -169,7 +169,7 @@ def main(): name=dict(required=True, type="str"), description=dict(required=False, type="str"), installed_device=dict(required=False, type="raw"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index 7ef49f56a..dc0e6a9f1 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -311,7 +311,7 @@ def main(): mode=dict(required=False, type="raw"), untagged_vlan=dict(required=False, type="raw"), tagged_vlans=dict(required=False, type="raw"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), mark_connected=dict(required=False, type="bool"), custom_fields=dict(required=False, type="dict"), ), diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 2bcb9f9bd..6974d5099 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -212,7 +212,7 @@ def main(): type="str", ), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index 49ea0e28a..bdc7e3c07 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -222,7 +222,7 @@ def main(): rear_port=dict(required=True, type="raw"), rear_port_position=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index 750ddc75e..c9536c3c7 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -198,7 +198,7 @@ def main(): asset_tag=dict(required=False, type="str"), description=dict(required=False, type="str"), discovered=dict(required=False, type="bool", default=False), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 2fae5d500..4510b6890 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -360,7 +360,7 @@ def main(): virtual_machine=dict(required=False, type="str"), ), ), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index ef9d14c83..b1a379331 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -247,7 +247,7 @@ def main(): amperage=dict(required=False, type="int"), max_utilization=dict(required=False, type="int"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 44a45486b..59774c987 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -302,7 +302,7 @@ def main(): power_port=dict(required=False, type="raw"), feed_leg=dict(required=False, choices=["A", "B", "C"], type="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index b29f1b8f3..e30b70842 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -298,7 +298,7 @@ def main(): allocated_draw=dict(required=False, type="int"), maximum_draw=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index 61f091c59..bc112a32c 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -285,7 +285,7 @@ def main(): prefix_role=dict(required=False, type="raw"), is_pool=dict(required=False, type="bool"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index c54f9db00..906ddc9b9 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -194,7 +194,7 @@ def main(): noc_contact=dict(required=False, type="str"), admin_contact=dict(required=False, type="str"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 6a61a1cbd..462aea24b 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -299,7 +299,7 @@ def main(): required=False, type="str", choices=["Millimeters", "Inches",], ), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index b52f474b6..92aac1692 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -213,7 +213,7 @@ def main(): ), positions=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index eb3eecb78..ddcc34573 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -178,7 +178,7 @@ def main(): name=dict(required=True, type="str"), tenant=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index f950fa4b9..18b04ed1e 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -189,7 +189,7 @@ def main(): protocol=dict(required=True, type="raw"), ipaddresses=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index e0c06b5de..607a63d9d 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -265,7 +265,7 @@ def main(): contact_email=dict(required=False, type="str"), comments=dict(required=False, type="str"), slug=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index 389424b7b..f78f0b8e9 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -184,7 +184,7 @@ def main(): description=dict(required=False, type="str"), comments=dict(required=False, type="str"), slug=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 18c2aec02..1a5e93896 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -161,7 +161,7 @@ def main(): name=dict(required=False, type="str"), master=dict(required=False, type="raw"), domain=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 9bc2f1ea8..5bd025444 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -243,7 +243,7 @@ def main(): memory=dict(required=False, type="int"), disk=dict(required=False, type="int"), status=dict(required=False, type="raw"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), local_context_data=dict(required=False, type="dict"), comments=dict(required=False, type="str"), diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 2214a8a17..d970e95b4 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -204,7 +204,7 @@ def main(): status=dict(required=False, type="raw"), vlan_role=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index 92eab1abb..1c5d02d02 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -209,7 +209,7 @@ def main(): mode=dict(required=False, type="raw"), untagged_vlan=dict(required=False, type="raw"), tagged_vlans=dict(required=False, type="raw"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), ), ), ) diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 3f717d0e4..7fcc4e507 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -201,7 +201,7 @@ def main(): import_targets=dict(required=False, type="list", elements="str"), export_targets=dict(required=False, type="list", elements="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list"), + tags=dict(required=False, type="list", elements='str'), custom_fields=dict(required=False, type="dict"), ), ), From 22ec0b7180a3a7ade3800502fedb0557ba07de7c Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Fri, 10 Sep 2021 22:54:29 -0400 Subject: [PATCH 08/24] correct black linting quotes --- docs/getting_started/contributing/modules/new_module.rst | 2 +- plugins/modules/netbox_aggregate.py | 2 +- plugins/modules/netbox_circuit.py | 2 +- plugins/modules/netbox_cluster.py | 2 +- plugins/modules/netbox_console_port.py | 2 +- plugins/modules/netbox_console_server_port.py | 2 +- plugins/modules/netbox_device.py | 2 +- plugins/modules/netbox_device_bay.py | 2 +- plugins/modules/netbox_device_interface.py | 2 +- plugins/modules/netbox_device_type.py | 2 +- plugins/modules/netbox_front_port.py | 2 +- plugins/modules/netbox_inventory_item.py | 2 +- plugins/modules/netbox_ip_address.py | 2 +- plugins/modules/netbox_power_feed.py | 2 +- plugins/modules/netbox_power_outlet.py | 2 +- plugins/modules/netbox_power_port.py | 2 +- plugins/modules/netbox_prefix.py | 2 +- plugins/modules/netbox_provider.py | 2 +- plugins/modules/netbox_rack.py | 2 +- plugins/modules/netbox_rear_port.py | 2 +- plugins/modules/netbox_route_target.py | 2 +- plugins/modules/netbox_service.py | 2 +- plugins/modules/netbox_site.py | 2 +- plugins/modules/netbox_tenant.py | 2 +- plugins/modules/netbox_virtual_chassis.py | 2 +- plugins/modules/netbox_virtual_machine.py | 2 +- plugins/modules/netbox_vlan.py | 2 +- plugins/modules/netbox_vm_interface.py | 2 +- plugins/modules/netbox_vrf.py | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/getting_started/contributing/modules/new_module.rst b/docs/getting_started/contributing/modules/new_module.rst index 88c63ca88..42569923b 100644 --- a/docs/getting_started/contributing/modules/new_module.rst +++ b/docs/getting_started/contributing/modules/new_module.rst @@ -282,7 +282,7 @@ Let's move onto the ``main()`` function in the module and take a look at the req name=dict(required=True, type="str"), tenant=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_aggregate.py b/plugins/modules/netbox_aggregate.py index 7e1aef57c..f0be668e0 100644 --- a/plugins/modules/netbox_aggregate.py +++ b/plugins/modules/netbox_aggregate.py @@ -175,7 +175,7 @@ def main(): rir=dict(required=False, type="raw"), date_added=dict(required=False, type="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index 39dfbef54..61f6d6cfd 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -209,7 +209,7 @@ def main(): commit_rate=dict(required=False, type="int"), description=dict(required=False, type="str"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index 558227801..bda9375e5 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -196,7 +196,7 @@ def main(): site=dict(required=False, type="raw"), tenant=dict(required=False, type="raw"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index 419de17c7..c3c21865e 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -202,7 +202,7 @@ def main(): type="str", ), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index 9d8c91017..d1b27bdc2 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -202,7 +202,7 @@ def main(): type="str", ), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index f1bb7025c..f9d022bc3 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -308,7 +308,7 @@ def main(): vc_position=dict(required=False, type="int"), vc_priority=dict(required=False, type="int"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), local_context_data=dict(required=False, type="dict"), custom_fields=dict(required=False, type="dict"), ), diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index c33bd972a..54d65e7c9 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -169,7 +169,7 @@ def main(): name=dict(required=True, type="str"), description=dict(required=False, type="str"), installed_device=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index dc0e6a9f1..7d74513f3 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -311,7 +311,7 @@ def main(): mode=dict(required=False, type="raw"), untagged_vlan=dict(required=False, type="raw"), tagged_vlans=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), mark_connected=dict(required=False, type="bool"), custom_fields=dict(required=False, type="dict"), ), diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index 6974d5099..f859a061d 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -212,7 +212,7 @@ def main(): type="str", ), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index bdc7e3c07..c3ed95cd0 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -222,7 +222,7 @@ def main(): rear_port=dict(required=True, type="raw"), rear_port_position=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index c9536c3c7..51c7af9c1 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -198,7 +198,7 @@ def main(): asset_tag=dict(required=False, type="str"), description=dict(required=False, type="str"), discovered=dict(required=False, type="bool", default=False), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 4510b6890..62c9af36e 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -360,7 +360,7 @@ def main(): virtual_machine=dict(required=False, type="str"), ), ), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index b1a379331..81385bb03 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -247,7 +247,7 @@ def main(): amperage=dict(required=False, type="int"), max_utilization=dict(required=False, type="int"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 59774c987..19be2fcfa 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -302,7 +302,7 @@ def main(): power_port=dict(required=False, type="raw"), feed_leg=dict(required=False, choices=["A", "B", "C"], type="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index e30b70842..c707578c1 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -298,7 +298,7 @@ def main(): allocated_draw=dict(required=False, type="int"), maximum_draw=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index bc112a32c..bc5993f95 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -285,7 +285,7 @@ def main(): prefix_role=dict(required=False, type="raw"), is_pool=dict(required=False, type="bool"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index 906ddc9b9..b119cce71 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -194,7 +194,7 @@ def main(): noc_contact=dict(required=False, type="str"), admin_contact=dict(required=False, type="str"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 462aea24b..5a9d0a125 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -299,7 +299,7 @@ def main(): required=False, type="str", choices=["Millimeters", "Inches",], ), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index 92aac1692..f34c8bd75 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -213,7 +213,7 @@ def main(): ), positions=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index ddcc34573..c63db36d2 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -178,7 +178,7 @@ def main(): name=dict(required=True, type="str"), tenant=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index 18b04ed1e..c90705954 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -189,7 +189,7 @@ def main(): protocol=dict(required=True, type="raw"), ipaddresses=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index 607a63d9d..eb3c4b9ea 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -265,7 +265,7 @@ def main(): contact_email=dict(required=False, type="str"), comments=dict(required=False, type="str"), slug=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index f78f0b8e9..46ced1113 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -184,7 +184,7 @@ def main(): description=dict(required=False, type="str"), comments=dict(required=False, type="str"), slug=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 1a5e93896..f4df09c29 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -161,7 +161,7 @@ def main(): name=dict(required=False, type="str"), master=dict(required=False, type="raw"), domain=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 5bd025444..8149fe128 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -243,7 +243,7 @@ def main(): memory=dict(required=False, type="int"), disk=dict(required=False, type="int"), status=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), local_context_data=dict(required=False, type="dict"), comments=dict(required=False, type="str"), diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index d970e95b4..46ab9fbc5 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -204,7 +204,7 @@ def main(): status=dict(required=False, type="raw"), vlan_role=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index 1c5d02d02..898f80011 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -209,7 +209,7 @@ def main(): mode=dict(required=False, type="raw"), untagged_vlan=dict(required=False, type="raw"), tagged_vlans=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), ), ), ) diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 7fcc4e507..1bac0b13e 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -201,7 +201,7 @@ def main(): import_targets=dict(required=False, type="list", elements="str"), export_targets=dict(required=False, type="list", elements="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements='str'), + tags=dict(required=False, type="list", elements="str"), custom_fields=dict(required=False, type="dict"), ), ), From 29879887cfcffaf5939b7d38187ae462b808946f Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Fri, 10 Sep 2021 23:19:04 -0400 Subject: [PATCH 09/24] correct tags documentation --- docs/getting_started/contributing/modules/new_module.rst | 1 + plugins/inventory/nb_inventory.py | 4 ++++ plugins/modules/netbox_aggregate.py | 1 + plugins/modules/netbox_cable.py | 1 + plugins/modules/netbox_circuit.py | 1 + plugins/modules/netbox_cluster.py | 1 + plugins/modules/netbox_console_port.py | 1 + plugins/modules/netbox_console_server_port.py | 1 + plugins/modules/netbox_device.py | 1 + plugins/modules/netbox_device_bay.py | 1 + plugins/modules/netbox_device_interface.py | 1 + plugins/modules/netbox_device_type.py | 1 + plugins/modules/netbox_front_port.py | 1 + plugins/modules/netbox_inventory_item.py | 1 + plugins/modules/netbox_ip_address.py | 1 + plugins/modules/netbox_power_feed.py | 1 + plugins/modules/netbox_power_outlet.py | 1 + plugins/modules/netbox_power_port.py | 1 + plugins/modules/netbox_prefix.py | 1 + plugins/modules/netbox_provider.py | 1 + plugins/modules/netbox_rack.py | 1 + plugins/modules/netbox_rear_port.py | 1 + plugins/modules/netbox_route_target.py | 1 + plugins/modules/netbox_service.py | 2 ++ plugins/modules/netbox_site.py | 1 + plugins/modules/netbox_tenant.py | 1 + plugins/modules/netbox_virtual_chassis.py | 1 + plugins/modules/netbox_virtual_machine.py | 1 + plugins/modules/netbox_vlan.py | 1 + plugins/modules/netbox_vm_interface.py | 1 + plugins/modules/netbox_vrf.py | 3 +++ 31 files changed, 37 insertions(+) diff --git a/docs/getting_started/contributing/modules/new_module.rst b/docs/getting_started/contributing/modules/new_module.rst index 42569923b..dc4a32934 100644 --- a/docs/getting_started/contributing/modules/new_module.rst +++ b/docs/getting_started/contributing/modules/new_module.rst @@ -150,6 +150,7 @@ Now we need to update the ``DOCUMENTATION`` variable to match the module we're c - Any tags that the device may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/inventory/nb_inventory.py b/plugins/inventory/nb_inventory.py index 9ec94debb..132681eab 100644 --- a/plugins/inventory/nb_inventory.py +++ b/plugins/inventory/nb_inventory.py @@ -126,6 +126,7 @@ - I(rack_group) is supported on NetBox versions 2.10 or lower only - I(location) is supported on NetBox versions 2.11 or higher only type: list + elements: str elements: - sites - site @@ -162,14 +163,17 @@ query_filters: description: List of parameters passed to the query string for both devices and VMs (Multiple values may be separated by commas) type: list + elements: str default: [] device_query_filters: description: List of parameters passed to the query string for devices (Multiple values may be separated by commas) type: list + elements: str default: [] vm_query_filters: description: List of parameters passed to the query string for VMs (Multiple values may be separated by commas) type: list + elements: str default: [] timeout: description: Timeout for Netbox requests in seconds diff --git a/plugins/modules/netbox_aggregate.py b/plugins/modules/netbox_aggregate.py index f0be668e0..ce4e6c24f 100644 --- a/plugins/modules/netbox_aggregate.py +++ b/plugins/modules/netbox_aggregate.py @@ -73,6 +73,7 @@ - "Any tags that the aggregate may need to be associated with" required: false type: list + elements: str custom_fields: description: - "must exist in Netbox" diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index e96dcd6e5..e76522287 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -156,6 +156,7 @@ required: false type: list elements: str + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index 61f6d6cfd..0f99e0a75 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -99,6 +99,7 @@ - Any tags that the device may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index bda9375e5..8df6e874f 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -84,6 +84,7 @@ - Any tags that the cluster may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index c3c21865e..bd2222e95 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -89,6 +89,7 @@ - Any tags that the console port may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index d1b27bdc2..ce08b3d35 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -89,6 +89,7 @@ - Any tags that the console server port may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index f9d022bc3..fb61e684e 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -154,6 +154,7 @@ - Any tags that the device may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index 54d65e7c9..de57a44ee 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -72,6 +72,7 @@ - Any tags that the device bay may need to be associated with required: false type: list + elements: str type: dict required: true state: diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index 7d74513f3..66571d101 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -129,6 +129,7 @@ - Any tags that the interface may need to be associated with required: false type: list + elements: str mark_connected: description: - Mark an interface as connected without a cable attached (netbox >= 2.11 required) diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index f859a061d..b18e26c05 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -99,6 +99,7 @@ - Any tags that the device type may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index c3ed95cd0..697d618a7 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -100,6 +100,7 @@ - Any tags that the front port may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index 51c7af9c1..be0cf297c 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -94,6 +94,7 @@ - Any tags that the device may need to be associated with required: false type: list + elements: str required: true state: description: diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index 62c9af36e..d190039fa 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -155,6 +155,7 @@ - Any tags that the IP address may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index 81385bb03..d84ed3443 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -124,6 +124,7 @@ - Any tags that the power feed may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index 19be2fcfa..ebd54951b 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -144,6 +144,7 @@ - Any tags that the power outlet may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index c707578c1..62e1de51c 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -140,6 +140,7 @@ - Any tags that the power port may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index bc5993f95..eb41cb6ae 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -117,6 +117,7 @@ - Any tags that the prefix may need to be associated with required: false type: list + elements: str custom_fields: description: - Must exist in Netbox and in key/value format diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index b119cce71..4d3c25643 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -89,6 +89,7 @@ - Any tags that the device may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index 5a9d0a125..fd3f04e07 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -159,6 +159,7 @@ - Any tags that the rack may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index f34c8bd75..809bf8daa 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -95,6 +95,7 @@ - Any tags that the rear port may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index c63db36d2..fbb5bbf10 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -68,6 +68,7 @@ - Any tags that the device may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index c90705954..c6c968cb7 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -71,6 +71,7 @@ description: - Specifies which ports used by service (NetBox 2.10 and newer) type: list + elements: str elements: int protocol: description: @@ -92,6 +93,7 @@ - What tags to add/update required: false type: list + elements: str custom_fields: description: - Must exist in Netbox and in key/value format diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index eb3c4b9ea..5ec2ee34d 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -139,6 +139,7 @@ - Any tags that the prefix may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index 46ced1113..f2ae25706 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -78,6 +78,7 @@ - Any tags that the tenant may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index f4df09c29..7bf46f66f 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -70,6 +70,7 @@ - Any tags that the virtual chassis may need to be associated with required: false type: list + elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 8149fe128..8c225a524 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -113,6 +113,7 @@ - Any tags that the virtual machine may need to be associated with required: false type: list + elements: str custom_fields: description: - Must exist in Netbox diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 46ab9fbc5..2c2ee22b5 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -93,6 +93,7 @@ - Any tags that the vlan may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index 898f80011..7ecd96cd9 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -97,6 +97,7 @@ - Any tags that the prefix may need to be associated with required: false type: list + elements: str required: true type: dict state: diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 1bac0b13e..890b252a1 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -74,6 +74,7 @@ required: false type: list elements: str + elements: str version_added: 2.0.0 export_targets: description: @@ -81,6 +82,7 @@ required: false type: list elements: str + elements: str version_added: 2.0.0 description: description: @@ -92,6 +94,7 @@ - Any tags that the vrf may need to be associated with required: false type: list + elements: str custom_fields: description: - must exist in Netbox From 51b24114fb88445dc686553e58f4a9ecad72bf8e Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Fri, 10 Sep 2021 23:22:47 -0400 Subject: [PATCH 10/24] correct duplicate keys --- plugins/modules/netbox_vrf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index 890b252a1..bb5d3b192 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -74,7 +74,6 @@ required: false type: list elements: str - elements: str version_added: 2.0.0 export_targets: description: @@ -82,7 +81,6 @@ required: false type: list elements: str - elements: str version_added: 2.0.0 description: description: From 2567623c0ce8254c473b9c045b6441c2a02156d3 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Fri, 10 Sep 2021 23:53:31 -0400 Subject: [PATCH 11/24] correct key mistake find/replace --- plugins/inventory/nb_inventory.py | 4 ---- plugins/modules/netbox_cable.py | 1 - plugins/modules/netbox_service.py | 1 - 3 files changed, 6 deletions(-) diff --git a/plugins/inventory/nb_inventory.py b/plugins/inventory/nb_inventory.py index 132681eab..9ec94debb 100644 --- a/plugins/inventory/nb_inventory.py +++ b/plugins/inventory/nb_inventory.py @@ -126,7 +126,6 @@ - I(rack_group) is supported on NetBox versions 2.10 or lower only - I(location) is supported on NetBox versions 2.11 or higher only type: list - elements: str elements: - sites - site @@ -163,17 +162,14 @@ query_filters: description: List of parameters passed to the query string for both devices and VMs (Multiple values may be separated by commas) type: list - elements: str default: [] device_query_filters: description: List of parameters passed to the query string for devices (Multiple values may be separated by commas) type: list - elements: str default: [] vm_query_filters: description: List of parameters passed to the query string for VMs (Multiple values may be separated by commas) type: list - elements: str default: [] timeout: description: Timeout for Netbox requests in seconds diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index e76522287..e96dcd6e5 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -156,7 +156,6 @@ required: false type: list elements: str - elements: str state: description: - Use C(present) or C(absent) for adding or removing. diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index c6c968cb7..392409adc 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -72,7 +72,6 @@ - Specifies which ports used by service (NetBox 2.10 and newer) type: list elements: str - elements: int protocol: description: - Specifies which protocol used by service From a0194a883d3f51955c66e380a463f8e38180a3df Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 00:00:40 -0400 Subject: [PATCH 12/24] correct elements mistake in netbox_service --- plugins/modules/netbox_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index 392409adc..8159e8dab 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -71,7 +71,7 @@ description: - Specifies which ports used by service (NetBox 2.10 and newer) type: list - elements: str + elements: int protocol: description: - Specifies which protocol used by service From 18fd9ce3dc750ed3cce6792dae00ee718a98899b Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 00:20:38 -0400 Subject: [PATCH 13/24] poetry bump --- poetry.lock | 663 ++++++++++++++++++++++++++++------------------------ 1 file changed, 357 insertions(+), 306 deletions(-) diff --git a/poetry.lock b/poetry.lock index bf6149831..7bfb1ced4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -11,11 +11,11 @@ contextvars = {version = "2.4", markers = "python_version < \"3.7\""} [[package]] name = "aiofiles" -version = "0.6.0" +version = "0.7.0" description = "File support for asyncio." category = "main" optional = false -python-versions = "*" +python-versions = ">=3.6,<4.0" [[package]] name = "aiohttp" @@ -47,7 +47,7 @@ python-versions = "*" [[package]] name = "ansible-base" -version = "2.10.9" +version = "2.10.13" description = "Radically simple IT automation" category = "main" optional = false @@ -88,7 +88,7 @@ twiggy = ">=0.5.0" [[package]] name = "antsibull-changelog" -version = "0.10.0" +version = "0.12.0" description = "Changelog tool for Ansible-base and Ansible collections" category = "main" optional = false @@ -101,14 +101,6 @@ PyYAML = "*" rstcheck = ">=3,<4" semantic_version = "*" -[[package]] -name = "apipkg" -version = "1.5" -description = "apipkg: namespace control and lazy-import mechanism" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" - [[package]] name = "appdirs" version = "1.4.4" @@ -119,7 +111,7 @@ python-versions = "*" [[package]] name = "astroid" -version = "2.5.6" +version = "2.7.3" description = "An abstract syntax tree for Python with inference support." category = "main" optional = false @@ -128,6 +120,7 @@ python-versions = "~=3.6" [package.dependencies] lazy-object-proxy = ">=1.4.0" typed-ast = {version = ">=1.4.0,<1.5", markers = "implementation_name == \"cpython\" and python_version < \"3.8\""} +typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} wrapt = ">=1.11,<1.13" [[package]] @@ -201,7 +194,7 @@ d = ["aiohttp (>=3.3.2)", "aiohttp-cors"] [[package]] name = "certifi" -version = "2020.12.5" +version = "2021.5.30" description = "Python package for providing Mozilla's CA Bundle." category = "main" optional = false @@ -209,7 +202,7 @@ python-versions = "*" [[package]] name = "cffi" -version = "1.14.5" +version = "1.14.6" description = "Foreign Function Interface for Python calling C code." category = "main" optional = false @@ -226,17 +219,32 @@ category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +[[package]] +name = "charset-normalizer" +version = "2.0.4" +description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +category = "main" +optional = false +python-versions = ">=3.5.0" + +[package.extras] +unicode_backport = ["unicodedata2"] + [[package]] name = "click" -version = "7.1.2" +version = "8.0.1" description = "Composable command line interface toolkit" category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.6" + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} +importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} [[package]] name = "codecov" -version = "2.1.11" +version = "2.1.12" description = "Hosted coverage reports for GitHub, Bitbucket and Gitlab" category = "main" optional = false @@ -275,7 +283,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4" [[package]] name = "cryptography" -version = "3.4.7" +version = "3.4.8" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." category = "main" optional = false @@ -310,25 +318,22 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "execnet" -version = "1.8.0" +version = "1.9.0" description = "execnet: rapid multi-Python deployment" category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -[package.dependencies] -apipkg = ">=1.4" - [package.extras] testing = ["pre-commit"] [[package]] name = "idna" -version = "2.10" +version = "3.2" description = "Internationalized Domain Names in Applications (IDNA)" category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.5" [[package]] name = "idna-ssl" @@ -351,14 +356,17 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" [[package]] name = "immutables" -version = "0.15" +version = "0.16" description = "Immutable Collections" category = "main" optional = false -python-versions = ">=3.5" +python-versions = ">=3.6" + +[package.dependencies] +typing-extensions = {version = ">=3.7.4.3", markers = "python_version < \"3.8\""} [package.extras] -test = ["flake8 (>=3.8.4,<3.9.0)", "pycodestyle (>=2.6.0,<2.7.0)"] +test = ["flake8 (>=3.8.4,<3.9.0)", "pycodestyle (>=2.6.0,<2.7.0)", "mypy (>=0.910)", "pytest (>=6.2.4,<6.3.0)"] [[package]] name = "importlib-metadata" @@ -398,17 +406,17 @@ colors = ["colorama (>=0.4.3,<0.5.0)"] [[package]] name = "jinja2" -version = "2.11.3" +version = "3.0.1" description = "A very fast and expressive template engine." category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.6" [package.dependencies] -MarkupSafe = ">=0.23" +MarkupSafe = ">=2.0" [package.extras] -i18n = ["Babel (>=0.8)"] +i18n = ["Babel (>=2.7)"] [[package]] name = "jmespath" @@ -436,11 +444,11 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" [[package]] name = "markupsafe" -version = "1.1.1" +version = "2.0.1" description = "Safely add untrusted strings to HTML/XML markup." category = "main" optional = false -python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" +python-versions = ">=3.6" [[package]] name = "mccabe" @@ -484,11 +492,11 @@ pyparsing = ">=2.0.2" [[package]] name = "pathspec" -version = "0.8.1" +version = "0.9.0" description = "Utility library for gitignore style pattern matching of file paths." category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" [[package]] name = "perky" @@ -498,19 +506,32 @@ category = "main" optional = false python-versions = ">=3.5" +[[package]] +name = "platformdirs" +version = "2.3.0" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "main" +optional = false +python-versions = ">=3.6" + +[package.extras] +docs = ["Sphinx (>=4)", "furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)"] +test = ["appdirs (==1.4.4)", "pytest (>=6)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)"] + [[package]] name = "pluggy" -version = "0.13.1" +version = "1.0.0" description = "plugin and hook calling mechanisms for python" category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.6" [package.dependencies] importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} [package.extras] dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] [[package]] name = "py" @@ -530,7 +551,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" [[package]] name = "pydantic" -version = "1.7.3" +version = "1.7.4" description = "Data validation and settings management using python 3.6 type hinting" category = "main" optional = false @@ -546,7 +567,7 @@ typing_extensions = ["typing-extensions (>=3.7.2)"] [[package]] name = "pygments" -version = "2.9.0" +version = "2.10.0" description = "Pygments is a syntax highlighting package written in Python." category = "main" optional = false @@ -554,22 +575,23 @@ python-versions = ">=3.5" [[package]] name = "pylint" -version = "2.8.2" +version = "2.10.2" description = "python code static checker" category = "main" optional = false python-versions = "~=3.6" [package.dependencies] -astroid = ">=2.5.6,<2.7" +astroid = ">=2.7.2,<2.8" colorama = {version = "*", markers = "sys_platform == \"win32\""} isort = ">=4.2.5,<6" mccabe = ">=0.6,<0.7" +platformdirs = ">=2.2.0" toml = ">=0.7.1" [[package]] name = "pynetbox" -version = "6.1.2" +version = "6.1.3" description = "NetBox API client library" category = "main" optional = false @@ -589,7 +611,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" [[package]] name = "pytest" -version = "6.2.4" +version = "6.2.5" description = "pytest: simple powerful testing with Python" category = "main" optional = false @@ -602,7 +624,7 @@ colorama = {version = "*", markers = "sys_platform == \"win32\""} importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} iniconfig = "*" packaging = "*" -pluggy = ">=0.12,<1.0.0a1" +pluggy = ">=0.12,<2.0" py = ">=1.8.2" toml = "*" @@ -637,11 +659,11 @@ dev = ["pre-commit", "tox", "pytest-asyncio"] [[package]] name = "pytest-xdist" -version = "2.2.1" +version = "2.3.0" description = "pytest xdist plugin for distributed testing and loop-on-failing modes" category = "main" optional = false -python-versions = ">=3.5" +python-versions = ">=3.6" [package.dependencies] execnet = ">=1.1" @@ -670,7 +692,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" [[package]] name = "regex" -version = "2021.4.4" +version = "2021.8.28" description = "Alternative regular expression module, to replace re." category = "main" optional = false @@ -678,21 +700,21 @@ python-versions = "*" [[package]] name = "requests" -version = "2.25.1" +version = "2.26.0" description = "Python HTTP for Humans." category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" [package.dependencies] certifi = ">=2017.4.17" -chardet = ">=3.0.2,<5" -idna = ">=2.5,<3" +charset-normalizer = {version = ">=2.0.0,<2.1.0", markers = "python_version >= \"3\""} +idna = {version = ">=2.5,<4", markers = "python_version >= \"3\""} urllib3 = ">=1.21.1,<1.27" [package.extras] -security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"] socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] +use_chardet_on_py3 = ["chardet (>=3.0.2,<5)"] [[package]] name = "rstcheck" @@ -715,7 +737,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" [[package]] name = "sh" -version = "1.14.1" +version = "1.14.2" description = "Python subprocess replacement" category = "main" optional = false @@ -739,7 +761,7 @@ python-versions = "*" [[package]] name = "sphinx" -version = "4.0.0" +version = "4.1.2" description = "Python documentation generator" category = "main" optional = false @@ -751,22 +773,21 @@ babel = ">=1.3" colorama = {version = ">=0.3.5", markers = "sys_platform == \"win32\""} docutils = ">=0.14,<0.18" imagesize = "*" -Jinja2 = ">=2.3,<3.0" -MarkupSafe = "<2.0" +Jinja2 = ">=2.3" packaging = "*" Pygments = ">=2.0" requests = ">=2.5.0" snowballstemmer = ">=1.1" sphinxcontrib-applehelp = "*" sphinxcontrib-devhelp = "*" -sphinxcontrib-htmlhelp = "*" +sphinxcontrib-htmlhelp = ">=2.0.0" sphinxcontrib-jsmath = "*" sphinxcontrib-qthelp = "*" -sphinxcontrib-serializinghtml = "*" +sphinxcontrib-serializinghtml = ">=1.1.5" [package.extras] docs = ["sphinxcontrib-websupport"] -lint = ["flake8 (>=3.5.0)", "isort", "mypy (>=0.800)", "docutils-stubs"] +lint = ["flake8 (>=3.5.0)", "isort", "mypy (>=0.900)", "docutils-stubs", "types-typed-ast", "types-pkg-resources", "types-requests"] test = ["pytest", "pytest-cov", "html5lib", "cython", "typed-ast"] [[package]] @@ -795,11 +816,11 @@ test = ["pytest"] [[package]] name = "sphinxcontrib-htmlhelp" -version = "1.0.3" +version = "2.0.0" description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files" category = "main" optional = false -python-versions = ">=3.5" +python-versions = ">=3.6" [package.extras] lint = ["flake8", "mypy", "docutils-stubs"] @@ -830,7 +851,7 @@ test = ["pytest"] [[package]] name = "sphinxcontrib-serializinghtml" -version = "1.1.4" +version = "1.1.5" description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)." category = "main" optional = false @@ -850,7 +871,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" [[package]] name = "twiggy" -version = "0.5.0" +version = "0.5.1" description = "a Pythonic logger" category = "main" optional = false @@ -869,7 +890,7 @@ python-versions = "*" [[package]] name = "typing-extensions" -version = "3.10.0.0" +version = "3.10.0.2" description = "Backported and Experimental Type Hints for Python 3.5+" category = "main" optional = false @@ -877,16 +898,16 @@ python-versions = "*" [[package]] name = "urllib3" -version = "1.26.4" +version = "1.26.6" description = "HTTP library with thread-safe connection pooling, file post, and more." category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" [package.extras] +brotli = ["brotlipy (>=0.6.0)"] secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"] socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] -brotli = ["brotlipy (>=0.6.0)"] [[package]] name = "wrapt" @@ -911,7 +932,7 @@ typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""} [[package]] name = "zipp" -version = "3.4.1" +version = "3.5.0" description = "Backport of pathlib-compatible object wrapper for zip files" category = "main" optional = false @@ -919,7 +940,7 @@ python-versions = ">=3.6" [package.extras] docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] -testing = ["pytest (>=4.6)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "pytest-enabler", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] +testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] [metadata] lock-version = "1.1" @@ -932,8 +953,8 @@ aiocontextvars = [ {file = "aiocontextvars-0.2.2.tar.gz", hash = "sha256:f027372dc48641f683c559f247bd84962becaacdc9ba711d583c3871fb5652aa"}, ] aiofiles = [ - {file = "aiofiles-0.6.0-py3-none-any.whl", hash = "sha256:bd3019af67f83b739f8e4053c6c0512a7f545b9a8d91aaeab55e6e0f9d123c27"}, - {file = "aiofiles-0.6.0.tar.gz", hash = "sha256:e0281b157d3d5d59d803e3f4557dcc9a3dff28a4dd4829a9ff478adae50ca092"}, + {file = "aiofiles-0.7.0-py3-none-any.whl", hash = "sha256:c67a6823b5f23fcab0a2595a289cec7d8c863ffcb4322fb8cd6b90400aedfdbc"}, + {file = "aiofiles-0.7.0.tar.gz", hash = "sha256:a1c4fc9b2ff81568c83e21392a82f344ea9d23da906e4f6a52662764545e19d4"}, ] aiohttp = [ {file = "aiohttp-3.7.4.post0-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:3cf75f7cdc2397ed4442594b935a11ed5569961333d49b7539ea741be2cc79d5"}, @@ -979,27 +1000,23 @@ alabaster = [ {file = "alabaster-0.7.12.tar.gz", hash = "sha256:a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02"}, ] ansible-base = [ - {file = "ansible-base-2.10.9.tar.gz", hash = "sha256:04635d3e08fc29358c76b8e7f1e9db0ce443fb09ce30b2acc6cacaad165f2151"}, + {file = "ansible-base-2.10.13.tar.gz", hash = "sha256:d2c29b1946e5ae08784a0762b8c48c32f835e4648d6f997a6c2a81b78ff4f3ad"}, ] antsibull = [ {file = "antsibull-0.25.0-py3-none-any.whl", hash = "sha256:2f75baa501b857b1b2a1310dd3ac442cebd94cab60ebc984454dac012a1137ff"}, {file = "antsibull-0.25.0.tar.gz", hash = "sha256:a82c9f5bd77b39c5215f22317931b497ac36fa27045537262aae27aa3451af9a"}, ] antsibull-changelog = [ - {file = "antsibull-changelog-0.10.0.tar.gz", hash = "sha256:715a19a072a511786ebb2be0032ea37e4e0ad70700e3e989f68d22dcc0a529af"}, - {file = "antsibull_changelog-0.10.0-py3-none-any.whl", hash = "sha256:35cdeed96637f06ea4d8bfe972199d417dabc0fb96379a8aecfb9ec33a3155ca"}, -] -apipkg = [ - {file = "apipkg-1.5-py2.py3-none-any.whl", hash = "sha256:58587dd4dc3daefad0487f6d9ae32b4542b185e1c36db6993290e7c41ca2b47c"}, - {file = "apipkg-1.5.tar.gz", hash = "sha256:37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6"}, + {file = "antsibull-changelog-0.12.0.tar.gz", hash = "sha256:075625b4c21c4f49318880fbeae9164bef4e57867d869849493df23ddb92fd3d"}, + {file = "antsibull_changelog-0.12.0-py3-none-any.whl", hash = "sha256:b38d5a6fbf5fa5e46b8610d6da6dc3cf7403817513c07387c06ba68526a0c6dd"}, ] appdirs = [ {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"}, {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"}, ] astroid = [ - {file = "astroid-2.5.6-py3-none-any.whl", hash = "sha256:4db03ab5fc3340cf619dbc25e42c2cc3755154ce6009469766d7143d1fc2ee4e"}, - {file = "astroid-2.5.6.tar.gz", hash = "sha256:8a398dfce302c13f14bab13e2b14fe385d32b73f4e4853b9bdfb64598baa1975"}, + {file = "astroid-2.7.3-py3-none-any.whl", hash = "sha256:dc1e8b28427d6bbef6b8842b18765ab58f558c42bb80540bd7648c98412af25e"}, + {file = "astroid-2.7.3.tar.gz", hash = "sha256:3b680ce0419b8a771aba6190139a3998d14b413852506d99aff8dc2bf65ee67c"}, ] async-timeout = [ {file = "async-timeout-3.0.1.tar.gz", hash = "sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f"}, @@ -1026,60 +1043,72 @@ black = [ {file = "black-19.10b0.tar.gz", hash = "sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539"}, ] certifi = [ - {file = "certifi-2020.12.5-py2.py3-none-any.whl", hash = "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830"}, - {file = "certifi-2020.12.5.tar.gz", hash = "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c"}, + {file = "certifi-2021.5.30-py2.py3-none-any.whl", hash = "sha256:50b1e4f8446b06f41be7dd6338db18e0990601dce795c2b1686458aa7e8fa7d8"}, + {file = "certifi-2021.5.30.tar.gz", hash = "sha256:2bbf76fd432960138b3ef6dda3dde0544f27cbf8546c458e60baf371917ba9ee"}, ] cffi = [ - {file = "cffi-1.14.5-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:bb89f306e5da99f4d922728ddcd6f7fcebb3241fc40edebcb7284d7514741991"}, - {file = "cffi-1.14.5-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:34eff4b97f3d982fb93e2831e6750127d1355a923ebaeeb565407b3d2f8d41a1"}, - {file = "cffi-1.14.5-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:99cd03ae7988a93dd00bcd9d0b75e1f6c426063d6f03d2f90b89e29b25b82dfa"}, - {file = "cffi-1.14.5-cp27-cp27m-win32.whl", hash = "sha256:65fa59693c62cf06e45ddbb822165394a288edce9e276647f0046e1ec26920f3"}, - {file = "cffi-1.14.5-cp27-cp27m-win_amd64.whl", hash = "sha256:51182f8927c5af975fece87b1b369f722c570fe169f9880764b1ee3bca8347b5"}, - {file = "cffi-1.14.5-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:43e0b9d9e2c9e5d152946b9c5fe062c151614b262fda2e7b201204de0b99e482"}, - {file = "cffi-1.14.5-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:cbde590d4faaa07c72bf979734738f328d239913ba3e043b1e98fe9a39f8b2b6"}, - {file = "cffi-1.14.5-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:5de7970188bb46b7bf9858eb6890aad302577a5f6f75091fd7cdd3ef13ef3045"}, - {file = "cffi-1.14.5-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:a465da611f6fa124963b91bf432d960a555563efe4ed1cc403ba5077b15370aa"}, - {file = "cffi-1.14.5-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:d42b11d692e11b6634f7613ad8df5d6d5f8875f5d48939520d351007b3c13406"}, - {file = "cffi-1.14.5-cp35-cp35m-win32.whl", hash = "sha256:72d8d3ef52c208ee1c7b2e341f7d71c6fd3157138abf1a95166e6165dd5d4369"}, - {file = "cffi-1.14.5-cp35-cp35m-win_amd64.whl", hash = "sha256:29314480e958fd8aab22e4a58b355b629c59bf5f2ac2492b61e3dc06d8c7a315"}, - {file = "cffi-1.14.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:3d3dd4c9e559eb172ecf00a2a7517e97d1e96de2a5e610bd9b68cea3925b4892"}, - {file = "cffi-1.14.5-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:48e1c69bbacfc3d932221851b39d49e81567a4d4aac3b21258d9c24578280058"}, - {file = "cffi-1.14.5-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:69e395c24fc60aad6bb4fa7e583698ea6cc684648e1ffb7fe85e3c1ca131a7d5"}, - {file = "cffi-1.14.5-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:9e93e79c2551ff263400e1e4be085a1210e12073a31c2011dbbda14bda0c6132"}, - {file = "cffi-1.14.5-cp36-cp36m-win32.whl", hash = "sha256:58e3f59d583d413809d60779492342801d6e82fefb89c86a38e040c16883be53"}, - {file = "cffi-1.14.5-cp36-cp36m-win_amd64.whl", hash = "sha256:005a36f41773e148deac64b08f233873a4d0c18b053d37da83f6af4d9087b813"}, - {file = "cffi-1.14.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:2894f2df484ff56d717bead0a5c2abb6b9d2bf26d6960c4604d5c48bbc30ee73"}, - {file = "cffi-1.14.5-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:0857f0ae312d855239a55c81ef453ee8fd24136eaba8e87a2eceba644c0d4c06"}, - {file = "cffi-1.14.5-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:cd2868886d547469123fadc46eac7ea5253ea7fcb139f12e1dfc2bbd406427d1"}, - {file = "cffi-1.14.5-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:35f27e6eb43380fa080dccf676dece30bef72e4a67617ffda586641cd4508d49"}, - {file = "cffi-1.14.5-cp37-cp37m-win32.whl", hash = "sha256:9ff227395193126d82e60319a673a037d5de84633f11279e336f9c0f189ecc62"}, - {file = "cffi-1.14.5-cp37-cp37m-win_amd64.whl", hash = "sha256:9cf8022fb8d07a97c178b02327b284521c7708d7c71a9c9c355c178ac4bbd3d4"}, - {file = "cffi-1.14.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8b198cec6c72df5289c05b05b8b0969819783f9418e0409865dac47288d2a053"}, - {file = "cffi-1.14.5-cp38-cp38-manylinux1_i686.whl", hash = "sha256:ad17025d226ee5beec591b52800c11680fca3df50b8b29fe51d882576e039ee0"}, - {file = "cffi-1.14.5-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:6c97d7350133666fbb5cf4abdc1178c812cb205dc6f41d174a7b0f18fb93337e"}, - {file = "cffi-1.14.5-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:8ae6299f6c68de06f136f1f9e69458eae58f1dacf10af5c17353eae03aa0d827"}, - {file = "cffi-1.14.5-cp38-cp38-win32.whl", hash = "sha256:b85eb46a81787c50650f2392b9b4ef23e1f126313b9e0e9013b35c15e4288e2e"}, - {file = "cffi-1.14.5-cp38-cp38-win_amd64.whl", hash = "sha256:1f436816fc868b098b0d63b8920de7d208c90a67212546d02f84fe78a9c26396"}, - {file = "cffi-1.14.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:1071534bbbf8cbb31b498d5d9db0f274f2f7a865adca4ae429e147ba40f73dea"}, - {file = "cffi-1.14.5-cp39-cp39-manylinux1_i686.whl", hash = "sha256:9de2e279153a443c656f2defd67769e6d1e4163952b3c622dcea5b08a6405322"}, - {file = "cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:6e4714cc64f474e4d6e37cfff31a814b509a35cb17de4fb1999907575684479c"}, - {file = "cffi-1.14.5-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:158d0d15119b4b7ff6b926536763dc0714313aa59e320ddf787502c70c4d4bee"}, - {file = "cffi-1.14.5-cp39-cp39-win32.whl", hash = "sha256:afb29c1ba2e5a3736f1c301d9d0abe3ec8b86957d04ddfa9d7a6a42b9367e396"}, - {file = "cffi-1.14.5-cp39-cp39-win_amd64.whl", hash = "sha256:f2d45f97ab6bb54753eab54fffe75aaf3de4ff2341c9daee1987ee1837636f1d"}, - {file = "cffi-1.14.5.tar.gz", hash = "sha256:fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c"}, + {file = "cffi-1.14.6-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:22b9c3c320171c108e903d61a3723b51e37aaa8c81255b5e7ce102775bd01e2c"}, + {file = "cffi-1.14.6-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:f0c5d1acbfca6ebdd6b1e3eded8d261affb6ddcf2186205518f1428b8569bb99"}, + {file = "cffi-1.14.6-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:99f27fefe34c37ba9875f224a8f36e31d744d8083e00f520f133cab79ad5e819"}, + {file = "cffi-1.14.6-cp27-cp27m-win32.whl", hash = "sha256:55af55e32ae468e9946f741a5d51f9896da6b9bf0bbdd326843fec05c730eb20"}, + {file = "cffi-1.14.6-cp27-cp27m-win_amd64.whl", hash = "sha256:7bcac9a2b4fdbed2c16fa5681356d7121ecabf041f18d97ed5b8e0dd38a80224"}, + {file = "cffi-1.14.6-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:ed38b924ce794e505647f7c331b22a693bee1538fdf46b0222c4717b42f744e7"}, + {file = "cffi-1.14.6-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:e22dcb48709fc51a7b58a927391b23ab37eb3737a98ac4338e2448bef8559b33"}, + {file = "cffi-1.14.6-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:aedb15f0a5a5949ecb129a82b72b19df97bbbca024081ed2ef88bd5c0a610534"}, + {file = "cffi-1.14.6-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:48916e459c54c4a70e52745639f1db524542140433599e13911b2f329834276a"}, + {file = "cffi-1.14.6-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f627688813d0a4140153ff532537fbe4afea5a3dffce1f9deb7f91f848a832b5"}, + {file = "cffi-1.14.6-cp35-cp35m-win32.whl", hash = "sha256:f0010c6f9d1a4011e429109fda55a225921e3206e7f62a0c22a35344bfd13cca"}, + {file = "cffi-1.14.6-cp35-cp35m-win_amd64.whl", hash = "sha256:57e555a9feb4a8460415f1aac331a2dc833b1115284f7ded7278b54afc5bd218"}, + {file = "cffi-1.14.6-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:e8c6a99be100371dbb046880e7a282152aa5d6127ae01783e37662ef73850d8f"}, + {file = "cffi-1.14.6-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:19ca0dbdeda3b2615421d54bef8985f72af6e0c47082a8d26122adac81a95872"}, + {file = "cffi-1.14.6-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:d950695ae4381ecd856bcaf2b1e866720e4ab9a1498cba61c602e56630ca7195"}, + {file = "cffi-1.14.6-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e9dc245e3ac69c92ee4c167fbdd7428ec1956d4e754223124991ef29eb57a09d"}, + {file = "cffi-1.14.6-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a8661b2ce9694ca01c529bfa204dbb144b275a31685a075ce123f12331be790b"}, + {file = "cffi-1.14.6-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b315d709717a99f4b27b59b021e6207c64620790ca3e0bde636a6c7f14618abb"}, + {file = "cffi-1.14.6-cp36-cp36m-win32.whl", hash = "sha256:80b06212075346b5546b0417b9f2bf467fea3bfe7352f781ffc05a8ab24ba14a"}, + {file = "cffi-1.14.6-cp36-cp36m-win_amd64.whl", hash = "sha256:a9da7010cec5a12193d1af9872a00888f396aba3dc79186604a09ea3ee7c029e"}, + {file = "cffi-1.14.6-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:4373612d59c404baeb7cbd788a18b2b2a8331abcc84c3ba40051fcd18b17a4d5"}, + {file = "cffi-1.14.6-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:f10afb1004f102c7868ebfe91c28f4a712227fe4cb24974350ace1f90e1febbf"}, + {file = "cffi-1.14.6-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:fd4305f86f53dfd8cd3522269ed7fc34856a8ee3709a5e28b2836b2db9d4cd69"}, + {file = "cffi-1.14.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6d6169cb3c6c2ad50db5b868db6491a790300ade1ed5d1da29289d73bbe40b56"}, + {file = "cffi-1.14.6-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d4b68e216fc65e9fe4f524c177b54964af043dde734807586cf5435af84045c"}, + {file = "cffi-1.14.6-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:33791e8a2dc2953f28b8d8d300dde42dd929ac28f974c4b4c6272cb2955cb762"}, + {file = "cffi-1.14.6-cp37-cp37m-win32.whl", hash = "sha256:0c0591bee64e438883b0c92a7bed78f6290d40bf02e54c5bf0978eaf36061771"}, + {file = "cffi-1.14.6-cp37-cp37m-win_amd64.whl", hash = "sha256:8eb687582ed7cd8c4bdbff3df6c0da443eb89c3c72e6e5dcdd9c81729712791a"}, + {file = "cffi-1.14.6-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ba6f2b3f452e150945d58f4badd92310449876c4c954836cfb1803bdd7b422f0"}, + {file = "cffi-1.14.6-cp38-cp38-manylinux1_i686.whl", hash = "sha256:64fda793737bc4037521d4899be780534b9aea552eb673b9833b01f945904c2e"}, + {file = "cffi-1.14.6-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:9f3e33c28cd39d1b655ed1ba7247133b6f7fc16fa16887b120c0c670e35ce346"}, + {file = "cffi-1.14.6-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:26bb2549b72708c833f5abe62b756176022a7b9a7f689b571e74c8478ead51dc"}, + {file = "cffi-1.14.6-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eb687a11f0a7a1839719edd80f41e459cc5366857ecbed383ff376c4e3cc6afd"}, + {file = "cffi-1.14.6-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d2ad4d668a5c0645d281dcd17aff2be3212bc109b33814bbb15c4939f44181cc"}, + {file = "cffi-1.14.6-cp38-cp38-win32.whl", hash = "sha256:487d63e1454627c8e47dd230025780e91869cfba4c753a74fda196a1f6ad6548"}, + {file = "cffi-1.14.6-cp38-cp38-win_amd64.whl", hash = "sha256:c33d18eb6e6bc36f09d793c0dc58b0211fccc6ae5149b808da4a62660678b156"}, + {file = "cffi-1.14.6-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:06c54a68935738d206570b20da5ef2b6b6d92b38ef3ec45c5422c0ebaf338d4d"}, + {file = "cffi-1.14.6-cp39-cp39-manylinux1_i686.whl", hash = "sha256:f174135f5609428cc6e1b9090f9268f5c8935fddb1b25ccb8255a2d50de6789e"}, + {file = "cffi-1.14.6-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f3ebe6e73c319340830a9b2825d32eb6d8475c1dac020b4f0aa774ee3b898d1c"}, + {file = "cffi-1.14.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c8d896becff2fa653dc4438b54a5a25a971d1f4110b32bd3068db3722c80202"}, + {file = "cffi-1.14.6-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4922cd707b25e623b902c86188aca466d3620892db76c0bdd7b99a3d5e61d35f"}, + {file = "cffi-1.14.6-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c9e005e9bd57bc987764c32a1bee4364c44fdc11a3cc20a40b93b444984f2b87"}, + {file = "cffi-1.14.6-cp39-cp39-win32.whl", hash = "sha256:eb9e2a346c5238a30a746893f23a9535e700f8192a68c07c0258e7ece6ff3728"}, + {file = "cffi-1.14.6-cp39-cp39-win_amd64.whl", hash = "sha256:818014c754cd3dba7229c0f5884396264d51ffb87ec86e927ef0be140bfdb0d2"}, + {file = "cffi-1.14.6.tar.gz", hash = "sha256:c9a875ce9d7fe32887784274dd533c57909b7b1dcadcc128a2ac21331a9765dd"}, ] chardet = [ {file = "chardet-4.0.0-py2.py3-none-any.whl", hash = "sha256:f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5"}, {file = "chardet-4.0.0.tar.gz", hash = "sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"}, ] +charset-normalizer = [ + {file = "charset-normalizer-2.0.4.tar.gz", hash = "sha256:f23667ebe1084be45f6ae0538e4a5a865206544097e4e8bbcacf42cd02a348f3"}, + {file = "charset_normalizer-2.0.4-py3-none-any.whl", hash = "sha256:0c8911edd15d19223366a194a513099a302055a962bca2cec0f54b8b63175d8b"}, +] click = [ - {file = "click-7.1.2-py2.py3-none-any.whl", hash = "sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"}, - {file = "click-7.1.2.tar.gz", hash = "sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a"}, + {file = "click-8.0.1-py3-none-any.whl", hash = "sha256:fba402a4a47334742d782209a7c79bc448911afe1149d07bdabdf480b3e2f4b6"}, + {file = "click-8.0.1.tar.gz", hash = "sha256:8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a"}, ] codecov = [ - {file = "codecov-2.1.11-py2.py3-none-any.whl", hash = "sha256:ba8553a82942ce37d4da92b70ffd6d54cf635fc1793ab0a7dc3fecd6ebfb3df8"}, - {file = "codecov-2.1.11-py3.8.egg", hash = "sha256:e95901d4350e99fc39c8353efa450050d2446c55bac91d90fcfd2354e19a6aef"}, - {file = "codecov-2.1.11.tar.gz", hash = "sha256:6cde272454009d27355f9434f4e49f238c0273b216beda8472a65dc4957f473b"}, + {file = "codecov-2.1.12-py2.py3-none-any.whl", hash = "sha256:585dc217dc3d8185198ceb402f85d5cb5dbfa0c5f350a5abcdf9e347776a5b47"}, + {file = "codecov-2.1.12-py3.8.egg", hash = "sha256:782a8e5352f22593cbc5427a35320b99490eb24d9dcfa2155fd99d2b75cfb635"}, + {file = "codecov-2.1.12.tar.gz", hash = "sha256:a0da46bb5025426da895af90938def8ee12d37fcbcbbbc15b6dc64cf7ebc51c1"}, ] colorama = [ {file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, @@ -1123,18 +1152,23 @@ coverage = [ {file = "coverage-4.5.4.tar.gz", hash = "sha256:e07d9f1a23e9e93ab5c62902833bf3e4b1f65502927379148b6622686223125c"}, ] cryptography = [ - {file = "cryptography-3.4.7-cp36-abi3-macosx_10_10_x86_64.whl", hash = "sha256:3d8427734c781ea5f1b41d6589c293089704d4759e34597dce91014ac125aad1"}, - {file = "cryptography-3.4.7-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:8e56e16617872b0957d1c9742a3f94b43533447fd78321514abbe7db216aa250"}, - {file = "cryptography-3.4.7-cp36-abi3-manylinux2010_x86_64.whl", hash = "sha256:37340614f8a5d2fb9aeea67fd159bfe4f5f4ed535b1090ce8ec428b2f15a11f2"}, - {file = "cryptography-3.4.7-cp36-abi3-manylinux2014_aarch64.whl", hash = "sha256:240f5c21aef0b73f40bb9f78d2caff73186700bf1bc6b94285699aff98cc16c6"}, - {file = "cryptography-3.4.7-cp36-abi3-manylinux2014_x86_64.whl", hash = "sha256:1e056c28420c072c5e3cb36e2b23ee55e260cb04eee08f702e0edfec3fb51959"}, - {file = "cryptography-3.4.7-cp36-abi3-win32.whl", hash = "sha256:0f1212a66329c80d68aeeb39b8a16d54ef57071bf22ff4e521657b27372e327d"}, - {file = "cryptography-3.4.7-cp36-abi3-win_amd64.whl", hash = "sha256:de4e5f7f68220d92b7637fc99847475b59154b7a1b3868fb7385337af54ac9ca"}, - {file = "cryptography-3.4.7-pp36-pypy36_pp73-manylinux2010_x86_64.whl", hash = "sha256:26965837447f9c82f1855e0bc8bc4fb910240b6e0d16a664bb722df3b5b06873"}, - {file = "cryptography-3.4.7-pp36-pypy36_pp73-manylinux2014_x86_64.whl", hash = "sha256:eb8cc2afe8b05acbd84a43905832ec78e7b3873fb124ca190f574dca7389a87d"}, - {file = "cryptography-3.4.7-pp37-pypy37_pp73-manylinux2010_x86_64.whl", hash = "sha256:7ec5d3b029f5fa2b179325908b9cd93db28ab7b85bb6c1db56b10e0b54235177"}, - {file = "cryptography-3.4.7-pp37-pypy37_pp73-manylinux2014_x86_64.whl", hash = "sha256:ee77aa129f481be46f8d92a1a7db57269a2f23052d5f2433b4621bb457081cc9"}, - {file = "cryptography-3.4.7.tar.gz", hash = "sha256:3d10de8116d25649631977cb37da6cbdd2d6fa0e0281d014a5b7d337255ca713"}, + {file = "cryptography-3.4.8-cp36-abi3-macosx_10_10_x86_64.whl", hash = "sha256:a00cf305f07b26c351d8d4e1af84ad7501eca8a342dedf24a7acb0e7b7406e14"}, + {file = "cryptography-3.4.8-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:f44d141b8c4ea5eb4dbc9b3ad992d45580c1d22bf5e24363f2fbf50c2d7ae8a7"}, + {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:0a7dcbcd3f1913f664aca35d47c1331fce738d44ec34b7be8b9d332151b0b01e"}, + {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34dae04a0dce5730d8eb7894eab617d8a70d0c97da76b905de9efb7128ad7085"}, + {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1eb7bb0df6f6f583dd8e054689def236255161ebbcf62b226454ab9ec663746b"}, + {file = "cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:9965c46c674ba8cc572bc09a03f4c649292ee73e1b683adb1ce81e82e9a6a0fb"}, + {file = "cryptography-3.4.8-cp36-abi3-win32.whl", hash = "sha256:21ca464b3a4b8d8e86ba0ee5045e103a1fcfac3b39319727bc0fc58c09c6aff7"}, + {file = "cryptography-3.4.8-cp36-abi3-win_amd64.whl", hash = "sha256:3520667fda779eb788ea00080124875be18f2d8f0848ec00733c0ec3bb8219fc"}, + {file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d2a6e5ef66503da51d2110edf6c403dc6b494cc0082f85db12f54e9c5d4c3ec5"}, + {file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a305600e7a6b7b855cd798e00278161b681ad6e9b7eca94c721d5f588ab212af"}, + {file = "cryptography-3.4.8-pp36-pypy36_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:3fa3a7ccf96e826affdf1a0a9432be74dc73423125c8f96a909e3835a5ef194a"}, + {file = "cryptography-3.4.8-pp37-pypy37_pp73-macosx_10_10_x86_64.whl", hash = "sha256:d9ec0e67a14f9d1d48dd87a2531009a9b251c02ea42851c060b25c782516ff06"}, + {file = "cryptography-3.4.8-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:5b0fbfae7ff7febdb74b574055c7466da334a5371f253732d7e2e7525d570498"}, + {file = "cryptography-3.4.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:94fff993ee9bc1b2440d3b7243d488c6a3d9724cc2b09cdb297f6a886d040ef7"}, + {file = "cryptography-3.4.8-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:8695456444f277af73a4877db9fc979849cd3ee74c198d04fc0776ebc3db52b9"}, + {file = "cryptography-3.4.8-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:cd65b60cfe004790c795cc35f272e41a3df4631e2fb6b35aa7ac6ef2859d554e"}, + {file = "cryptography-3.4.8.tar.gz", hash = "sha256:94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c"}, ] dataclasses = [ {file = "dataclasses-0.8-py3-none-any.whl", hash = "sha256:0201d89fa866f68c8ebd9d08ee6ff50c0b255f8ec63a71c16fda7af82bb887bf"}, @@ -1145,12 +1179,12 @@ docutils = [ {file = "docutils-0.17.1.tar.gz", hash = "sha256:686577d2e4c32380bb50cbb22f575ed742d58168cee37e99117a854bcd88f125"}, ] execnet = [ - {file = "execnet-1.8.0-py2.py3-none-any.whl", hash = "sha256:7a13113028b1e1cc4c6492b28098b3c6576c9dccc7973bfe47b342afadafb2ac"}, - {file = "execnet-1.8.0.tar.gz", hash = "sha256:b73c5565e517f24b62dea8a5ceac178c661c4309d3aa0c3e420856c072c411b4"}, + {file = "execnet-1.9.0-py2.py3-none-any.whl", hash = "sha256:a295f7cc774947aac58dde7fdc85f4aa00c42adf5d8f5468fc630c1acf30a142"}, + {file = "execnet-1.9.0.tar.gz", hash = "sha256:8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5"}, ] idna = [ - {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, - {file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"}, + {file = "idna-3.2-py3-none-any.whl", hash = "sha256:14475042e284991034cb48e06f6851428fb14c4dc953acd9be9a5e95c7b6dd7a"}, + {file = "idna-3.2.tar.gz", hash = "sha256:467fbad99067910785144ce333826c71fb0e63a425657295239737f7ecd125f3"}, ] idna-ssl = [ {file = "idna-ssl-1.1.0.tar.gz", hash = "sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c"}, @@ -1160,21 +1194,33 @@ imagesize = [ {file = "imagesize-1.2.0.tar.gz", hash = "sha256:b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1"}, ] immutables = [ - {file = "immutables-0.15-cp35-cp35m-macosx_10_14_x86_64.whl", hash = "sha256:6728f4392e3e8e64b593a5a0cd910a1278f07f879795517e09f308daed138631"}, - {file = "immutables-0.15-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:f0836cd3bdc37c8a77b192bbe5f41dbcc3ce654db048ebbba89bdfe6db7a1c7a"}, - {file = "immutables-0.15-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:8703d8abfd8687932f2a05f38e7de270c3a6ca3bd1c1efb3c938656b3f2f985a"}, - {file = "immutables-0.15-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:b8ad986f9b532c026f19585289384b0769188fcb68b37c7f0bd0df9092a6ca54"}, - {file = "immutables-0.15-cp36-cp36m-win_amd64.whl", hash = "sha256:6f117d9206165b9dab8fd81c5129db757d1a044953f438654236ed9a7a4224ae"}, - {file = "immutables-0.15-cp37-cp37m-macosx_10_14_x86_64.whl", hash = "sha256:b75ade826920c4e490b1bb14cf967ac14e61eb7c5562161c5d7337d61962c226"}, - {file = "immutables-0.15-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:b7e13c061785e34f73c4f659861f1b3e4a5fd918e4395c84b21c4e3d449ebe27"}, - {file = "immutables-0.15-cp37-cp37m-win_amd64.whl", hash = "sha256:3035849accee4f4e510ed7c94366a40e0f5fef9069fbe04a35f4787b13610a4a"}, - {file = "immutables-0.15-cp38-cp38-macosx_10_14_x86_64.whl", hash = "sha256:b04fa69174e0c8f815f9c55f2a43fc9e5a68452fab459a08e904a74e8471639f"}, - {file = "immutables-0.15-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:141c2e9ea515a3a815007a429f0b47a578ebeb42c831edaec882a245a35fffca"}, - {file = "immutables-0.15-cp38-cp38-win_amd64.whl", hash = "sha256:cbe8c64640637faa5535d539421b293327f119c31507c33ca880bd4f16035eb6"}, - {file = "immutables-0.15-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:a0a4e4417d5ef4812d7f99470cd39347b58cb927365dd2b8da9161040d260db0"}, - {file = "immutables-0.15-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:3b15c08c71c59e5b7c2470ef949d49ff9f4263bb77f488422eaa157da84d6999"}, - {file = "immutables-0.15-cp39-cp39-win_amd64.whl", hash = "sha256:2283a93c151566e6830aee0e5bee55fc273455503b43aa004356b50f9182092b"}, - {file = "immutables-0.15.tar.gz", hash = "sha256:3713ab1ebbb6946b7ce1387bb9d1d7f5e09c45add58c2a2ee65f963c171e746b"}, + {file = "immutables-0.16-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:acbfa79d44228d96296279068441f980dc63dbed52522d9227ff9f4d96c6627e"}, + {file = "immutables-0.16-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c9ed003eacb92e630ef200e31f47236c2139b39476894f7963b32bd39bafa3"}, + {file = "immutables-0.16-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0a396314b9024fa55bf83a27813fd76cf9f27dce51f53b0f19b51de035146251"}, + {file = "immutables-0.16-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:4a2a71678348fb95b13ca108d447f559a754c41b47bd1e7e4fb23974e735682d"}, + {file = "immutables-0.16-cp36-cp36m-win32.whl", hash = "sha256:064001638ab5d36f6aa05b6101446f4a5793fb71e522bc81b8fc65a1894266ff"}, + {file = "immutables-0.16-cp36-cp36m-win_amd64.whl", hash = "sha256:1de393f1b188740ca7b38f946f2bbc7edf3910d2048f03bbb8d01f17a038d67c"}, + {file = "immutables-0.16-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:fcf678a3074613119385a02a07c469ec5130559f5ea843c85a0840c80b5b71c6"}, + {file = "immutables-0.16-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a307eb0984eb43e815dcacea3ac50c11d00a936ecf694c46991cd5a23bcb0ec0"}, + {file = "immutables-0.16-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7a58825ff2254e2612c5a932174398a4ea8fbddd8a64a02c880cc32ee28b8820"}, + {file = "immutables-0.16-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:798b095381eb42cf40db6876339e7bed84093e5868018a9e73d8e1f7ab4bb21e"}, + {file = "immutables-0.16-cp37-cp37m-win32.whl", hash = "sha256:19bdede174847c2ef1292df0f23868ab3918b560febb09fcac6eec621bd4812b"}, + {file = "immutables-0.16-cp37-cp37m-win_amd64.whl", hash = "sha256:9ccf4c0e3e2e3237012b516c74c49de8872ccdf9129739f7a0b9d7444a8c4862"}, + {file = "immutables-0.16-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:d59beef203a3765db72b1d0943547425c8318ecf7d64c451fd1e130b653c2fbb"}, + {file = "immutables-0.16-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0020aaa4010b136056c20a46ce53204e1407a9e4464246cb2cf95b90808d9161"}, + {file = "immutables-0.16-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:edd9f67671555af1eb99ad3c7550238487dd7ac0ac5205b40204ed61c9a922ac"}, + {file = "immutables-0.16-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:298a301f85f307b4c056a0825eb30f060e64d73605e783289f3df37dd762bab8"}, + {file = "immutables-0.16-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:b779617f5b94486bfd0f22162cd72eb5f2beb0214a14b75fdafb7b2c908ed0cb"}, + {file = "immutables-0.16-cp38-cp38-win32.whl", hash = "sha256:511c93d8b1bbbf103ff3f1f120c5a68a9866ce03dea6ac406537f93ca9b19139"}, + {file = "immutables-0.16-cp38-cp38-win_amd64.whl", hash = "sha256:b651b61c1af6cda2ee201450f2ffe048a5959bc88e43e6c312f4c93e69c9e929"}, + {file = "immutables-0.16-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:aa7bf572ae1e006104c584be70dc634849cf0dc62f42f4ee194774f97e7fd17d"}, + {file = "immutables-0.16-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:50793a44ba0d228ed8cad4d0925e00dfd62ea32f44ddee8854f8066447272d05"}, + {file = "immutables-0.16-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:799621dcdcdcbb2516546a40123b87bf88de75fe7459f7bd8144f079ace6ec3e"}, + {file = "immutables-0.16-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7bcf52aeb983bd803b7c6106eae1b2d9a0c7ab1241bc6b45e2174ba2b7283031"}, + {file = "immutables-0.16-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:734c269e82e5f307fb6e17945953b67659d1731e65309787b8f7ba267d1468f2"}, + {file = "immutables-0.16-cp39-cp39-win32.whl", hash = "sha256:a454d5d3fee4b7cc627345791eb2ca4b27fa3bbb062ccf362ecaaa51679a07ed"}, + {file = "immutables-0.16-cp39-cp39-win_amd64.whl", hash = "sha256:2505d93395d3f8ae4223e21465994c3bc6952015a38dc4f03cb3e07a2b8d8325"}, + {file = "immutables-0.16.tar.gz", hash = "sha256:d67e86859598eed0d926562da33325dac7767b7b1eff84e232c22abea19f4360"}, ] importlib-metadata = [ {file = "importlib_metadata-1.7.0-py2.py3-none-any.whl", hash = "sha256:dc15b2969b4ce36305c51eebe62d418ac7791e9a157911d58bfb1f9ccd8e2070"}, @@ -1189,8 +1235,8 @@ isort = [ {file = "isort-5.8.0.tar.gz", hash = "sha256:0a943902919f65c5684ac4e0154b1ad4fac6dcaa5d9f3426b732f1c8b5419be6"}, ] jinja2 = [ - {file = "Jinja2-2.11.3-py2.py3-none-any.whl", hash = "sha256:03e47ad063331dd6a3f04a43eddca8a966a26ba0c5b7207a9a9e4e08f1b29419"}, - {file = "Jinja2-2.11.3.tar.gz", hash = "sha256:a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6"}, + {file = "Jinja2-3.0.1-py3-none-any.whl", hash = "sha256:1f06f2da51e7b56b8f238affdd6b4e2c61e39598a378cc49345bc1bd42a978a4"}, + {file = "Jinja2-3.0.1.tar.gz", hash = "sha256:703f484b47a6af502e743c9122595cc812b0271f661722403114f71a79d0f5a4"}, ] jmespath = [ {file = "jmespath-0.10.0-py2.py3-none-any.whl", hash = "sha256:cdf6525904cc597730141d61b36f2e4b8ecc257c420fa2f4549bac2c2d0cb72f"}, @@ -1224,58 +1270,60 @@ lazy-object-proxy = [ {file = "lazy_object_proxy-1.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:f5144c75445ae3ca2057faac03fda5a902eff196702b0a24daf1d6ce0650514b"}, ] markupsafe = [ - {file = "MarkupSafe-1.1.1-cp27-cp27m-macosx_10_6_intel.whl", hash = "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161"}, - {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"}, - {file = "MarkupSafe-1.1.1-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183"}, - {file = "MarkupSafe-1.1.1-cp27-cp27m-win32.whl", hash = "sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b"}, - {file = "MarkupSafe-1.1.1-cp27-cp27m-win_amd64.whl", hash = "sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e"}, - {file = "MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f"}, - {file = "MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1"}, - {file = "MarkupSafe-1.1.1-cp34-cp34m-macosx_10_6_intel.whl", hash = "sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5"}, - {file = "MarkupSafe-1.1.1-cp34-cp34m-manylinux1_i686.whl", hash = "sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1"}, - {file = "MarkupSafe-1.1.1-cp34-cp34m-manylinux1_x86_64.whl", hash = "sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735"}, - {file = "MarkupSafe-1.1.1-cp34-cp34m-win32.whl", hash = "sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21"}, - {file = "MarkupSafe-1.1.1-cp34-cp34m-win_amd64.whl", hash = "sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235"}, - {file = "MarkupSafe-1.1.1-cp35-cp35m-macosx_10_6_intel.whl", hash = "sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b"}, - {file = "MarkupSafe-1.1.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f"}, - {file = "MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905"}, - {file = "MarkupSafe-1.1.1-cp35-cp35m-win32.whl", hash = "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1"}, - {file = "MarkupSafe-1.1.1-cp35-cp35m-win_amd64.whl", hash = "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_6_intel.whl", hash = "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d53bc011414228441014aa71dbec320c66468c1030aae3a6e29778a3382d96e5"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:3b8a6499709d29c2e2399569d96719a1b21dcd94410a586a18526b143ec8470f"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:84dee80c15f1b560d55bcfe6d47b27d070b4681c699c572af2e3c7cc90a3b8e0"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:b1dba4527182c95a0db8b6060cc98ac49b9e2f5e64320e2b56e47cb2831978c7"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-win32.whl", hash = "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66"}, - {file = "MarkupSafe-1.1.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_6_intel.whl", hash = "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:bf5aa3cbcfdf57fa2ee9cd1822c862ef23037f5c832ad09cfea57fa846dec193"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:6fffc775d90dcc9aed1b89219549b329a9250d918fd0b8fa8d93d154918422e1"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:a6a744282b7718a2a62d2ed9d993cad6f5f585605ad352c11de459f4108df0a1"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:195d7d2c4fbb0ee8139a6cf67194f3973a6b3042d742ebe0a9ed36d8b6f0c07f"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-win32.whl", hash = "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2"}, - {file = "MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:acf08ac40292838b3cbbb06cfe9b2cb9ec78fce8baca31ddb87aaac2e2dc3bc2"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:d9be0ba6c527163cbed5e0857c451fcd092ce83947944d6c14bc95441203f032"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:caabedc8323f1e93231b52fc32bdcde6db817623d33e100708d9a68e1f53b26b"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-win32.whl", hash = "sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b"}, - {file = "MarkupSafe-1.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d73a845f227b0bfe8a7455ee623525ee656a9e2e749e4742706d80a6065d5e2c"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:98bae9582248d6cf62321dcb52aaf5d9adf0bad3b40582925ef7c7f0ed85fceb"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:2beec1e0de6924ea551859edb9e7679da6e4870d32cb766240ce17e0a0ba2014"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:7fed13866cf14bba33e7176717346713881f56d9d2bcebab207f7a036f41b850"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:6f1e273a344928347c1290119b493a1f0303c52f5a5eae5f16d74f48c15d4a85"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:feb7b34d6325451ef96bc0e36e1a6c0c1c64bc1fbec4b854f4529e51887b1621"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-win32.whl", hash = "sha256:22c178a091fc6630d0d045bdb5992d2dfe14e3259760e713c490da5323866c39"}, - {file = "MarkupSafe-1.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:b7d644ddb4dbd407d31ffb699f1d140bc35478da613b441c582aeb7c43838dd8"}, - {file = "MarkupSafe-1.1.1.tar.gz", hash = "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-win32.whl", hash = "sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28"}, + {file = "MarkupSafe-2.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-win32.whl", hash = "sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d"}, + {file = "MarkupSafe-2.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-win32.whl", hash = "sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415"}, + {file = "MarkupSafe-2.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-win32.whl", hash = "sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64"}, + {file = "MarkupSafe-2.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-win32.whl", hash = "sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74"}, + {file = "MarkupSafe-2.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8"}, + {file = "MarkupSafe-2.0.1.tar.gz", hash = "sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a"}, ] mccabe = [ {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, @@ -1329,16 +1377,20 @@ packaging = [ {file = "packaging-20.9.tar.gz", hash = "sha256:5b327ac1320dc863dca72f4514ecc086f31186744b84a230374cc1fd776feae5"}, ] pathspec = [ - {file = "pathspec-0.8.1-py2.py3-none-any.whl", hash = "sha256:aa0cb481c4041bf52ffa7b0d8fa6cd3e88a2ca4879c533c9153882ee2556790d"}, - {file = "pathspec-0.8.1.tar.gz", hash = "sha256:86379d6b86d75816baba717e64b1a3a3469deb93bb76d613c9ce79edc5cb68fd"}, + {file = "pathspec-0.9.0-py2.py3-none-any.whl", hash = "sha256:7d15c4ddb0b5c802d161efc417ec1a2558ea2653c2e8ad9c19098201dc1c993a"}, + {file = "pathspec-0.9.0.tar.gz", hash = "sha256:e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f895b651a3c76aabb1"}, ] perky = [ {file = "perky-0.5.5-py3-none-any.whl", hash = "sha256:29857b816d4d02bfb9cb875f07424af66b93c06d9e610943b25b2d50b75888e4"}, {file = "perky-0.5.5.tar.gz", hash = "sha256:7998a8131fd2313ce948e27e290e49764837d99dd6133e2ee88f05e12561aaa1"}, ] +platformdirs = [ + {file = "platformdirs-2.3.0-py3-none-any.whl", hash = "sha256:8003ac87717ae2c7ee1ea5a84a1a61e87f3fbd16eb5aadba194ea30a9019f648"}, + {file = "platformdirs-2.3.0.tar.gz", hash = "sha256:15b056538719b1c94bdaccb29e5f81879c7f7f0f4a153f46086d155dffcd4f0f"}, +] pluggy = [ - {file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"}, - {file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"}, + {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, + {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, ] py = [ {file = "py-1.10.0-py2.py3-none-any.whl", hash = "sha256:3b80836aa6d1feeaa108e046da6423ab8f6ceda6468545ae8d02d9d58d18818a"}, @@ -1349,48 +1401,48 @@ pycparser = [ {file = "pycparser-2.20.tar.gz", hash = "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"}, ] pydantic = [ - {file = "pydantic-1.7.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c59ea046aea25be14dc22d69c97bee629e6d48d2b2ecb724d7fe8806bf5f61cd"}, - {file = "pydantic-1.7.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:a4143c8d0c456a093387b96e0f5ee941a950992904d88bc816b4f0e72c9a0009"}, - {file = "pydantic-1.7.3-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:d8df4b9090b595511906fa48deda47af04e7d092318bfb291f4d45dfb6bb2127"}, - {file = "pydantic-1.7.3-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:514b473d264671a5c672dfb28bdfe1bf1afd390f6b206aa2ec9fed7fc592c48e"}, - {file = "pydantic-1.7.3-cp36-cp36m-win_amd64.whl", hash = "sha256:dba5c1f0a3aeea5083e75db9660935da90216f8a81b6d68e67f54e135ed5eb23"}, - {file = "pydantic-1.7.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:59e45f3b694b05a69032a0d603c32d453a23f0de80844fb14d55ab0c6c78ff2f"}, - {file = "pydantic-1.7.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:5b24e8a572e4b4c18f614004dda8c9f2c07328cb5b6e314d6e1bbd536cb1a6c1"}, - {file = "pydantic-1.7.3-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:b2b054d095b6431cdda2f852a6d2f0fdec77686b305c57961b4c5dd6d863bf3c"}, - {file = "pydantic-1.7.3-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:025bf13ce27990acc059d0c5be46f416fc9b293f45363b3d19855165fee1874f"}, - {file = "pydantic-1.7.3-cp37-cp37m-win_amd64.whl", hash = "sha256:6e3874aa7e8babd37b40c4504e3a94cc2023696ced5a0500949f3347664ff8e2"}, - {file = "pydantic-1.7.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e682f6442ebe4e50cb5e1cfde7dda6766fb586631c3e5569f6aa1951fd1a76ef"}, - {file = "pydantic-1.7.3-cp38-cp38-manylinux1_i686.whl", hash = "sha256:185e18134bec5ef43351149fe34fda4758e53d05bb8ea4d5928f0720997b79ef"}, - {file = "pydantic-1.7.3-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:f5b06f5099e163295b8ff5b1b71132ecf5866cc6e7f586d78d7d3fd6e8084608"}, - {file = "pydantic-1.7.3-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:24ca47365be2a5a3cc3f4a26dcc755bcdc9f0036f55dcedbd55663662ba145ec"}, - {file = "pydantic-1.7.3-cp38-cp38-win_amd64.whl", hash = "sha256:d1fe3f0df8ac0f3a9792666c69a7cd70530f329036426d06b4f899c025aca74e"}, - {file = "pydantic-1.7.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f6864844b039805add62ebe8a8c676286340ba0c6d043ae5dea24114b82a319e"}, - {file = "pydantic-1.7.3-cp39-cp39-manylinux1_i686.whl", hash = "sha256:ecb54491f98544c12c66ff3d15e701612fc388161fd455242447083350904730"}, - {file = "pydantic-1.7.3-cp39-cp39-manylinux2014_i686.whl", hash = "sha256:ffd180ebd5dd2a9ac0da4e8b995c9c99e7c74c31f985ba090ee01d681b1c4b95"}, - {file = "pydantic-1.7.3-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:8d72e814c7821125b16f1553124d12faba88e85405b0864328899aceaad7282b"}, - {file = "pydantic-1.7.3-cp39-cp39-win_amd64.whl", hash = "sha256:475f2fa134cf272d6631072554f845d0630907fce053926ff634cc6bc45bf1af"}, - {file = "pydantic-1.7.3-py3-none-any.whl", hash = "sha256:38be427ea01a78206bcaf9a56f835784afcba9e5b88fbdce33bbbfbcd7841229"}, - {file = "pydantic-1.7.3.tar.gz", hash = "sha256:213125b7e9e64713d16d988d10997dabc6a1f73f3991e1ff8e35ebb1409c7dc9"}, + {file = "pydantic-1.7.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:3c60039e84552442defbcb5d56711ef0e057028ca7bfc559374917408a88d84e"}, + {file = "pydantic-1.7.4-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:6e7e314acb170e143c6f3912f93f2ec80a96aa2009ee681356b7ce20d57e5c62"}, + {file = "pydantic-1.7.4-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:8ef77cd17b73b5ba46788d040c0e820e49a2d80cfcd66fda3ba8be31094fd146"}, + {file = "pydantic-1.7.4-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:115d8aa6f257a1d469c66b6bfc7aaf04cd87c25095f24542065c68ebcb42fe63"}, + {file = "pydantic-1.7.4-cp36-cp36m-win_amd64.whl", hash = "sha256:66757d4e1eab69a3cfd3114480cc1d72b6dd847c4d30e676ae838c6740fdd146"}, + {file = "pydantic-1.7.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:4c92863263e4bd89e4f9cf1ab70d918170c51bd96305fe7b00853d80660acb26"}, + {file = "pydantic-1.7.4-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:3b8154babf30a5e0fa3aa91f188356763749d9b30f7f211fafb247d4256d7877"}, + {file = "pydantic-1.7.4-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:80cc46378505f7ff202879dcffe4bfbf776c15675028f6e08d1d10bdfbb168ac"}, + {file = "pydantic-1.7.4-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:dda60d7878a5af2d8560c55c7c47a8908344aa78d32ec1c02d742ede09c534df"}, + {file = "pydantic-1.7.4-cp37-cp37m-win_amd64.whl", hash = "sha256:4c1979d5cc3e14b35f0825caddea5a243dd6085e2a7539c006bc46997ef7a61a"}, + {file = "pydantic-1.7.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8857576600c32aa488f18d30833aa833b54a48e3bab3adb6de97e463af71f8f8"}, + {file = "pydantic-1.7.4-cp38-cp38-manylinux1_i686.whl", hash = "sha256:1f86d4da363badb39426a0ff494bf1d8510cd2f7274f460eee37bdbf2fd495ec"}, + {file = "pydantic-1.7.4-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:3ea1256a9e782149381e8200119f3e2edea7cd6b123f1c79ab4bbefe4d9ba2c9"}, + {file = "pydantic-1.7.4-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:e28455b42a0465a7bf2cde5eab530389226ce7dc779de28d17b8377245982b1e"}, + {file = "pydantic-1.7.4-cp38-cp38-win_amd64.whl", hash = "sha256:47c5b1d44934375a3311891cabd450c150a31cf5c22e84aa172967bf186718be"}, + {file = "pydantic-1.7.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:00250e5123dd0b123ff72be0e1b69140e0b0b9e404d15be3846b77c6f1b1e387"}, + {file = "pydantic-1.7.4-cp39-cp39-manylinux1_i686.whl", hash = "sha256:d24aa3f7f791a023888976b600f2f389d3713e4f23b7a4c88217d3fce61cdffc"}, + {file = "pydantic-1.7.4-cp39-cp39-manylinux2014_i686.whl", hash = "sha256:2c44a9afd4c4c850885436a4209376857989aaf0853c7b118bb2e628d4b78c4e"}, + {file = "pydantic-1.7.4-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:e87edd753da0ca1d44e308a1b1034859ffeab1f4a4492276bff9e1c3230db4fe"}, + {file = "pydantic-1.7.4-cp39-cp39-win_amd64.whl", hash = "sha256:a3026ee105b5360855e500b4abf1a1d0b034d88e75a2d0d66a4c35e60858e15b"}, + {file = "pydantic-1.7.4-py3-none-any.whl", hash = "sha256:a82385c6d5a77e3387e94612e3e34b77e13c39ff1295c26e3ba664e7b98073e2"}, + {file = "pydantic-1.7.4.tar.gz", hash = "sha256:0a1abcbd525fbb52da58c813d54c2ec706c31a91afdb75411a73dd1dec036595"}, ] pygments = [ - {file = "Pygments-2.9.0-py3-none-any.whl", hash = "sha256:d66e804411278594d764fc69ec36ec13d9ae9147193a1740cd34d272ca383b8e"}, - {file = "Pygments-2.9.0.tar.gz", hash = "sha256:a18f47b506a429f6f4b9df81bb02beab9ca21d0a5fee38ed15aef65f0545519f"}, + {file = "Pygments-2.10.0-py3-none-any.whl", hash = "sha256:b8e67fe6af78f492b3c4b3e2970c0624cbf08beb1e493b2c99b9fa1b67a20380"}, + {file = "Pygments-2.10.0.tar.gz", hash = "sha256:f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6"}, ] pylint = [ - {file = "pylint-2.8.2-py3-none-any.whl", hash = "sha256:f7e2072654a6b6afdf5e2fb38147d3e2d2d43c89f648637baab63e026481279b"}, - {file = "pylint-2.8.2.tar.gz", hash = "sha256:586d8fa9b1891f4b725f587ef267abe2a1bad89d6b184520c7f07a253dd6e217"}, + {file = "pylint-2.10.2-py3-none-any.whl", hash = "sha256:e178e96b6ba171f8ef51fbce9ca30931e6acbea4a155074d80cc081596c9e852"}, + {file = "pylint-2.10.2.tar.gz", hash = "sha256:6758cce3ddbab60c52b57dcc07f0c5d779e5daf0cf50f6faacbef1d3ea62d2a1"}, ] pynetbox = [ - {file = "pynetbox-6.1.2-py3-none-any.whl", hash = "sha256:ea814635157a0d0618c5e4340c56379f8ae02ef2b30600d13b910825dd0bacac"}, - {file = "pynetbox-6.1.2.tar.gz", hash = "sha256:4c1ff255613af552aa1a905b0f402859d27272fe14575f5cbb9463408a23c4df"}, + {file = "pynetbox-6.1.3-py3-none-any.whl", hash = "sha256:441fa82cf0899e5a7eeb47c302fd03ddbb795e71270b9b7a83b7ed0c4846e984"}, + {file = "pynetbox-6.1.3.tar.gz", hash = "sha256:e579c5a74ff98dffd2cecb0451b2fffc1924731b56876d7d97b9aaa2b6ef7aa6"}, ] pyparsing = [ {file = "pyparsing-2.4.7-py2.py3-none-any.whl", hash = "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b"}, {file = "pyparsing-2.4.7.tar.gz", hash = "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"}, ] pytest = [ - {file = "pytest-6.2.4-py3-none-any.whl", hash = "sha256:91ef2131a9bd6be8f76f1f08eac5c5317221d6ad1e143ae03894b862e8976890"}, - {file = "pytest-6.2.4.tar.gz", hash = "sha256:50bcad0a0b9c5a72c8e4e7c9855a3ad496ca6a881a3641b4260605450772c54b"}, + {file = "pytest-6.2.5-py3-none-any.whl", hash = "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"}, + {file = "pytest-6.2.5.tar.gz", hash = "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89"}, ] pytest-forked = [ {file = "pytest-forked-1.3.0.tar.gz", hash = "sha256:6aa9ac7e00ad1a539c41bec6d21011332de671e938c7637378ec9710204e37ca"}, @@ -1401,8 +1453,8 @@ pytest-mock = [ {file = "pytest_mock-3.6.1-py3-none-any.whl", hash = "sha256:30c2f2cc9759e76eee674b81ea28c9f0b94f8f0445a1b87762cadf774f0df7e3"}, ] pytest-xdist = [ - {file = "pytest-xdist-2.2.1.tar.gz", hash = "sha256:718887296892f92683f6a51f25a3ae584993b06f7076ce1e1fd482e59a8220a2"}, - {file = "pytest_xdist-2.2.1-py3-none-any.whl", hash = "sha256:2447a1592ab41745955fb870ac7023026f20a5f0bfccf1b52a879bd193d46450"}, + {file = "pytest-xdist-2.3.0.tar.gz", hash = "sha256:e8ecde2f85d88fbcadb7d28cb33da0fa29bca5cf7d5967fa89fc0e97e5299ea5"}, + {file = "pytest_xdist-2.3.0-py3-none-any.whl", hash = "sha256:ed3d7da961070fce2a01818b51f6888327fb88df4379edeb6b9d990e789d9c8d"}, ] pytz = [ {file = "pytz-2021.1-py2.py3-none-any.whl", hash = "sha256:eb10ce3e7736052ed3623d49975ce333bcd712c7bb19a58b9e2089d4057d0798"}, @@ -1440,51 +1492,51 @@ pyyaml = [ {file = "PyYAML-5.4.1.tar.gz", hash = "sha256:607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"}, ] regex = [ - {file = "regex-2021.4.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:619d71c59a78b84d7f18891fe914446d07edd48dc8328c8e149cbe0929b4e000"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:47bf5bf60cf04d72bf6055ae5927a0bd9016096bf3d742fa50d9bf9f45aa0711"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:281d2fd05555079448537fe108d79eb031b403dac622621c78944c235f3fcf11"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:bd28bc2e3a772acbb07787c6308e00d9626ff89e3bfcdebe87fa5afbfdedf968"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:7c2a1af393fcc09e898beba5dd59196edaa3116191cc7257f9224beaed3e1aa0"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:c38c71df845e2aabb7fb0b920d11a1b5ac8526005e533a8920aea97efb8ec6a4"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:96fcd1888ab4d03adfc9303a7b3c0bd78c5412b2bfbe76db5b56d9eae004907a"}, - {file = "regex-2021.4.4-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:ade17eb5d643b7fead300a1641e9f45401c98eee23763e9ed66a43f92f20b4a7"}, - {file = "regex-2021.4.4-cp36-cp36m-win32.whl", hash = "sha256:e8e5b509d5c2ff12f8418006d5a90e9436766133b564db0abaec92fd27fcee29"}, - {file = "regex-2021.4.4-cp36-cp36m-win_amd64.whl", hash = "sha256:11d773d75fa650cd36f68d7ca936e3c7afaae41b863b8c387a22aaa78d3c5c79"}, - {file = "regex-2021.4.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d3029c340cfbb3ac0a71798100ccc13b97dddf373a4ae56b6a72cf70dfd53bc8"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:18c071c3eb09c30a264879f0d310d37fe5d3a3111662438889ae2eb6fc570c31"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:4c557a7b470908b1712fe27fb1ef20772b78079808c87d20a90d051660b1d69a"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:01afaf2ec48e196ba91b37451aa353cb7eda77efe518e481707e0515025f0cd5"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:3a9cd17e6e5c7eb328517969e0cb0c3d31fd329298dd0c04af99ebf42e904f82"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:90f11ff637fe8798933fb29f5ae1148c978cccb0452005bf4c69e13db951e765"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:919859aa909429fb5aa9cf8807f6045592c85ef56fdd30a9a3747e513db2536e"}, - {file = "regex-2021.4.4-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:339456e7d8c06dd36a22e451d58ef72cef293112b559010db3d054d5560ef439"}, - {file = "regex-2021.4.4-cp37-cp37m-win32.whl", hash = "sha256:67bdb9702427ceddc6ef3dc382455e90f785af4c13d495f9626861763ee13f9d"}, - {file = "regex-2021.4.4-cp37-cp37m-win_amd64.whl", hash = "sha256:32e65442138b7b76dd8173ffa2cf67356b7bc1768851dded39a7a13bf9223da3"}, - {file = "regex-2021.4.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1e1c20e29358165242928c2de1482fb2cf4ea54a6a6dea2bd7a0e0d8ee321500"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux1_i686.whl", hash = "sha256:314d66636c494ed9c148a42731b3834496cc9a2c4251b1661e40936814542b14"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:6d1b01031dedf2503631d0903cb563743f397ccaf6607a5e3b19a3d76fc10480"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:741a9647fcf2e45f3a1cf0e24f5e17febf3efe8d4ba1281dcc3aa0459ef424dc"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:4c46e22a0933dd783467cf32b3516299fb98cfebd895817d685130cc50cd1093"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:e512d8ef5ad7b898cdb2d8ee1cb09a8339e4f8be706d27eaa180c2f177248a10"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:980d7be47c84979d9136328d882f67ec5e50008681d94ecc8afa8a65ed1f4a6f"}, - {file = "regex-2021.4.4-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:ce15b6d103daff8e9fee13cf7f0add05245a05d866e73926c358e871221eae87"}, - {file = "regex-2021.4.4-cp38-cp38-win32.whl", hash = "sha256:a91aa8619b23b79bcbeb37abe286f2f408d2f2d6f29a17237afda55bb54e7aac"}, - {file = "regex-2021.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:c0502c0fadef0d23b128605d69b58edb2c681c25d44574fc673b0e52dce71ee2"}, - {file = "regex-2021.4.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:598585c9f0af8374c28edd609eb291b5726d7cbce16be6a8b95aa074d252ee17"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux1_i686.whl", hash = "sha256:ee54ff27bf0afaf4c3b3a62bcd016c12c3fdb4ec4f413391a90bd38bc3624605"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7d9884d86dd4dd489e981d94a65cd30d6f07203d90e98f6f657f05170f6324c9"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:bf5824bfac591ddb2c1f0a5f4ab72da28994548c708d2191e3b87dd207eb3ad7"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:563085e55b0d4fb8f746f6a335893bda5c2cef43b2f0258fe1020ab1dd874df8"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:b9c3db21af35e3b3c05764461b262d6f05bbca08a71a7849fd79d47ba7bc33ed"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux2014_i686.whl", hash = "sha256:3916d08be28a1149fb97f7728fca1f7c15d309a9f9682d89d79db75d5e52091c"}, - {file = "regex-2021.4.4-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:fd45ff9293d9274c5008a2054ecef86a9bfe819a67c7be1afb65e69b405b3042"}, - {file = "regex-2021.4.4-cp39-cp39-win32.whl", hash = "sha256:fa4537fb4a98fe8fde99626e4681cc644bdcf2a795038533f9f711513a862ae6"}, - {file = "regex-2021.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:97f29f57d5b84e73fbaf99ab3e26134e6687348e95ef6b48cfd2c06807005a07"}, - {file = "regex-2021.4.4.tar.gz", hash = "sha256:52ba3d3f9b942c49d7e4bc105bb28551c44065f139a65062ab7912bef10c9afb"}, + {file = "regex-2021.8.28-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9d05ad5367c90814099000442b2125535e9d77581855b9bee8780f1b41f2b1a2"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3bf1bc02bc421047bfec3343729c4bbbea42605bcfd6d6bfe2c07ade8b12d2a"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5f6a808044faae658f546dd5f525e921de9fa409de7a5570865467f03a626fc0"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:a617593aeacc7a691cc4af4a4410031654f2909053bd8c8e7db837f179a630eb"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:79aef6b5cd41feff359acaf98e040844613ff5298d0d19c455b3d9ae0bc8c35a"}, + {file = "regex-2021.8.28-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:0fc1f8f06977c2d4f5e3d3f0d4a08089be783973fc6b6e278bde01f0544ff308"}, + {file = "regex-2021.8.28-cp310-cp310-win32.whl", hash = "sha256:6eebf512aa90751d5ef6a7c2ac9d60113f32e86e5687326a50d7686e309f66ed"}, + {file = "regex-2021.8.28-cp310-cp310-win_amd64.whl", hash = "sha256:ac88856a8cbccfc14f1b2d0b829af354cc1743cb375e7f04251ae73b2af6adf8"}, + {file = "regex-2021.8.28-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c206587c83e795d417ed3adc8453a791f6d36b67c81416676cad053b4104152c"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8690ed94481f219a7a967c118abaf71ccc440f69acd583cab721b90eeedb77c"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:328a1fad67445550b982caa2a2a850da5989fd6595e858f02d04636e7f8b0b13"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:c7cb4c512d2d3b0870e00fbbac2f291d4b4bf2634d59a31176a87afe2777c6f0"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:66256b6391c057305e5ae9209941ef63c33a476b73772ca967d4a2df70520ec1"}, + {file = "regex-2021.8.28-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8e44769068d33e0ea6ccdf4b84d80c5afffe5207aa4d1881a629cf0ef3ec398f"}, + {file = "regex-2021.8.28-cp36-cp36m-win32.whl", hash = "sha256:08d74bfaa4c7731b8dac0a992c63673a2782758f7cfad34cf9c1b9184f911354"}, + {file = "regex-2021.8.28-cp36-cp36m-win_amd64.whl", hash = "sha256:abb48494d88e8a82601af905143e0de838c776c1241d92021e9256d5515b3645"}, + {file = "regex-2021.8.28-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b4c220a1fe0d2c622493b0a1fd48f8f991998fb447d3cd368033a4b86cf1127a"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d4a332404baa6665b54e5d283b4262f41f2103c255897084ec8f5487ce7b9e8e"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c61dcc1cf9fd165127a2853e2c31eb4fb961a4f26b394ac9fe5669c7a6592892"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:ee329d0387b5b41a5dddbb6243a21cb7896587a651bebb957e2d2bb8b63c0791"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f60667673ff9c249709160529ab39667d1ae9fd38634e006bec95611f632e759"}, + {file = "regex-2021.8.28-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:b844fb09bd9936ed158ff9df0ab601e2045b316b17aa8b931857365ea8586906"}, + {file = "regex-2021.8.28-cp37-cp37m-win32.whl", hash = "sha256:4cde065ab33bcaab774d84096fae266d9301d1a2f5519d7bd58fc55274afbf7a"}, + {file = "regex-2021.8.28-cp37-cp37m-win_amd64.whl", hash = "sha256:1413b5022ed6ac0d504ba425ef02549a57d0f4276de58e3ab7e82437892704fc"}, + {file = "regex-2021.8.28-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ed4b50355b066796dacdd1cf538f2ce57275d001838f9b132fab80b75e8c84dd"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28fc475f560d8f67cc8767b94db4c9440210f6958495aeae70fac8faec631797"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bdc178caebd0f338d57ae445ef8e9b737ddf8fbc3ea187603f65aec5b041248f"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:999ad08220467b6ad4bd3dd34e65329dd5d0df9b31e47106105e407954965256"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:808ee5834e06f57978da3e003ad9d6292de69d2bf6263662a1a8ae30788e080b"}, + {file = "regex-2021.8.28-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d5111d4c843d80202e62b4fdbb4920db1dcee4f9366d6b03294f45ed7b18b42e"}, + {file = "regex-2021.8.28-cp38-cp38-win32.whl", hash = "sha256:473858730ef6d6ff7f7d5f19452184cd0caa062a20047f6d6f3e135a4648865d"}, + {file = "regex-2021.8.28-cp38-cp38-win_amd64.whl", hash = "sha256:31a99a4796bf5aefc8351e98507b09e1b09115574f7c9dbb9cf2111f7220d2e2"}, + {file = "regex-2021.8.28-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:04f6b9749e335bb0d2f68c707f23bb1773c3fb6ecd10edf0f04df12a8920d468"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b006628fe43aa69259ec04ca258d88ed19b64791693df59c422b607b6ece8bb"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:121f4b3185feaade3f85f70294aef3f777199e9b5c0c0245c774ae884b110a2d"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:a577a21de2ef8059b58f79ff76a4da81c45a75fe0bfb09bc8b7bb4293fa18983"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1743345e30917e8c574f273f51679c294effba6ad372db1967852f12c76759d8"}, + {file = "regex-2021.8.28-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:e1e8406b895aba6caa63d9fd1b6b1700d7e4825f78ccb1e5260551d168db38ed"}, + {file = "regex-2021.8.28-cp39-cp39-win32.whl", hash = "sha256:ed283ab3a01d8b53de3a05bfdf4473ae24e43caee7dcb5584e86f3f3e5ab4374"}, + {file = "regex-2021.8.28-cp39-cp39-win_amd64.whl", hash = "sha256:610b690b406653c84b7cb6091facb3033500ee81089867ee7d59e675f9ca2b73"}, + {file = "regex-2021.8.28.tar.gz", hash = "sha256:f585cbbeecb35f35609edccb95efd95a3e35824cd7752b586503f7e6087303f1"}, ] requests = [ - {file = "requests-2.25.1-py2.py3-none-any.whl", hash = "sha256:c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e"}, - {file = "requests-2.25.1.tar.gz", hash = "sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"}, + {file = "requests-2.26.0-py2.py3-none-any.whl", hash = "sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24"}, + {file = "requests-2.26.0.tar.gz", hash = "sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"}, ] rstcheck = [ {file = "rstcheck-3.3.1.tar.gz", hash = "sha256:92c4f79256a54270e0402ba16a2f92d0b3c15c8f4410cb9c57127067c215741f"}, @@ -1494,8 +1546,8 @@ semantic-version = [ {file = "semantic_version-2.8.5.tar.gz", hash = "sha256:d2cb2de0558762934679b9a104e82eca7af448c9f4974d1f3eeccff651df8a54"}, ] sh = [ - {file = "sh-1.14.1-py2.py3-none-any.whl", hash = "sha256:75e86a836f47de095d4531718fe8489e6f7446c75ddfa5596f632727b919ffae"}, - {file = "sh-1.14.1.tar.gz", hash = "sha256:39aa9af22f6558a0c5d132881cf43e34828ca03e4ae11114852ca6a55c7c1d8e"}, + {file = "sh-1.14.2-py2.py3-none-any.whl", hash = "sha256:4921ac9c1a77ec8084bdfaf152fe14138e2b3557cc740002c1a97076321fce8a"}, + {file = "sh-1.14.2.tar.gz", hash = "sha256:9d7bd0334d494b2a4609fe521b2107438cdb21c0e469ffeeb191489883d6fe0d"}, ] six = [ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, @@ -1506,8 +1558,8 @@ snowballstemmer = [ {file = "snowballstemmer-2.1.0.tar.gz", hash = "sha256:e997baa4f2e9139951b6f4c631bad912dfd3c792467e2f03d7239464af90e914"}, ] sphinx = [ - {file = "Sphinx-4.0.0-py3-none-any.whl", hash = "sha256:904e02cd0f84bed5d3748358c228ae3df3ad725b9e6cdc2166e17b309ed2e1fa"}, - {file = "Sphinx-4.0.0.tar.gz", hash = "sha256:b246ebd74f5fb966d7e90086bbda5ed74ee4d30b4c3cbefddc1fb5210aa317c7"}, + {file = "Sphinx-4.1.2-py3-none-any.whl", hash = "sha256:46d52c6cee13fec44744b8c01ed692c18a640f6910a725cbb938bc36e8d64544"}, + {file = "Sphinx-4.1.2.tar.gz", hash = "sha256:3092d929cd807926d846018f2ace47ba2f3b671b309c7a89cd3306e80c826b13"}, ] sphinxcontrib-applehelp = [ {file = "sphinxcontrib-applehelp-1.0.2.tar.gz", hash = "sha256:a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58"}, @@ -1518,8 +1570,8 @@ sphinxcontrib-devhelp = [ {file = "sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl", hash = "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e"}, ] sphinxcontrib-htmlhelp = [ - {file = "sphinxcontrib-htmlhelp-1.0.3.tar.gz", hash = "sha256:e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b"}, - {file = "sphinxcontrib_htmlhelp-1.0.3-py2.py3-none-any.whl", hash = "sha256:3c0bc24a2c41e340ac37c85ced6dafc879ab485c095b1d65d2461ac2f7cca86f"}, + {file = "sphinxcontrib-htmlhelp-2.0.0.tar.gz", hash = "sha256:f5f8bb2d0d629f398bf47d0d69c07bc13b65f75a81ad9e2f71a63d4b7a2f6db2"}, + {file = "sphinxcontrib_htmlhelp-2.0.0-py2.py3-none-any.whl", hash = "sha256:d412243dfb797ae3ec2b59eca0e52dac12e75a241bf0e4eb861e450d06c6ed07"}, ] sphinxcontrib-jsmath = [ {file = "sphinxcontrib-jsmath-1.0.1.tar.gz", hash = "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"}, @@ -1530,17 +1582,16 @@ sphinxcontrib-qthelp = [ {file = "sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl", hash = "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6"}, ] sphinxcontrib-serializinghtml = [ - {file = "sphinxcontrib-serializinghtml-1.1.4.tar.gz", hash = "sha256:eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc"}, - {file = "sphinxcontrib_serializinghtml-1.1.4-py2.py3-none-any.whl", hash = "sha256:f242a81d423f59617a8e5cf16f5d4d74e28ee9a66f9e5b637a18082991db5a9a"}, + {file = "sphinxcontrib-serializinghtml-1.1.5.tar.gz", hash = "sha256:aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952"}, + {file = "sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl", hash = "sha256:352a9a00ae864471d3a7ead8d7d79f5fc0b57e8b3f95e9867eb9eb28999b92fd"}, ] toml = [ {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, ] twiggy = [ - {file = "Twiggy-0.5.0-py2-none-any.whl", hash = "sha256:64d31cce7e8b37c27dcd000ead1e2733902a9f74941015bdd783987cf0e878c2"}, - {file = "Twiggy-0.5.0-py3-none-any.whl", hash = "sha256:23a1630205cf3a49bfb74955db22c85b76c6b5a757c68db730504df9183f231f"}, - {file = "Twiggy-0.5.0.tar.gz", hash = "sha256:259ae96cb22e80c49e75c37dc2f7497028c5dc19018958f05fa00ec08fc2569f"}, + {file = "Twiggy-0.5.1-py3-none-any.whl", hash = "sha256:014671fdff7538b7f2396ff01724937ef57e1ac0e08f688747afbbcdeec9f081"}, + {file = "Twiggy-0.5.1.tar.gz", hash = "sha256:7938840275972f6ce89994a5bdfb0b84f0386301a043a960af6364952e78ffe4"}, ] typed-ast = [ {file = "typed_ast-1.4.3-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:2068531575a125b87a41802130fa7e29f26c09a2833fea68d9a40cf33902eba6"}, @@ -1575,13 +1626,13 @@ typed-ast = [ {file = "typed_ast-1.4.3.tar.gz", hash = "sha256:fb1bbeac803adea29cedd70781399c99138358c26d05fcbd23c13016b7f5ec65"}, ] typing-extensions = [ - {file = "typing_extensions-3.10.0.0-py2-none-any.whl", hash = "sha256:0ac0f89795dd19de6b97debb0c6af1c70987fd80a2d62d1958f7e56fcc31b497"}, - {file = "typing_extensions-3.10.0.0-py3-none-any.whl", hash = "sha256:779383f6086d90c99ae41cf0ff39aac8a7937a9283ce0a414e5dd782f4c94a84"}, - {file = "typing_extensions-3.10.0.0.tar.gz", hash = "sha256:50b6f157849174217d0656f99dc82fe932884fb250826c18350e159ec6cdf342"}, + {file = "typing_extensions-3.10.0.2-py2-none-any.whl", hash = "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7"}, + {file = "typing_extensions-3.10.0.2-py3-none-any.whl", hash = "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"}, + {file = "typing_extensions-3.10.0.2.tar.gz", hash = "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"}, ] urllib3 = [ - {file = "urllib3-1.26.4-py2.py3-none-any.whl", hash = "sha256:2f4da4594db7e1e110a944bb1b551fdf4e6c136ad42e4234131391e21eb5b0df"}, - {file = "urllib3-1.26.4.tar.gz", hash = "sha256:e7b021f7241115872f92f43c6508082facffbd1c048e3c6e2bb9c2a157e28937"}, + {file = "urllib3-1.26.6-py2.py3-none-any.whl", hash = "sha256:39fb8672126159acb139a7718dd10806104dec1e2f0f6c88aab05d17df10c8d4"}, + {file = "urllib3-1.26.6.tar.gz", hash = "sha256:f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f"}, ] wrapt = [ {file = "wrapt-1.12.1.tar.gz", hash = "sha256:b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7"}, @@ -1626,6 +1677,6 @@ yarl = [ {file = "yarl-1.6.3.tar.gz", hash = "sha256:8a9066529240171b68893d60dca86a763eae2139dd42f42106b03cf4b426bf10"}, ] zipp = [ - {file = "zipp-3.4.1-py3-none-any.whl", hash = "sha256:51cb66cc54621609dd593d1787f286ee42a5c0adbb4b29abea5a63edc3e03098"}, - {file = "zipp-3.4.1.tar.gz", hash = "sha256:3607921face881ba3e026887d8150cca609d517579abe052ac81fc5aeffdbd76"}, + {file = "zipp-3.5.0-py3-none-any.whl", hash = "sha256:957cfda87797e389580cb8b9e3870841ca991e2125350677b2ca83a0e99390a3"}, + {file = "zipp-3.5.0.tar.gz", hash = "sha256:f5812b1e007e48cff63449a5e9f4e7ebea716b4111f9c4f9a645f91d579bf0c4"}, ] From 0471ffe10421f5b1d73d781979d1b0c1a283fb09 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 00:46:07 -0400 Subject: [PATCH 14/24] change tags elements from str to raw --- docs/getting_started/contributing/modules/new_module.rst | 4 ++-- plugins/modules/netbox_aggregate.py | 4 ++-- plugins/modules/netbox_cable.py | 4 ++-- plugins/modules/netbox_circuit.py | 4 ++-- plugins/modules/netbox_cluster.py | 4 ++-- plugins/modules/netbox_console_port.py | 4 ++-- plugins/modules/netbox_console_server_port.py | 4 ++-- plugins/modules/netbox_device.py | 4 ++-- plugins/modules/netbox_device_bay.py | 4 ++-- plugins/modules/netbox_device_interface.py | 4 ++-- plugins/modules/netbox_device_type.py | 4 ++-- plugins/modules/netbox_front_port.py | 4 ++-- plugins/modules/netbox_inventory_item.py | 4 ++-- plugins/modules/netbox_ip_address.py | 4 ++-- plugins/modules/netbox_power_feed.py | 4 ++-- plugins/modules/netbox_power_outlet.py | 4 ++-- plugins/modules/netbox_power_port.py | 4 ++-- plugins/modules/netbox_prefix.py | 4 ++-- plugins/modules/netbox_provider.py | 4 ++-- plugins/modules/netbox_rack.py | 4 ++-- plugins/modules/netbox_rear_port.py | 4 ++-- plugins/modules/netbox_route_target.py | 4 ++-- plugins/modules/netbox_service.py | 4 ++-- plugins/modules/netbox_site.py | 4 ++-- plugins/modules/netbox_tenant.py | 4 ++-- plugins/modules/netbox_virtual_chassis.py | 4 ++-- plugins/modules/netbox_virtual_machine.py | 4 ++-- plugins/modules/netbox_vlan.py | 4 ++-- plugins/modules/netbox_vm_interface.py | 4 ++-- plugins/modules/netbox_vrf.py | 4 ++-- 30 files changed, 60 insertions(+), 60 deletions(-) diff --git a/docs/getting_started/contributing/modules/new_module.rst b/docs/getting_started/contributing/modules/new_module.rst index dc4a32934..fd3c07bd1 100644 --- a/docs/getting_started/contributing/modules/new_module.rst +++ b/docs/getting_started/contributing/modules/new_module.rst @@ -150,7 +150,7 @@ Now we need to update the ``DOCUMENTATION`` variable to match the module we're c - Any tags that the device may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -283,7 +283,7 @@ Let's move onto the ``main()`` function in the module and take a look at the req name=dict(required=True, type="str"), tenant=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_aggregate.py b/plugins/modules/netbox_aggregate.py index ce4e6c24f..441a99ada 100644 --- a/plugins/modules/netbox_aggregate.py +++ b/plugins/modules/netbox_aggregate.py @@ -73,7 +73,7 @@ - "Any tags that the aggregate may need to be associated with" required: false type: list - elements: str + elements: raw custom_fields: description: - "must exist in Netbox" @@ -176,7 +176,7 @@ def main(): rir=dict(required=False, type="raw"), date_added=dict(required=False, type="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_cable.py b/plugins/modules/netbox_cable.py index e96dcd6e5..29329a536 100644 --- a/plugins/modules/netbox_cable.py +++ b/plugins/modules/netbox_cable.py @@ -155,7 +155,7 @@ - Any tags that the cable may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -340,7 +340,7 @@ def main(): length_unit=dict( required=False, choices=["m", "cm", "ft", "in"], type="str" ), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_circuit.py b/plugins/modules/netbox_circuit.py index 0f99e0a75..4675a51fd 100644 --- a/plugins/modules/netbox_circuit.py +++ b/plugins/modules/netbox_circuit.py @@ -99,7 +99,7 @@ - Any tags that the device may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -210,7 +210,7 @@ def main(): commit_rate=dict(required=False, type="int"), description=dict(required=False, type="str"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_cluster.py b/plugins/modules/netbox_cluster.py index 8df6e874f..dc461abcf 100644 --- a/plugins/modules/netbox_cluster.py +++ b/plugins/modules/netbox_cluster.py @@ -84,7 +84,7 @@ - Any tags that the cluster may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -197,7 +197,7 @@ def main(): site=dict(required=False, type="raw"), tenant=dict(required=False, type="raw"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_console_port.py b/plugins/modules/netbox_console_port.py index bd2222e95..a972c7df3 100644 --- a/plugins/modules/netbox_console_port.py +++ b/plugins/modules/netbox_console_port.py @@ -89,7 +89,7 @@ - Any tags that the console port may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -203,7 +203,7 @@ def main(): type="str", ), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_console_server_port.py b/plugins/modules/netbox_console_server_port.py index ce08b3d35..80ecaa697 100644 --- a/plugins/modules/netbox_console_server_port.py +++ b/plugins/modules/netbox_console_server_port.py @@ -89,7 +89,7 @@ - Any tags that the console server port may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -203,7 +203,7 @@ def main(): type="str", ), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_device.py b/plugins/modules/netbox_device.py index fb61e684e..5e82bf4d4 100644 --- a/plugins/modules/netbox_device.py +++ b/plugins/modules/netbox_device.py @@ -154,7 +154,7 @@ - Any tags that the device may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -309,7 +309,7 @@ def main(): vc_position=dict(required=False, type="int"), vc_priority=dict(required=False, type="int"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), local_context_data=dict(required=False, type="dict"), custom_fields=dict(required=False, type="dict"), ), diff --git a/plugins/modules/netbox_device_bay.py b/plugins/modules/netbox_device_bay.py index de57a44ee..889fa1aa9 100644 --- a/plugins/modules/netbox_device_bay.py +++ b/plugins/modules/netbox_device_bay.py @@ -72,7 +72,7 @@ - Any tags that the device bay may need to be associated with required: false type: list - elements: str + elements: raw type: dict required: true state: @@ -170,7 +170,7 @@ def main(): name=dict(required=True, type="str"), description=dict(required=False, type="str"), installed_device=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_device_interface.py b/plugins/modules/netbox_device_interface.py index 66571d101..dd9abd0dc 100644 --- a/plugins/modules/netbox_device_interface.py +++ b/plugins/modules/netbox_device_interface.py @@ -129,7 +129,7 @@ - Any tags that the interface may need to be associated with required: false type: list - elements: str + elements: raw mark_connected: description: - Mark an interface as connected without a cable attached (netbox >= 2.11 required) @@ -312,7 +312,7 @@ def main(): mode=dict(required=False, type="raw"), untagged_vlan=dict(required=False, type="raw"), tagged_vlans=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), mark_connected=dict(required=False, type="bool"), custom_fields=dict(required=False, type="dict"), ), diff --git a/plugins/modules/netbox_device_type.py b/plugins/modules/netbox_device_type.py index b18e26c05..bd797bd35 100644 --- a/plugins/modules/netbox_device_type.py +++ b/plugins/modules/netbox_device_type.py @@ -99,7 +99,7 @@ - Any tags that the device type may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -213,7 +213,7 @@ def main(): type="str", ), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_front_port.py b/plugins/modules/netbox_front_port.py index 697d618a7..50d7481a4 100644 --- a/plugins/modules/netbox_front_port.py +++ b/plugins/modules/netbox_front_port.py @@ -100,7 +100,7 @@ - Any tags that the front port may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -223,7 +223,7 @@ def main(): rear_port=dict(required=True, type="raw"), rear_port_position=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_inventory_item.py b/plugins/modules/netbox_inventory_item.py index be0cf297c..b517b20be 100644 --- a/plugins/modules/netbox_inventory_item.py +++ b/plugins/modules/netbox_inventory_item.py @@ -94,7 +94,7 @@ - Any tags that the device may need to be associated with required: false type: list - elements: str + elements: raw required: true state: description: @@ -199,7 +199,7 @@ def main(): asset_tag=dict(required=False, type="str"), description=dict(required=False, type="str"), discovered=dict(required=False, type="bool", default=False), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_ip_address.py b/plugins/modules/netbox_ip_address.py index d190039fa..bed85c8ef 100644 --- a/plugins/modules/netbox_ip_address.py +++ b/plugins/modules/netbox_ip_address.py @@ -155,7 +155,7 @@ - Any tags that the IP address may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -361,7 +361,7 @@ def main(): virtual_machine=dict(required=False, type="str"), ), ), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_power_feed.py b/plugins/modules/netbox_power_feed.py index d84ed3443..245e05604 100644 --- a/plugins/modules/netbox_power_feed.py +++ b/plugins/modules/netbox_power_feed.py @@ -124,7 +124,7 @@ - Any tags that the power feed may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -248,7 +248,7 @@ def main(): amperage=dict(required=False, type="int"), max_utilization=dict(required=False, type="int"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_power_outlet.py b/plugins/modules/netbox_power_outlet.py index ebd54951b..73dc8bf4c 100644 --- a/plugins/modules/netbox_power_outlet.py +++ b/plugins/modules/netbox_power_outlet.py @@ -144,7 +144,7 @@ - Any tags that the power outlet may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -303,7 +303,7 @@ def main(): power_port=dict(required=False, type="raw"), feed_leg=dict(required=False, choices=["A", "B", "C"], type="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_power_port.py b/plugins/modules/netbox_power_port.py index 62e1de51c..aca06eefe 100644 --- a/plugins/modules/netbox_power_port.py +++ b/plugins/modules/netbox_power_port.py @@ -140,7 +140,7 @@ - Any tags that the power port may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -299,7 +299,7 @@ def main(): allocated_draw=dict(required=False, type="int"), maximum_draw=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_prefix.py b/plugins/modules/netbox_prefix.py index eb41cb6ae..ebba96298 100644 --- a/plugins/modules/netbox_prefix.py +++ b/plugins/modules/netbox_prefix.py @@ -117,7 +117,7 @@ - Any tags that the prefix may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - Must exist in Netbox and in key/value format @@ -286,7 +286,7 @@ def main(): prefix_role=dict(required=False, type="raw"), is_pool=dict(required=False, type="bool"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_provider.py b/plugins/modules/netbox_provider.py index 4d3c25643..174052db1 100644 --- a/plugins/modules/netbox_provider.py +++ b/plugins/modules/netbox_provider.py @@ -89,7 +89,7 @@ - Any tags that the device may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -195,7 +195,7 @@ def main(): noc_contact=dict(required=False, type="str"), admin_contact=dict(required=False, type="str"), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_rack.py b/plugins/modules/netbox_rack.py index fd3f04e07..54ba26946 100644 --- a/plugins/modules/netbox_rack.py +++ b/plugins/modules/netbox_rack.py @@ -159,7 +159,7 @@ - Any tags that the rack may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -300,7 +300,7 @@ def main(): required=False, type="str", choices=["Millimeters", "Inches",], ), comments=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_rear_port.py b/plugins/modules/netbox_rear_port.py index 809bf8daa..709976c57 100644 --- a/plugins/modules/netbox_rear_port.py +++ b/plugins/modules/netbox_rear_port.py @@ -95,7 +95,7 @@ - Any tags that the rear port may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -214,7 +214,7 @@ def main(): ), positions=dict(required=False, type="int"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_route_target.py b/plugins/modules/netbox_route_target.py index fbb5bbf10..8c768c16f 100644 --- a/plugins/modules/netbox_route_target.py +++ b/plugins/modules/netbox_route_target.py @@ -68,7 +68,7 @@ - Any tags that the device may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -179,7 +179,7 @@ def main(): name=dict(required=True, type="str"), tenant=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_service.py b/plugins/modules/netbox_service.py index 8159e8dab..eb49cfecb 100644 --- a/plugins/modules/netbox_service.py +++ b/plugins/modules/netbox_service.py @@ -92,7 +92,7 @@ - What tags to add/update required: false type: list - elements: str + elements: raw custom_fields: description: - Must exist in Netbox and in key/value format @@ -190,7 +190,7 @@ def main(): protocol=dict(required=True, type="raw"), ipaddresses=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_site.py b/plugins/modules/netbox_site.py index 5ec2ee34d..988fe6f7d 100644 --- a/plugins/modules/netbox_site.py +++ b/plugins/modules/netbox_site.py @@ -139,7 +139,7 @@ - Any tags that the prefix may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -266,7 +266,7 @@ def main(): contact_email=dict(required=False, type="str"), comments=dict(required=False, type="str"), slug=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_tenant.py b/plugins/modules/netbox_tenant.py index f2ae25706..431d28ff1 100644 --- a/plugins/modules/netbox_tenant.py +++ b/plugins/modules/netbox_tenant.py @@ -78,7 +78,7 @@ - Any tags that the tenant may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -185,7 +185,7 @@ def main(): description=dict(required=False, type="str"), comments=dict(required=False, type="str"), slug=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_virtual_chassis.py b/plugins/modules/netbox_virtual_chassis.py index 7bf46f66f..bdcfcf555 100644 --- a/plugins/modules/netbox_virtual_chassis.py +++ b/plugins/modules/netbox_virtual_chassis.py @@ -70,7 +70,7 @@ - Any tags that the virtual chassis may need to be associated with required: false type: list - elements: str + elements: raw state: description: - Use C(present) or C(absent) for adding or removing. @@ -162,7 +162,7 @@ def main(): name=dict(required=False, type="str"), master=dict(required=False, type="raw"), domain=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_virtual_machine.py b/plugins/modules/netbox_virtual_machine.py index 8c225a524..5f853b53f 100644 --- a/plugins/modules/netbox_virtual_machine.py +++ b/plugins/modules/netbox_virtual_machine.py @@ -113,7 +113,7 @@ - Any tags that the virtual machine may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - Must exist in Netbox @@ -244,7 +244,7 @@ def main(): memory=dict(required=False, type="int"), disk=dict(required=False, type="int"), status=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), local_context_data=dict(required=False, type="dict"), comments=dict(required=False, type="str"), diff --git a/plugins/modules/netbox_vlan.py b/plugins/modules/netbox_vlan.py index 2c2ee22b5..aaa5c6a12 100644 --- a/plugins/modules/netbox_vlan.py +++ b/plugins/modules/netbox_vlan.py @@ -93,7 +93,7 @@ - Any tags that the vlan may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -205,7 +205,7 @@ def main(): status=dict(required=False, type="raw"), vlan_role=dict(required=False, type="raw"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), diff --git a/plugins/modules/netbox_vm_interface.py b/plugins/modules/netbox_vm_interface.py index 7ecd96cd9..4be748ac4 100644 --- a/plugins/modules/netbox_vm_interface.py +++ b/plugins/modules/netbox_vm_interface.py @@ -97,7 +97,7 @@ - Any tags that the prefix may need to be associated with required: false type: list - elements: str + elements: raw required: true type: dict state: @@ -210,7 +210,7 @@ def main(): mode=dict(required=False, type="raw"), untagged_vlan=dict(required=False, type="raw"), tagged_vlans=dict(required=False, type="raw"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), ), ), ) diff --git a/plugins/modules/netbox_vrf.py b/plugins/modules/netbox_vrf.py index bb5d3b192..a8b69c025 100644 --- a/plugins/modules/netbox_vrf.py +++ b/plugins/modules/netbox_vrf.py @@ -92,7 +92,7 @@ - Any tags that the vrf may need to be associated with required: false type: list - elements: str + elements: raw custom_fields: description: - must exist in Netbox @@ -202,7 +202,7 @@ def main(): import_targets=dict(required=False, type="list", elements="str"), export_targets=dict(required=False, type="list", elements="str"), description=dict(required=False, type="str"), - tags=dict(required=False, type="list", elements="str"), + tags=dict(required=False, type="list", elements="raw"), custom_fields=dict(required=False, type="dict"), ), ), From f4f597f8488be0873a0829a4515f0eefd1fd75d9 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 00:49:09 -0400 Subject: [PATCH 15/24] tweak validate-modules ignore --- tests/sanity/ignore-2.10.txt | 54 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tests/sanity/ignore-2.10.txt b/tests/sanity/ignore-2.10.txt index cdf37864a..d9c82c42f 100644 --- a/tests/sanity/ignore-2.10.txt +++ b/tests/sanity/ignore-2.10.txt @@ -1,27 +1,27 @@ -plugins/modules/netbox_aggregate.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_circuit.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_cluster.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_console_port.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_console_server_port.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_device.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_device_bay.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_device_interface.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_device_type.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_front_port.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_inventory_item.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_ip_address.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_power_feed.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_power_outlet.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_power_port.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_prefix.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_provider.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_rack.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_rear_port.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_route_target.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_service.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_site.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_virtual_chassis.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_virtual_machine.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_vlan.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_vm_interface.py validate-modules:parameter-list-no-elements -plugins/modules/netbox_vrf.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_aggregate.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_circuit.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_cluster.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_console_port.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_console_server_port.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_device.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_device_bay.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_device_interface.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_device_type.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_front_port.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_inventory_item.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_ip_address.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_power_feed.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_power_outlet.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_power_port.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_prefix.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_provider.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_rack.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_rear_port.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_route_target.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_service.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_site.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_virtual_chassis.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_virtual_machine.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_vlan.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_vm_interface.py validate-modules:parameter-list-no-elements +#plugins/modules/netbox_vrf.py validate-modules:parameter-list-no-elements From c92e2ca73f8adb88cd961871b6da03d9c132ae93 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 00:57:02 -0400 Subject: [PATCH 16/24] remove ignore for sanity check --- tests/sanity/ignore-2.10.txt | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 tests/sanity/ignore-2.10.txt diff --git a/tests/sanity/ignore-2.10.txt b/tests/sanity/ignore-2.10.txt deleted file mode 100644 index d9c82c42f..000000000 --- a/tests/sanity/ignore-2.10.txt +++ /dev/null @@ -1,27 +0,0 @@ -#plugins/modules/netbox_aggregate.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_circuit.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_cluster.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_console_port.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_console_server_port.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_device.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_device_bay.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_device_interface.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_device_type.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_front_port.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_inventory_item.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_ip_address.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_power_feed.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_power_outlet.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_power_port.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_prefix.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_provider.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_rack.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_rear_port.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_route_target.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_service.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_site.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_virtual_chassis.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_virtual_machine.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_vlan.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_vm_interface.py validate-modules:parameter-list-no-elements -#plugins/modules/netbox_vrf.py validate-modules:parameter-list-no-elements From 7715870cfb3a5ac296e699e2816da952d97434dd Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 07:35:08 -0400 Subject: [PATCH 17/24] set cert to None in test_netbox_base_class.py --- tests/unit/module_utils/test_netbox_base_class.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/module_utils/test_netbox_base_class.py b/tests/unit/module_utils/test_netbox_base_class.py index 510e35b70..e35321ae1 100644 --- a/tests/unit/module_utils/test_netbox_base_class.py +++ b/tests/unit/module_utils/test_netbox_base_class.py @@ -57,6 +57,7 @@ def fixture_arg_spec(): }, "state": "present", "validate_certs": False, + "cert": None } From c25621015c4e84f252e0e5ccd3135dd6e7c6f5fa Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 07:37:09 -0400 Subject: [PATCH 18/24] corret black linting --- tests/unit/module_utils/test_netbox_base_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/module_utils/test_netbox_base_class.py b/tests/unit/module_utils/test_netbox_base_class.py index e35321ae1..156d12100 100644 --- a/tests/unit/module_utils/test_netbox_base_class.py +++ b/tests/unit/module_utils/test_netbox_base_class.py @@ -57,7 +57,7 @@ def fixture_arg_spec(): }, "state": "present", "validate_certs": False, - "cert": None + "cert": None, } From 04df17157543e2bdf98521657ee4c1512f0d091d Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 09:19:42 -0400 Subject: [PATCH 19/24] add netbox 2.11 testing --- .github/workflows/main.yml | 22 + .../targets/inventory-v2.11/.gitignore | 1 + .../targets/inventory-v2.11/aliases | 1 + .../inventory-v2.11/compare_inventory_json.py | 166 +++ .../files/test-inventory-legacy.json | 401 ++++++ .../files/test-inventory-legacy.yml | 9 + .../files/test-inventory-options-flatten.json | 979 +++++++++++++++ .../files/test-inventory-options-flatten.yml | 39 + .../files/test-inventory-options.json | 364 ++++++ .../files/test-inventory-options.yml | 61 + .../files/test-inventory-plurals-flatten.json | 416 +++++++ .../files/test-inventory-plurals-flatten.yml | 31 + .../files/test-inventory-plurals.json | 1098 +++++++++++++++++ .../files/test-inventory-plurals.yml | 36 + .../inventory-v2.11/files/test-inventory.json | 1024 +++++++++++++++ .../inventory-v2.11/files/test-inventory.yml | 28 + .../targets/inventory-v2.11/runme.sh | 72 ++ .../inventory-v2.11/runme_config.template | 6 + .../targets/regression-v2.11/tasks/main.yml | 266 ++++ .../integration/targets/v2.11/tasks/main.yml | 162 +++ .../targets/v2.11/tasks/netbox_aggregate.yml | 115 ++ .../targets/v2.11/tasks/netbox_cable.yml | 190 +++ .../targets/v2.11/tasks/netbox_circuit.yml | 109 ++ .../tasks/netbox_circuit_termination.yml | 129 ++ .../v2.11/tasks/netbox_circuit_type.yml | 96 ++ .../targets/v2.11/tasks/netbox_cluster.yml | 98 ++ .../v2.11/tasks/netbox_cluster_group.yml | 96 ++ .../v2.11/tasks/netbox_cluster_type.yml | 95 ++ .../v2.11/tasks/netbox_console_port.yml | 108 ++ .../tasks/netbox_console_port_template.yml | 105 ++ .../tasks/netbox_console_server_port.yml | 108 ++ .../netbox_console_server_port_template.yml | 105 ++ .../targets/v2.11/tasks/netbox_device.yml | 241 ++++ .../targets/v2.11/tasks/netbox_device_bay.yml | 87 ++ .../tasks/netbox_device_bay_template.yml | 81 ++ .../v2.11/tasks/netbox_device_interface.yml | 313 +++++ .../netbox_device_interface_template.yml | 109 ++ .../v2.11/tasks/netbox_device_role.yml | 101 ++ .../v2.11/tasks/netbox_device_type.yml | 132 ++ .../targets/v2.11/tasks/netbox_front_port.yml | 150 +++ .../tasks/netbox_front_port_template.yml | 147 +++ .../v2.11/tasks/netbox_inventory_item.yml | 107 ++ .../targets/v2.11/tasks/netbox_ip_address.yml | 350 ++++++ .../targets/v2.11/tasks/netbox_ipam_role.yml | 94 ++ .../targets/v2.11/tasks/netbox_lookup.yml | 82 ++ .../v2.11/tasks/netbox_manufacturer.yml | 91 ++ .../targets/v2.11/tasks/netbox_platform.yml | 99 ++ .../targets/v2.11/tasks/netbox_power_feed.yml | 127 ++ .../v2.11/tasks/netbox_power_outlet.yml | 114 ++ .../tasks/netbox_power_outlet_template.yml | 111 ++ .../v2.11/tasks/netbox_power_panel.yml | 105 ++ .../targets/v2.11/tasks/netbox_power_port.yml | 125 ++ .../tasks/netbox_power_port_template.yml | 120 ++ .../targets/v2.11/tasks/netbox_prefix.yml | 245 ++++ .../targets/v2.11/tasks/netbox_provider.yml | 99 ++ .../targets/v2.11/tasks/netbox_rack.yml | 225 ++++ .../targets/v2.11/tasks/netbox_rack_group.yml | 62 + .../targets/v2.11/tasks/netbox_rack_role.yml | 81 ++ .../targets/v2.11/tasks/netbox_rear_port.yml | 139 +++ .../v2.11/tasks/netbox_rear_port_template.yml | 136 ++ .../targets/v2.11/tasks/netbox_region.yml | 79 ++ .../targets/v2.11/tasks/netbox_rir.yml | 79 ++ .../v2.11/tasks/netbox_route_target.yml | 204 +++ .../targets/v2.11/tasks/netbox_service.yml | 196 +++ .../targets/v2.11/tasks/netbox_site.yml | 180 +++ .../targets/v2.11/tasks/netbox_tag.yml | 110 ++ .../targets/v2.11/tasks/netbox_tenant.yml | 106 ++ .../v2.11/tasks/netbox_tenant_group.yml | 129 ++ .../v2.11/tasks/netbox_virtual_chassis.yml | 131 ++ .../v2.11/tasks/netbox_virtual_machine.yml | 99 ++ .../targets/v2.11/tasks/netbox_vlan.yml | 193 +++ .../targets/v2.11/tasks/netbox_vlan_group.yml | 314 +++++ .../v2.11/tasks/netbox_vm_interface.yml | 159 +++ .../targets/v2.11/tasks/netbox_vrf.yml | 136 ++ 74 files changed, 12524 insertions(+) create mode 100644 tests/integration/targets/inventory-v2.11/.gitignore create mode 100644 tests/integration/targets/inventory-v2.11/aliases create mode 100755 tests/integration/targets/inventory-v2.11/compare_inventory_json.py create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-legacy.json create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-legacy.yml create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-options-flatten.json create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-options-flatten.yml create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-options.json create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-options.yml create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-plurals-flatten.json create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-plurals-flatten.yml create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-plurals.json create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory-plurals.yml create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory.json create mode 100644 tests/integration/targets/inventory-v2.11/files/test-inventory.yml create mode 100755 tests/integration/targets/inventory-v2.11/runme.sh create mode 100644 tests/integration/targets/inventory-v2.11/runme_config.template create mode 100644 tests/integration/targets/regression-v2.11/tasks/main.yml create mode 100644 tests/integration/targets/v2.11/tasks/main.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_aggregate.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_cable.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_circuit.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_circuit_termination.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_circuit_type.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_cluster.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_cluster_group.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_cluster_type.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_console_port.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_console_port_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_console_server_port.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_console_server_port_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device_bay.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device_bay_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device_interface.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device_interface_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device_role.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_device_type.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_front_port.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_front_port_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_inventory_item.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_ip_address.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_ipam_role.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_lookup.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_manufacturer.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_platform.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_power_feed.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_power_outlet.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_power_outlet_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_power_panel.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_power_port.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_power_port_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_prefix.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_provider.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_rack.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_rack_group.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_rack_role.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_rear_port.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_rear_port_template.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_region.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_rir.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_route_target.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_service.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_site.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_tag.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_tenant.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_tenant_group.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_virtual_chassis.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_virtual_machine.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_vlan.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_vlan_group.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_vm_interface.yml create mode 100644 tests/integration/targets/v2.11/tasks/netbox_vrf.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7a9ea35a..969b52b73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,9 @@ jobs: - python-version: 3.6 VERSION: "v2.10" INTEGRATION_TESTS: "v2.10" + - python-version: 3.6 + VERSION: "v2.11" + INTEGRATION_TESTS: "v2.11" - python-version: 3.6 VERSION: "latest" INTEGRATION_TESTS: "latest" @@ -77,6 +80,25 @@ jobs: docker container ls cd .. if: matrix.VERSION == 'v2.10' + - name: Clone & Start netbox-docker containers - 2.11 + env: + VERSION: ${{ matrix.VERSION }} + run: | + cd .. + git clone https://github.com/netbox-community/netbox-docker.git + cd netbox-docker + git checkout 1.2.0 + tee docker-compose.override.yml < dcim.interface Ethernet2/1 created" + +- name: "CABLE 2: Create duplicate" + netbox.netbox.netbox_cable: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + termination_a_type: dcim.interface + termination_a: + device: Test Nexus Child One + name: Ethernet2/2 + termination_b_type: dcim.interface + termination_b: + device: Test Nexus Child One + name: Ethernet2/1 + state: present + register: test_two + +- name: "CABLE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['cable']['termination_a_type'] == "dcim.interface" + - test_two['cable']['termination_a_id'] == 13 + - test_two['cable']['termination_b_type'] == "dcim.interface" + - test_two['cable']['termination_b_id'] == 2 + - test_two['msg'] == "cable dcim.interface Ethernet2/2 <> dcim.interface Ethernet2/1 already exists" + +- name: "CABLE 3: Update Cable with other fields" + netbox.netbox.netbox_cable: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + termination_a_type: dcim.interface + termination_a: + device: Test Nexus Child One + name: Ethernet2/2 + termination_b_type: dcim.interface + termination_b: + device: Test Nexus Child One + name: Ethernet2/1 + type: mmf-om4 + status: planned + label: label123 + color: abcdef + length: 30 + length_unit: m + tags: + - "Schnozzberry" + state: present + register: test_three + +- name: "CABLE 3: ASSERT - Update Cable with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "mmf-om4" + - test_three['diff']['after']['status'] == "planned" + - test_three['diff']['after']['label'] == "label123" + - test_three['diff']['after']['color'] == "abcdef" + - test_three['diff']['after']['length'] == 30 + - test_three['diff']['after']['length_unit'] == "m" + - test_three['diff']['after']['tags'][0] == 4 + - test_three['cable']['termination_a_type'] == "dcim.interface" + - test_three['cable']['termination_a_id'] == 13 + - test_three['cable']['termination_b_type'] == "dcim.interface" + - test_three['cable']['termination_b_id'] == 2 + - test_three['cable']['type'] == "mmf-om4" + - test_three['cable']['status'] == "planned" + - test_three['cable']['label'] == "label123" + - test_three['cable']['color'] == "abcdef" + - test_three['cable']['length'] == 30 + - test_three['cable']['length_unit'] == "m" + - test_three['cable']['tags'][0] == 4 + - test_three['msg'] == "cable dcim.interface Ethernet2/2 <> dcim.interface Ethernet2/1 updated" + +- name: "CABLE 4: ASSERT - Delete" + netbox.netbox.netbox_cable: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + termination_a_type: dcim.interface + termination_a: + device: Test Nexus Child One + name: Ethernet2/2 + termination_b_type: dcim.interface + termination_b: + device: Test Nexus Child One + name: Ethernet2/1 + state: absent + register: test_four + +- name: "CABLE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "cable dcim.interface Ethernet2/2 <> dcim.interface Ethernet2/1 deleted" + +- name: "CABLE 5: Connect Console Port and Console Server Port" + netbox.netbox.netbox_cable: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + termination_a_type: dcim.consoleserverport + termination_a: + name: Console Server Port + device: test100 + termination_b_type: dcim.consoleport + termination_b: + name: Console Port + device: test100 + state: present + register: test_five + +- name: "CABLE 5: ASSERT - Connect Console Port and Console Server Port" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "absent" + - test_five['diff']['after']['state'] == "present" + - test_five['cable']['termination_a_type'] == "dcim.consoleserverport" + - test_five['cable']['termination_a_id'] == 1 + - test_five['cable']['termination_b_type'] == "dcim.consoleport" + - test_five['cable']['termination_b_id'] == 1 + - test_five['msg'] == "cable dcim.consoleserverport Console Server Port <> dcim.consoleport Console Port created" + +- name: "CABLE 6: Circuits Termination as side A" + netbox.netbox.netbox_cable: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + termination_a_type: circuits.circuittermination + termination_a: + circuit: "Test Circuit Two" + term_side: "A" + termination_b_type: dcim.interface + termination_b: + device: "test100" + name: "GigabitEthernet2" + state: present + register: test_six + +- name: "CABLE 6: ASSERT - Circuits Termination as side A" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "absent" + - test_six['diff']['after']['state'] == "present" + - test_six['cable']['termination_a_type'] == "circuits.circuittermination" + - test_six['cable']['termination_a_id'] == 1 + - test_six['cable']['termination_b_type'] == "dcim.interface" + - test_six['cable']['termination_b_id'] == 4 + - test_six['msg'] == "cable circuits.circuittermination 1 <> dcim.interface GigabitEthernet2 created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_circuit.yml b/tests/integration/targets/v2.11/tasks/netbox_circuit.yml new file mode 100644 index 000000000..33d1230c4 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_circuit.yml @@ -0,0 +1,109 @@ +--- +## +## +### NETBOX_CIRCUIT +## +## +- name: "NETBOX_CIRCUIT 1: Create provider within Netbox with only required information" + netbox.netbox.netbox_circuit: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + cid: Test Circuit One + provider: Test Provider + circuit_type: Test Circuit Type + state: present + register: test_one + +- name: "NETBOX_CIRCUIT 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['circuit']['cid'] == "Test Circuit One" + - test_one['circuit']['provider'] == 1 + - test_one['circuit']['type'] == 1 + - test_one['msg'] == "circuit Test Circuit One created" + +- name: "NETBOX_CIRCUIT 2: Duplicate" + netbox.netbox.netbox_circuit: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + cid: Test Circuit One + provider: Test Provider + circuit_type: Test Circuit Type + state: present + register: test_two + +- name: "NETBOX_CIRCUIT 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['circuit']['cid'] == "Test Circuit One" + - test_two['circuit']['provider'] == 1 + - test_two['circuit']['type'] == 1 + - test_two['msg'] == "circuit Test Circuit One already exists" + +- name: "NETBOX_CIRCUIT 3: Update provider with other fields" + netbox.netbox.netbox_circuit: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + cid: Test Circuit One + provider: Test Provider + circuit_type: Test Circuit Type + status: Planned + tenant: Test Tenant + install_date: "2018-12-25" + commit_rate: 10000 + description: "Test circuit " + comments: "FAST CIRCUIT" + state: present + register: test_three + +- name: "NETBOX_CIRCUIT 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['status'] == "planned" + - test_three['diff']['after']['tenant'] == 1 + - test_three['diff']['after']['install_date'] == "2018-12-25" + - test_three['diff']['after']['commit_rate'] == 10000 + - test_three['diff']['after']['description'] == "Test circuit" + - test_three['diff']['after']['comments'] == "FAST CIRCUIT" + - test_three['circuit']['cid'] == "Test Circuit One" + - test_three['circuit']['provider'] == 1 + - test_three['circuit']['type'] == 1 + - test_three['circuit']['status'] == "planned" + - test_three['circuit']['tenant'] == 1 + - test_three['circuit']['install_date'] == "2018-12-25" + - test_three['circuit']['commit_rate'] == 10000 + - test_three['circuit']['description'] == "Test circuit" + - test_three['circuit']['comments'] == "FAST CIRCUIT" + - test_three['msg'] == "circuit Test Circuit One updated" + +- name: "NETBOX_CIRCUIT 4: Delete provider within netbox" + netbox.netbox.netbox_circuit: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + cid: Test Circuit One + state: absent + register: test_four + +- name: "NETBOX_CIRCUIT 4 : ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['circuit']['cid'] == "Test Circuit One" + - test_four['circuit']['provider'] == 1 + - test_four['circuit']['type'] == 1 + - test_four['circuit']['status'] == "planned" + - test_four['circuit']['tenant'] == 1 + - test_four['circuit']['install_date'] == "2018-12-25" + - test_four['circuit']['commit_rate'] == 10000 + - test_four['circuit']['description'] == "Test circuit" + - test_four['circuit']['comments'] == "FAST CIRCUIT" + - test_four['msg'] == "circuit Test Circuit One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_circuit_termination.yml b/tests/integration/targets/v2.11/tasks/netbox_circuit_termination.yml new file mode 100644 index 000000000..6851b5105 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_circuit_termination.yml @@ -0,0 +1,129 @@ +--- +## +## +### NETBOX_CIRCUIT_TERMINATION +## +## +- name: "NETBOX_CIRCUIT_TERMINATION 1: Create provider within Netbox with only required information" + netbox.netbox.netbox_circuit_termination: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + circuit: Test Circuit + term_side: A + site: "Test Site" + port_speed: 10000 + state: present + register: test_one + +- name: "NETBOX_CIRCUIT_TERMINATION 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['circuit_termination']['circuit'] == 1 + - test_one['circuit_termination']['term_side'] == "A" + - test_one['circuit_termination']['site'] == 1 + - test_one['circuit_termination']['port_speed'] == 10000 + - test_one['msg'] == "circuit_termination test_circuit_a created" + +- name: "NETBOX_CIRCUIT_TERMINATION 2: Duplicate" + netbox.netbox.netbox_circuit_termination: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + circuit: Test Circuit + term_side: A + state: present + register: test_two + +- name: "NETBOX_CIRCUIT_TERMINATION 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['circuit_termination']['circuit'] == 1 + - test_two['circuit_termination']['term_side'] == "A" + - test_two['circuit_termination']['site'] == 1 + - test_two['circuit_termination']['port_speed'] == 10000 + - test_two['msg'] == "circuit_termination test_circuit_a already exists" + +- name: "NETBOX_CIRCUIT_TERMINATION 3: Update provider with other fields" + netbox.netbox.netbox_circuit_termination: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + circuit: Test Circuit + term_side: A + upstream_speed: 1000 + xconnect_id: 10X100 + pp_info: PP10-24 + description: "Test description" + state: present + register: test_three + +- name: "NETBOX_CIRCUIT_TERMINATION 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['upstream_speed'] == 1000 + - test_three['diff']['after']['xconnect_id'] == "10X100" + - test_three['diff']['after']['pp_info'] == "PP10-24" + - test_three['diff']['after']['description'] == "Test description" + - test_three['circuit_termination']['circuit'] == 1 + - test_three['circuit_termination']['term_side'] == "A" + - test_three['circuit_termination']['site'] == 1 + - test_three['circuit_termination']['port_speed'] == 10000 + - test_three['circuit_termination']['upstream_speed'] == 1000 + - test_three['circuit_termination']['xconnect_id'] == "10X100" + - test_three['circuit_termination']['pp_info'] == "PP10-24" + - test_three['circuit_termination']['description'] == "Test description" + - test_three['msg'] == "circuit_termination test_circuit_a updated" + +- name: "NETBOX_CIRCUIT_TERMINATION 4: Create Z Side" + netbox.netbox.netbox_circuit_termination: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + circuit: Test Circuit + term_side: Z + site: "Test Site" + port_speed: 10000 + state: present + register: test_four + +- name: "NETBOX_CIRCUIT_TERMINATION 4: ASSERT - Create Z Side" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['circuit_termination']['circuit'] == 1 + - test_four['circuit_termination']['term_side'] == "Z" + - test_four['circuit_termination']['site'] == 1 + - test_four['circuit_termination']['port_speed'] == 10000 + - test_four['msg'] == "circuit_termination test_circuit_z created" + +- name: "NETBOX_CIRCUIT_TERMINATION 5: Delete provider within netbox" + netbox.netbox.netbox_circuit_termination: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + circuit: Test Circuit + term_side: A + state: absent + register: test_five + +- name: "NETBOX_CIRCUIT_TERMINATION 5: ASSERT - Delete" + assert: + that: + - test_five is changed + - test_five['circuit_termination']['circuit'] == 1 + - test_five['circuit_termination']['term_side'] == "A" + - test_five['circuit_termination']['site'] == 1 + - test_five['circuit_termination']['port_speed'] == 10000 + - test_five['circuit_termination']['upstream_speed'] == 1000 + - test_five['circuit_termination']['xconnect_id'] == "10X100" + - test_five['circuit_termination']['pp_info'] == "PP10-24" + - test_five['circuit_termination']['description'] == "Test description" + - test_five['msg'] == "circuit_termination test_circuit_a deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_circuit_type.yml b/tests/integration/targets/v2.11/tasks/netbox_circuit_type.yml new file mode 100644 index 000000000..45f956e34 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_circuit_type.yml @@ -0,0 +1,96 @@ +--- +## +## +### NETBOX_CIRCUIT_TYPE +## +## +- name: "CIRCUIT_TYPE 1: Necessary info creation" + netbox.netbox.netbox_circuit_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Circuit Type One" + state: present + register: test_one + +- name: "CIRCUIT_TYPE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['circuit_type']['name'] == "Test Circuit Type One" + - test_one['circuit_type']['slug'] == "test-circuit-type-one" + - test_one['msg'] == "circuit_type Test Circuit Type One created" + +- name: "CIRCUIT_TYPE 2: Create duplicate" + netbox.netbox.netbox_circuit_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Circuit Type One" + state: present + register: test_two + +- name: "CIRCUIT_TYPE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['circuit_type']['name'] == "Test Circuit Type One" + - test_two['circuit_type']['slug'] == "test-circuit-type-one" + - test_two['msg'] == "circuit_type Test Circuit Type One already exists" + +- name: "CIRCUIT_TYPE 3: User specified slug" + netbox.netbox.netbox_circuit_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Circuit Type Two" + slug: "test-circuit-type-2" + state: present + register: test_three + +- name: "CIRCUIT_TYPE 3: ASSERT - User specified slug" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['circuit_type']['name'] == "Test Circuit Type Two" + - test_three['circuit_type']['slug'] == "test-circuit-type-2" + - test_three['msg'] == "circuit_type Test Circuit Type Two created" + +- name: "CIRCUIT_TYPE 4: ASSERT - Delete" + netbox.netbox.netbox_circuit_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Circuit Type One" + state: absent + register: test_four + +- name: "CIRCUIT_TYPE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['circuit_type']['name'] == "Test Circuit Type One" + - test_four['circuit_type']['slug'] == "test-circuit-type-one" + - test_four['msg'] == "circuit_type Test Circuit Type One deleted" + +- name: "CIRCUIT_TYPE 5: ASSERT - Delete" + netbox.netbox.netbox_circuit_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Circuit Type Two" + slug: "test-circuit-type-2" + state: absent + register: test_five + +- name: "CIRCUIT_TYPE 5: ASSERT - Delete" + assert: + that: + - test_five is changed + - test_five['circuit_type']['name'] == "Test Circuit Type Two" + - test_five['circuit_type']['slug'] == "test-circuit-type-2" + - test_five['msg'] == "circuit_type Test Circuit Type Two deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_cluster.yml b/tests/integration/targets/v2.11/tasks/netbox_cluster.yml new file mode 100644 index 000000000..11ba5ef82 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_cluster.yml @@ -0,0 +1,98 @@ +--- +## +## +### NETBOX_CLUSTER +## +## +- name: "CLUSTER 1: Necessary info creation" + netbox.netbox.netbox_cluster: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster One" + cluster_type: "Test Cluster Type" + state: present + register: test_one + +- name: "CLUSTER 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['cluster']['name'] == "Test Cluster One" + - test_one['cluster']['type'] == 1 + - test_one['msg'] == "cluster Test Cluster One created" + +- name: "CLUSTER 2: Create duplicate" + netbox.netbox.netbox_cluster: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster One" + cluster_type: "Test Cluster Type" + state: present + register: test_two + +- name: "CLUSTER 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['cluster']['name'] == "Test Cluster One" + - test_two['cluster']['type'] == 1 + - test_two['msg'] == "cluster Test Cluster One already exists" + +- name: "CLUSTER 3: Update" + netbox.netbox.netbox_cluster: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster One" + cluster_type: "Test Cluster Type" + cluster_group: "Test Cluster Group" + site: "Test Site" + comments: "Updated cluster" + tenant: "Test Tenant" + tags: + - "Schnozzberry" + state: present + register: test_three + +- name: "CLUSTER 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['group'] == 1 + - test_three['diff']['after']['site'] == 1 + - test_three['diff']['after']['comments'] == "Updated cluster" + - test_three['diff']['after']['tags'][0] == 4 + - test_three['diff']['after']['tenant'] == 1 + - test_three['cluster']['name'] == "Test Cluster One" + - test_three['cluster']['type'] == 1 + - test_three['cluster']['group'] == 1 + - test_three['cluster']['site'] == 1 + - test_three['cluster']['comments'] == "Updated cluster" + - test_three['cluster']['tags'][0] == 4 + - test_three['cluster']['tenant'] == 1 + - test_three['msg'] == "cluster Test Cluster One updated" + +- name: "CLUSTER 4: ASSERT - Delete" + netbox.netbox.netbox_cluster: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster One" + state: absent + register: test_four + +- name: "CLUSTER 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['cluster']['name'] == "Test Cluster One" + - test_four['cluster']['type'] == 1 + - test_four['cluster']['group'] == 1 + - test_four['cluster']['site'] == 1 + - test_four['cluster']['comments'] == "Updated cluster" + - test_four['cluster']['tags'][0] == 4 + - test_four['msg'] == "cluster Test Cluster One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_cluster_group.yml b/tests/integration/targets/v2.11/tasks/netbox_cluster_group.yml new file mode 100644 index 000000000..9f84518ce --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_cluster_group.yml @@ -0,0 +1,96 @@ +--- +## +## +### NETBOX_CLUSTER_GROUP +## +## +- name: "CLUSTER_GROUP 1: Necessary info creation" + netbox.netbox.netbox_cluster_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Group One" + state: present + register: test_one + +- name: "CLUSTER_GROUP 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['cluster_group']['name'] == "Test Cluster Group One" + - test_one['cluster_group']['slug'] == "test-cluster-group-one" + - test_one['msg'] == "cluster_group Test Cluster Group One created" + +- name: "CLUSTER_GROUP 2: Create duplicate" + netbox.netbox.netbox_cluster_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Group One" + state: present + register: test_two + +- name: "CLUSTER_GROUP 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['cluster_group']['name'] == "Test Cluster Group One" + - test_two['cluster_group']['slug'] == "test-cluster-group-one" + - test_two['msg'] == "cluster_group Test Cluster Group One already exists" + +- name: "CLUSTER_GROUP 3: User specified slug" + netbox.netbox.netbox_cluster_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Group Two" + slug: "test-cluster-group-2" + state: present + register: test_three + +- name: "CLUSTER_GROUP 3: ASSERT - User specified slug" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['cluster_group']['name'] == "Test Cluster Group Two" + - test_three['cluster_group']['slug'] == "test-cluster-group-2" + - test_three['msg'] == "cluster_group Test Cluster Group Two created" + +- name: "CLUSTER_GROUP 4: ASSERT - Delete" + netbox.netbox.netbox_cluster_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Group One" + state: absent + register: test_four + +- name: "CLUSTER_GROUP 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['cluster_group']['name'] == "Test Cluster Group One" + - test_four['cluster_group']['slug'] == "test-cluster-group-one" + - test_four['msg'] == "cluster_group Test Cluster Group One deleted" + +- name: "CLUSTER_GROUP 5: ASSERT - Delete" + netbox.netbox.netbox_cluster_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Group Two" + slug: "test-cluster-group-2" + state: absent + register: test_five + +- name: "CLUSTER_GROUP 5: ASSERT - Delete" + assert: + that: + - test_five is changed + - test_five['cluster_group']['name'] == "Test Cluster Group Two" + - test_five['cluster_group']['slug'] == "test-cluster-group-2" + - test_five['msg'] == "cluster_group Test Cluster Group Two deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_cluster_type.yml b/tests/integration/targets/v2.11/tasks/netbox_cluster_type.yml new file mode 100644 index 000000000..abcaed091 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_cluster_type.yml @@ -0,0 +1,95 @@ +## +## +### NETBOX_CLUSTER_TYPE +## +## +- name: "CLUSTER_TYPE 1: Necessary info creation" + netbox.netbox.netbox_cluster_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Type One" + state: present + register: test_one + +- name: "CLUSTER_TYPE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['cluster_type']['name'] == "Test Cluster Type One" + - test_one['cluster_type']['slug'] == "test-cluster-type-one" + - test_one['msg'] == "cluster_type Test Cluster Type One created" + +- name: "CLUSTER_TYPE 2: Create duplicate" + netbox.netbox.netbox_cluster_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Type One" + state: present + register: test_two + +- name: "CLUSTER_TYPE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['cluster_type']['name'] == "Test Cluster Type One" + - test_two['cluster_type']['slug'] == "test-cluster-type-one" + - test_two['msg'] == "cluster_type Test Cluster Type One already exists" + +- name: "CLUSTER_TYPE 3: User specified slug" + netbox.netbox.netbox_cluster_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Type Two" + slug: "test-cluster-type-2" + state: present + register: test_three + +- name: "CLUSTER_TYPE 3: ASSERT - User specified slug" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['cluster_type']['name'] == "Test Cluster Type Two" + - test_three['cluster_type']['slug'] == "test-cluster-type-2" + - test_three['msg'] == "cluster_type Test Cluster Type Two created" + +- name: "CLUSTER_TYPE 4: ASSERT - Delete" + netbox.netbox.netbox_cluster_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Type One" + state: absent + register: test_four + +- name: "CLUSTER_TYPE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['cluster_type']['name'] == "Test Cluster Type One" + - test_four['cluster_type']['slug'] == "test-cluster-type-one" + - test_four['msg'] == "cluster_type Test Cluster Type One deleted" + +- name: "CLUSTER_TYPE 5: ASSERT - Delete" + netbox.netbox.netbox_cluster_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Cluster Type Two" + slug: "test-cluster-type-2" + state: absent + register: test_five + +- name: "CLUSTER_TYPE 5: ASSERT - Delete" + assert: + that: + - test_five is changed + - test_five['cluster_type']['name'] == "Test Cluster Type Two" + - test_five['cluster_type']['slug'] == "test-cluster-type-2" + - test_five['msg'] == "cluster_type Test Cluster Type Two deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_console_port.yml b/tests/integration/targets/v2.11/tasks/netbox_console_port.yml new file mode 100644 index 000000000..1c97cb8ad --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_console_port.yml @@ -0,0 +1,108 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_CONSOLE_PORT +## +## +- name: "CONSOLE_PORT 1: Necessary info creation" + netbox.netbox.netbox_console_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port + device: test100 + state: present + register: test_one + +- name: "CONSOLE_PORT 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['console_port']['name'] == "Console Port" + - test_one['console_port']['device'] == 1 + - test_one['msg'] == "console_port Console Port created" + +- name: "CONSOLE_PORT 2: Create duplicate" + netbox.netbox.netbox_console_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port + device: test100 + state: present + register: test_two + +- name: "CONSOLE_PORT 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['console_port']['name'] == "Console Port" + - test_two['console_port']['device'] == 1 + - test_two['msg'] == "console_port Console Port already exists" + +- name: "CONSOLE_PORT 3: Update Console Port with other fields" + netbox.netbox.netbox_console_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port + device: test100 + type: usb-a + description: test description + state: present + register: test_three + +- name: "CONSOLE_PORT 3: ASSERT - Update Console Port with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "usb-a" + - test_three['diff']['after']['description'] == "test description" + - test_three['console_port']['name'] == "Console Port" + - test_three['console_port']['device'] == 1 + - test_three['console_port']['type'] == "usb-a" + - test_three['console_port']['description'] == "test description" + - test_three['msg'] == "console_port Console Port updated" + +- name: "CONSOLE_PORT 4: Create Console Port for Delete Test" + netbox.netbox.netbox_console_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port 2 + device: test100 + state: present + register: test_four + +- name: "CONSOLE_PORT 4: ASSERT - Create Console Port for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['console_port']['name'] == "Console Port 2" + - test_four['console_port']['device'] == 1 + - test_four['msg'] == "console_port Console Port 2 created" + +- name: "CONSOLE_PORT 5: Delete Console Port" + netbox.netbox.netbox_console_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port 2 + device: test100 + state: absent + register: test_five + +- name: "CONSOLE_PORT 5: ASSERT - Delete Console Port" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "console_port Console Port 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_console_port_template.yml b/tests/integration/targets/v2.11/tasks/netbox_console_port_template.yml new file mode 100644 index 000000000..b1bd1d1e4 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_console_port_template.yml @@ -0,0 +1,105 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_CONSOLE_PORT_TEMPLATE +## +## +- name: "CONSOLE_PORT_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_console_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port Template + device_type: Cisco Test + state: present + register: test_one + +- name: "CONSOLE_PORT_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['console_port_template']['name'] == "Console Port Template" + - test_one['console_port_template']['device_type'] == 1 + - test_one['msg'] == "console_port_template Console Port Template created" + +- name: "CONSOLE_PORT_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_console_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port Template + device_type: Cisco Test + state: present + register: test_two + +- name: "CONSOLE_PORT_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['console_port_template']['name'] == "Console Port Template" + - test_two['console_port_template']['device_type'] == 1 + - test_two['msg'] == "console_port_template Console Port Template already exists" + +- name: "CONSOLE_PORT_TEMPLATE 3: Update Console Port Template with other fields" + netbox.netbox.netbox_console_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port Template + device_type: Cisco Test + type: usb-a + state: present + register: test_three + +- name: "CONSOLE_PORT_TEMPLATE 3: ASSERT - Update Console Port Template with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "usb-a" + - test_three['console_port_template']['name'] == "Console Port Template" + - test_three['console_port_template']['device_type'] == 1 + - test_three['console_port_template']['type'] == "usb-a" + - test_three['msg'] == "console_port_template Console Port Template updated" + +- name: "CONSOLE_PORT_TEMPLATE 4: Create Console Port Template for Delete Test" + netbox.netbox.netbox_console_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port Template 2 + device_type: Cisco Test + state: present + register: test_four + +- name: "CONSOLE_PORT_TEMPLATE 4: ASSERT - Create Console Port Template for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['console_port_template']['name'] == "Console Port Template 2" + - test_four['console_port_template']['device_type'] == 1 + - test_four['msg'] == "console_port_template Console Port Template 2 created" + +- name: "CONSOLE_PORT_TEMPLATE 5: Delete Console Port Template" + netbox.netbox.netbox_console_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Port Template 2 + device_type: Cisco Test + state: absent + register: test_five + +- name: "CONSOLE_PORT_TEMPLATE 5: ASSERT - Delete Console Port Template" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "console_port_template Console Port Template 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_console_server_port.yml b/tests/integration/targets/v2.11/tasks/netbox_console_server_port.yml new file mode 100644 index 000000000..f70345329 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_console_server_port.yml @@ -0,0 +1,108 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_CONSOLE_SERVER_PORT +## +## +- name: "CONSOLE_SERVER_PORT 1: Necessary info creation" + netbox.netbox.netbox_console_server_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port + device: test100 + state: present + register: test_one + +- name: "CONSOLE_SERVER_PORT 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['console_server_port']['name'] == "Console Server Port" + - test_one['console_server_port']['device'] == 1 + - test_one['msg'] == "console_server_port Console Server Port created" + +- name: "CONSOLE_SERVER_PORT 2: Create duplicate" + netbox.netbox.netbox_console_server_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port + device: test100 + state: present + register: test_two + +- name: "CONSOLE_SERVER_PORT 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['console_server_port']['name'] == "Console Server Port" + - test_two['console_server_port']['device'] == 1 + - test_two['msg'] == "console_server_port Console Server Port already exists" + +- name: "CONSOLE_SERVER_PORT 3: Update Console Server Port with other fields" + netbox.netbox.netbox_console_server_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port + device: test100 + type: usb-a + description: test description + state: present + register: test_three + +- name: "CONSOLE_SERVER_PORT 3: ASSERT - Update Console Server Port with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "usb-a" + - test_three['diff']['after']['description'] == "test description" + - test_three['console_server_port']['name'] == "Console Server Port" + - test_three['console_server_port']['device'] == 1 + - test_three['console_server_port']['type'] == "usb-a" + - test_three['console_server_port']['description'] == "test description" + - test_three['msg'] == "console_server_port Console Server Port updated" + +- name: "CONSOLE_SERVER_PORT 4: Create Console Server Port for Delete Test" + netbox.netbox.netbox_console_server_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port 2 + device: test100 + state: present + register: test_four + +- name: "CONSOLE_SERVER_PORT 4: ASSERT - Create Console Server Port for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['console_server_port']['name'] == "Console Server Port 2" + - test_four['console_server_port']['device'] == 1 + - test_four['msg'] == "console_server_port Console Server Port 2 created" + +- name: "CONSOLE_SERVER_PORT 5: Delete Console Server Port" + netbox.netbox.netbox_console_server_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port 2 + device: test100 + state: absent + register: test_five + +- name: "CONSOLE_SERVER_PORT 5: ASSERT - Delete Console Server Port" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "console_server_port Console Server Port 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_console_server_port_template.yml b/tests/integration/targets/v2.11/tasks/netbox_console_server_port_template.yml new file mode 100644 index 000000000..4ad47d40a --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_console_server_port_template.yml @@ -0,0 +1,105 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_CONSOLE_SERVER_PORT_TEMPLATE +## +## +- name: "CONSOLE_SERVER_PORT_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_console_server_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port Template + device_type: Cisco Test + state: present + register: test_one + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['console_server_port_template']['name'] == "Console Server Port Template" + - test_one['console_server_port_template']['device_type'] == 1 + - test_one['msg'] == "console_server_port_template Console Server Port Template created" + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_console_server_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port Template + device_type: Cisco Test + state: present + register: test_two + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['console_server_port_template']['name'] == "Console Server Port Template" + - test_two['console_server_port_template']['device_type'] == 1 + - test_two['msg'] == "console_server_port_template Console Server Port Template already exists" + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 3: Update Console Server Port Template with other fields" + netbox.netbox.netbox_console_server_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port Template + device_type: Cisco Test + type: usb-a + state: present + register: test_three + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 3: ASSERT - Update Console Server Port Template with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "usb-a" + - test_three['console_server_port_template']['name'] == "Console Server Port Template" + - test_three['console_server_port_template']['device_type'] == 1 + - test_three['console_server_port_template']['type'] == "usb-a" + - test_three['msg'] == "console_server_port_template Console Server Port Template updated" + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 4: Create Console Server Port Template for Delete Test" + netbox.netbox.netbox_console_server_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port Template 2 + device_type: Cisco Test + state: present + register: test_four + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 4: ASSERT - Create Console Server Port Template for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['console_server_port_template']['name'] == "Console Server Port Template 2" + - test_four['console_server_port_template']['device_type'] == 1 + - test_four['msg'] == "console_server_port_template Console Server Port Template 2 created" + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 5: Delete Console Server Port Template" + netbox.netbox.netbox_console_server_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Console Server Port Template 2 + device_type: Cisco Test + state: absent + register: test_five + +- name: "CONSOLE_SERVER_PORT_TEMPLATE 5: ASSERT - Delete Console Server Port Template" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "console_server_port_template Console Server Port Template 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_device.yml b/tests/integration/targets/v2.11/tasks/netbox_device.yml new file mode 100644 index 000000000..4afa9a117 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device.yml @@ -0,0 +1,241 @@ +--- +## +## +### NETBOX_DEVICE +## +## +- name: "1 - Device with required information" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "R1" + device_type: + id: "1" + device_role: "Core Switch" + site: "Test Site" + status: "Staged" + state: present + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == 'absent' + - test_one['diff']['after']['state'] == 'present' + - test_one['device']['name'] == "R1" + - test_one['device']['device_role'] == 1 + - test_one['device']['device_type'] == 1 + - test_one['device']['site'] == 1 + - test_one['device']['status'] == "staged" + - test_one['device']['name'] == "R1" + - test_one['msg'] == "device R1 created" + +- name: "2 - Duplicate device" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "R1" + device_type: "Cisco Test" + device_role: "Core Switch" + site: "Test Site" + status: "Staged" + state: present + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - not test_two['changed'] + - test_two['device']['name'] == "R1" + - test_two['device']['device_role'] == 1 + - test_two['device']['device_type'] == 1 + - test_two['device']['site'] == 1 + - test_two['device']['status'] == "staged" + - test_two['msg'] == "device R1 already exists" + +- name: "3 - Update device" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "R1" + serial: "FXS1001" + local_context_data: + bgp_as: "65412" + virtual_chassis: "VC1" + vc_position: 3 + vc_priority: 15 + state: present + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['after']['serial'] == "FXS1001" + - test_three['diff']['after']['local_context_data']["bgp_as"] == "65412" + - test_three['diff']['after']['virtual_chassis'] == 1 + - test_three['diff']['after']['vc_position'] == 3 + - test_three['diff']['after']['vc_priority'] == 15 + - test_three['device']['name'] == "R1" + - test_three['device']['device_role'] == 1 + - test_three['device']['device_type'] == 1 + - test_three['device']['site'] == 1 + - test_three['device']['status'] == "staged" + - test_three['device']['serial'] == "FXS1001" + - test_three['device']['local_context_data']["bgp_as"] == "65412" + - test_three['device']['virtual_chassis'] == 1 + - test_three['device']['vc_position'] == 3 + - test_three['device']['vc_priority'] == 15 + - test_three['msg'] == "device R1 updated" + +- name: "3.1 - Update device name using query_params" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "R1-changed-name" + serial: "FXS1001" + query_params: + - serial + state: present + register: test_three_dot_one + +- name: "3.1 - ASSERT" + assert: + that: + - test_three_dot_one is changed + - test_three_dot_one['diff']['after']['name'] == "R1-changed-name" + - test_three_dot_one['device']['device_role'] == 1 + - test_three_dot_one['device']['device_type'] == 1 + - test_three_dot_one['device']['site'] == 1 + - test_three_dot_one['device']['status'] == "staged" + - test_three_dot_one['device']['serial'] == "FXS1001" + - test_three_dot_one['device']['local_context_data']["bgp_as"] == "65412" + - test_three_dot_one['msg'] == "device R1-changed-name updated" + +- name: "4 - Create device with tags and assign to rack" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "TestR1" + device_type: "1841" + device_role: "Core Switch" + site: "Test Site2" + rack: "Test Rack Site 2" + position: 35 + face: "Front" + tags: + - "schnozzberry" + tenant: "Test Tenant" + asset_tag: "1234" + state: present + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['device']['name'] == "TestR1" + - test_four['device']['device_role'] == 1 + - test_four['device']['device_type'] == 5 + - test_four['device']['site'] == 2 + - test_four['device']['status'] == "active" + - test_four['device']['rack'] == 1 + - test_four['device']['tags'][0] == 4 + - test_four['device']['tenant'] == 1 + - test_four['device']['asset_tag'] == '1234' + - test_four['msg'] == "device TestR1 created" + +- name: "5 - Delete previous device" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "TestR1" + state: absent + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "device TestR1 deleted" + +- name: "6 - Delete R1" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "R1-changed-name" + state: absent + register: test_six + +- name: "6 - ASSERT" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "present" + - test_six['diff']['after']['state'] == "absent" + - test_six['msg'] == "device R1-changed-name deleted" + +- name: "7 - Add primary_ip4/6 to test100" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "test100" + primary_ip4: "172.16.180.1/24" + primary_ip6: "2001::1:1/64" + state: present + register: test_seven + +- name: "7 - ASSERT" + assert: + that: + - test_seven is changed + - test_seven['diff']['after']['primary_ip4'] == 1 + - test_seven['diff']['after']['primary_ip6'] == 2 + - test_seven['device']['name'] == "test100" + - test_seven['device']['device_role'] == 1 + - test_seven['device']['device_type'] == 1 + - test_seven['device']['site'] == 1 + - test_seven['device']['status'] == "active" + - test_seven['device']['primary_ip4'] == 1 + - test_seven['device']['primary_ip6'] == 2 + - test_seven['msg'] == "device test100 updated" + +- name: "8 - Device with empty string name" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "" + device_type: + id: 1 + device_role: "Core Switch" + site: "Test Site" + status: "Staged" + state: present + register: test_eight + +- name: "8 - ASSERT" + assert: + that: + - test_eight is changed + - test_eight['diff']['before']['state'] == 'absent' + - test_eight['diff']['after']['state'] == 'present' + - test_eight['device']['device_role'] == 1 + - test_eight['device']['device_type'] == 1 + - test_eight['device']['site'] == 1 + - test_eight['device']['status'] == "staged" + - "'-' in test_eight['device']['name']" + - "test_eight['device']['name'] | length == 36" diff --git a/tests/integration/targets/v2.11/tasks/netbox_device_bay.yml b/tests/integration/targets/v2.11/tasks/netbox_device_bay.yml new file mode 100644 index 000000000..18a804354 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device_bay.yml @@ -0,0 +1,87 @@ +--- +## +## +### NETBOX_DEVICE_BAY +## +## +- name: "DEVICE_BAY 1: Necessary info creation" + netbox.netbox.netbox_device_bay: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "Test Nexus One" + name: "Device Bay One" + state: present + register: test_one + +- name: "DEVICE_BAY 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['device_bay']['name'] == "Device Bay One" + - test_one['device_bay']['device'] == 4 + - test_one['msg'] == "device_bay Device Bay One created" + +- name: "DEVICE_BAY 2: Create duplicate" + netbox.netbox.netbox_device_bay: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "Test Nexus One" + name: "Device Bay One" + state: present + register: test_two + +- name: "DEVICE_BAY 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['device_bay']['name'] == "Device Bay One" + - test_two['device_bay']['device'] == 4 + - test_two['msg'] == "device_bay Device Bay One already exists" + +- name: "DEVICE_BAY 3: ASSERT - Update" + netbox.netbox.netbox_device_bay: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "Test Nexus One" + name: "Device Bay One" + installed_device: "Test Nexus Child One" + tags: + - "Schnozzberry" + state: present + register: test_three + +- name: "DEVICE_BAY 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['installed_device'] == 5 + - test_three['diff']['after']['tags'][0] == 4 + - test_three['device_bay']['name'] == "Device Bay One" + - test_three['device_bay']['device'] == 4 + - test_three['device_bay']['installed_device'] == 5 + - test_three['device_bay']['tags'][0] == 4 + - test_three['msg'] == "device_bay Device Bay One updated" + +- name: "DEVICE_BAY 4: ASSERT - Delete" + netbox.netbox.netbox_device_bay: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Device Bay One" + state: absent + register: test_four + +- name: "DEVICE_BAY 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['device_bay']['name'] == "Device Bay One" + - test_four['device_bay']['device'] == 4 + - test_four['device_bay']['installed_device'] == 5 + - test_four['device_bay']['tags'][0] == 4 + - test_four['msg'] == "device_bay Device Bay One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_device_bay_template.yml b/tests/integration/targets/v2.11/tasks/netbox_device_bay_template.yml new file mode 100644 index 000000000..4b6965033 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device_bay_template.yml @@ -0,0 +1,81 @@ +--- +## +## +### NETBOX_DEVICE_BAY_TEMPLATE +## +## +- name: "DEVICE_BAY_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_device_bay_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device_type: WS Test 3850 + name: Device Bay Template One + state: present + register: test_one + +- name: "DEVICE_BAY_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['device_bay_template']['name'] == "Device Bay Template One" + - test_one['device_bay_template']['device_type'] == 7 + - test_one['msg'] == "device_bay_template Device Bay Template One created" + +- name: "DEVICE_BAY_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_device_bay_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device_type: WS Test 3850 + name: Device Bay Template One + state: present + register: test_two + +- name: "DEVICE_BAY_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['device_bay_template']['name'] == "Device Bay Template One" + - test_two['device_bay_template']['device_type'] == 7 + - test_two['msg'] == "device_bay_template Device Bay Template One already exists" + +- name: "DEVICE_BAY_TEMPLATE 3: ASSERT - Create Device Bay Template for Delete Test" + netbox.netbox.netbox_device_bay_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device_type: WS Test 3850 + name: Device Bay Template Two + state: present + register: test_three + +- name: "DEVICE_BAY_TEMPLATE 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['device_bay_template']['name'] == "Device Bay Template Two" + - test_three['device_bay_template']['device_type'] == 7 + - test_three['msg'] == "device_bay_template Device Bay Template Two created" + +- name: "DEVICE_BAY_TEMPLATE 4: ASSERT - Delete" + netbox.netbox.netbox_device_bay_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Device Bay Template Two + device_type: WS Test 3850 + state: absent + register: test_four + +- name: "DEVICE_BAY_TEMPLATE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['device_bay_template']['name'] == "Device Bay Template Two" + - test_four['device_bay_template']['device_type'] == 7 + - test_four['msg'] == "device_bay_template Device Bay Template Two deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_device_interface.yml b/tests/integration/targets/v2.11/tasks/netbox_device_interface.yml new file mode 100644 index 000000000..e1e374c54 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device_interface.yml @@ -0,0 +1,313 @@ +--- +## +## +### NETBOX_DEVICE_INTERFACE +## +## +- name: "1 - Interface with required information" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet3 + type: "1000Base-T (1GE)" + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['msg'] == "interface GigabitEthernet3 created" + - test_one['diff']['before']['state'] == 'absent' + - test_one['diff']['after']['state'] == 'present' + - test_one['interface']['name'] == "GigabitEthernet3" + - test_one['interface']['device'] == 1 + +- name: "2 - Update test100 - GigabitEthernet3" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet3 + mtu: 1600 + enabled: false + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - test_two is changed + - test_two['msg'] == "interface GigabitEthernet3 updated" + - test_two['diff']['after']['enabled'] == false + - test_two['diff']['after']['mtu'] == 1600 + - test_two['interface']['name'] == "GigabitEthernet3" + - test_two['interface']['device'] == 1 + - test_two['interface']['enabled'] == false + - test_two['interface']['mtu'] == 1600 + +- name: "3 - Delete interface test100 - GigabitEthernet3" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet3 + state: absent + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['msg'] == "interface GigabitEthernet3 deleted" + - test_three['diff']['before']['state'] == "present" + - test_three['diff']['after']['state'] == "absent" + +- name: "4 - Create LAG with several specified options" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: port-channel1 + type: Link Aggregation Group (LAG) + mtu: 1600 + mgmt_only: false + mode: Access + state: present + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['msg'] == "interface port-channel1 created" + - test_four['diff']['before']['state'] == 'absent' + - test_four['diff']['after']['state'] == 'present' + - test_four['interface']['name'] == "port-channel1" + - test_four['interface']['device'] == 1 + - test_four['interface']['enabled'] == true + - test_four['interface']['type'] == "lag" + - test_four['interface']['mgmt_only'] == false + - test_four['interface']['mode'] == "access" + - test_four['interface']['mtu'] == 1600 + +- name: "5 - Create interface and assign it to parent LAG" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet3 + enabled: false + type: 1000Base-T (1GE) + lag: + name: port-channel1 + mtu: 1600 + mgmt_only: false + mode: Access + state: present + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['msg'] == "interface GigabitEthernet3 created" + - test_five['diff']['before']['state'] == 'absent' + - test_five['diff']['after']['state'] == 'present' + - test_five['interface']['name'] == "GigabitEthernet3" + - test_five['interface']['device'] == 1 + - test_five['interface']['enabled'] == false + - test_five['interface']['type'] == "1000base-t" + - test_five['interface']['mgmt_only'] == false + - test_five['interface']['lag'] == 8 + - test_five['interface']['mode'] == "access" + - test_five['interface']['mtu'] == 1600 + +- name: "6 - Create interface as trunk port" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet21 + enabled: false + type: 1000Base-T (1GE) + untagged_vlan: + name: Wireless + site: Test Site + tagged_vlans: + - name: Data + site: Test Site + - name: VoIP + site: Test Site + mtu: 1600 + mgmt_only: true + mode: Tagged + state: present + register: test_six + +- name: "6 - ASSERT" + assert: + that: + - test_six is changed + - test_six['msg'] == "interface GigabitEthernet21 created" + - test_six['diff']['before']['state'] == 'absent' + - test_six['diff']['after']['state'] == 'present' + - test_six['interface']['name'] == "GigabitEthernet21" + - test_six['interface']['device'] == 1 + - test_six['interface']['enabled'] == false + - test_six['interface']['type'] == "1000base-t" + - test_six['interface']['mgmt_only'] == true + - test_six['interface']['mode'] == "tagged" + - test_six['interface']['mtu'] == 1600 + - test_six['interface']['tagged_vlans'] == [2, 3] + - test_six['interface']['untagged_vlan'] == 1 + +- name: "7 - Duplicate Interface" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet1 + register: test_seven + +- name: "7 - ASSERT" + assert: + that: + - not test_seven['changed'] + - test_seven['msg'] == "interface GigabitEthernet1 already exists" + - test_seven['interface']['name'] == "GigabitEthernet1" + - test_seven['interface']['device'] == 1 + +- name: "Add port-channel1 to R1 to test finding proper port-channel1" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "R1-Device" + name: "port-channel1" + type: "Link Aggregation Group (LAG)" + +- name: "8 - Create interface and assign it to parent LAG - non dict" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet4 + enabled: false + type: 1000Base-T (1GE) + lag: "port-channel1" + mtu: 1600 + mgmt_only: false + mode: Access + state: present + register: test_eight + +- name: "8 - ASSERT" + assert: + that: + - test_eight is changed + - test_eight['msg'] == "interface GigabitEthernet4 created" + - test_eight['diff']['before']['state'] == 'absent' + - test_eight['diff']['after']['state'] == 'present' + - test_eight['interface']['name'] == "GigabitEthernet4" + - test_eight['interface']['device'] == 1 + - test_eight['interface']['enabled'] == false + - test_eight['interface']['type'] == "1000base-t" + - test_eight['interface']['mgmt_only'] == false + - test_eight['interface']['lag'] == 8 + - test_eight['interface']['mode'] == "access" + - test_eight['interface']['mtu'] == 1600 + +- name: "9 - Create interface on VC child" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: Test Nexus Child One + name: Ethernet2/2 + type: 1000Base-T (1GE) + state: present + register: test_nine + +- name: "9 - ASSERT" + assert: + that: + - test_nine is changed + - test_nine['msg'] == "interface Ethernet2/2 created" + - test_nine['diff']['before']['state'] == 'absent' + - test_nine['diff']['after']['state'] == 'present' + - test_nine['interface']['name'] == "Ethernet2/2" + - test_nine['interface']['device'] == 5 + - test_nine['interface']['enabled'] == true + - test_nine['interface']['type'] == "1000base-t" + +- name: "10 - Update interface on VC child" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: Test Nexus One + name: Ethernet2/2 + description: "Updated child interface from parent device" + update_vc_child: True + state: present + register: test_ten + +- name: "10 - ASSERT" + assert: + that: + - test_ten is changed + - test_ten['msg'] == "interface Ethernet2/2 updated" + - test_ten['diff']['after']['description'] == 'Updated child interface from parent device' + - test_ten['interface']['name'] == "Ethernet2/2" + - test_ten['interface']['device'] == 5 + - test_ten['interface']['enabled'] == true + - test_ten['interface']['type'] == "1000base-t" + - test_ten['interface']['description'] == 'Updated child interface from parent device' + +- name: "11 - Update interface on VC child w/o update_vc_child" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: Test Nexus One + name: Ethernet2/2 + description: "Updated child interface from parent device - test" + state: present + ignore_errors: yes + register: test_eleven + +- name: "11 - ASSERT" + assert: + that: + - test_eleven is failed + - test_eleven['msg'] == "Must set update_vc_child to True to allow child device interface modification" + +- name: "12 - Create interface and mark it as connected" + netbox.netbox.netbox_device_interface: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: test100 + name: GigabitEthernet5 + type: 1000Base-T (1GE) + mark_connected: true + register: test_twelve + +- name: "12- ASSERT" + assert: + that: + - test_twelve is changed + - test_twelve['msg'] == "interface GigabitEthernet5 created" + - test_twelve['diff']['before']['state'] == 'absent' + - test_twelve['diff']['after']['state'] == 'present' + - test_twelve['interface']['name'] == "GigabitEthernet5" + - test_twelve['interface']['device'] == 1 + - test_twelve['interface']['mark_connected'] == true diff --git a/tests/integration/targets/v2.11/tasks/netbox_device_interface_template.yml b/tests/integration/targets/v2.11/tasks/netbox_device_interface_template.yml new file mode 100644 index 000000000..b6e98914f --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device_interface_template.yml @@ -0,0 +1,109 @@ +--- +## +## +### NETBOX_DEVICE_INTERFACE_TEMPLATE +## +## +- name: "1 - Interface with required information" + netbox.netbox.netbox_device_interface_template: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device_type: Arista Test + name: 10GBASE-T (10GE) + type: 10gbase-t + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['msg'] == "interface_template 10GBASE-T (10GE) created" + - test_one['diff']['before']['state'] == 'absent' + - test_one['diff']['after']['state'] == 'present' + - test_one['interface_template']['name'] == "10GBASE-T (10GE)" + - test_one['interface_template']['device_type'] == 2 + - test_one['interface_template']['type'] == '10gbase-t' + +- name: "2 - Update 10GBASE-T (10GE)" + netbox.netbox.netbox_device_interface_template: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device_type: Arista Test + name: 10GBASE-T (10GE) + type: 10gbase-t + mgmt_only: true + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - test_two is changed + - test_two['msg'] == "interface_template 10GBASE-T (10GE) updated" + - test_two['diff']['after']['mgmt_only'] == true + - test_two['interface_template']['name'] == "10GBASE-T (10GE)" + - test_two['interface_template']['device_type'] == 2 + - test_two['interface_template']['mgmt_only'] == true + +- name: "3 - Delete interface template 10GBASE-T (10GE)" + netbox.netbox.netbox_device_interface_template: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device_type: Arista Test + name: 10GBASE-T (10GE) + type: 10gbase-t + state: absent + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['msg'] == "interface_template 10GBASE-T (10GE) deleted" + - test_three['diff']['before']['state'] == "present" + - test_three['diff']['after']['state'] == "absent" + +- name: "4 - Create LAG with several specified options" + netbox.netbox.netbox_device_interface_template: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device_type: Arista Test + name: port channel template + type: lag + mgmt_only: false + state: present + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['msg'] == "interface_template port channel template created" + - test_four['diff']['before']['state'] == 'absent' + - test_four['diff']['after']['state'] == 'present' + - test_four['interface_template']['name'] == "port channel template" + - test_four['interface_template']['device_type'] == 2 + - test_four['interface_template']['type'] == "lag" + - test_four['interface_template']['mgmt_only'] == false + +- name: "5 - Duplicate Interface Template port channel template" + netbox.netbox.netbox_device_interface_template: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device_type: Arista Test + name: port channel template + type: lag + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - not test_five['changed'] + - test_five['msg'] == "interface_template port channel template already exists" + - test_five['interface_template']['name'] == "port channel template" + - test_five['interface_template']['device_type'] == 2 + - test_five['interface_template']['type'] == "lag" diff --git a/tests/integration/targets/v2.11/tasks/netbox_device_role.yml b/tests/integration/targets/v2.11/tasks/netbox_device_role.yml new file mode 100644 index 000000000..64ec9840f --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device_role.yml @@ -0,0 +1,101 @@ +--- +## +## +### NETBOX_DEVICE_ROLE +## +## +- name: "DEVICE_ROLE 1: Necessary info creation" + netbox.netbox.netbox_device_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Device Role" + color: "FFFFFF" + state: present + register: test_one + +- name: "DEVICE_ROLE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['device_role']['name'] == "Test Device Role" + - test_one['device_role']['slug'] == "test-device-role" + - test_one['device_role']['color'] == "ffffff" + - test_one['msg'] == "device_role Test Device Role created" + +- name: "DEVICE_ROLE 2: Create duplicate" + netbox.netbox.netbox_device_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Device Role" + color: "FFFFFF" + state: present + register: test_two + +- name: "DEVICE_ROLE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['device_role']['name'] == "Test Device Role" + - test_two['device_role']['slug'] == "test-device-role" + - test_two['device_role']['color'] == "ffffff" + - test_two['msg'] == "device_role Test Device Role already exists" + +- name: "DEVICE_ROLE 3: ASSERT - Update" + netbox.netbox.netbox_device_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Device Role" + color: "003EFF" + vm_role: false + state: present + register: test_three + +- name: "DEVICE_ROLE 3: ASSERT - Update" + assert: + that: + - test_three is changed + - test_three['diff']['after']['color'] == "003eff" + - test_three['diff']['after']['vm_role'] == false + - test_three['device_role']['name'] == "Test Device Role" + - test_three['device_role']['slug'] == "test-device-role" + - test_three['device_role']['color'] == "003eff" + - test_three['device_role']['vm_role'] == false + - test_three['msg'] == "device_role Test Device Role updated" + +- name: "DEVICE_ROLE 4: ASSERT - Delete" + netbox.netbox.netbox_device_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Device Role + state: absent + register: test_four + +- name: "DEVICE_ROLE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "device_role Test Device Role deleted" + +- name: "DEVICE_ROLE 5: ASSERT - Delete non existing" + netbox.netbox.netbox_device_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Device Role + state: absent + register: test_five + +- name: "DEVICE_ROLE 5: ASSERT - Delete non existing`" + assert: + that: + - not test_five['changed'] + - test_five['device_role'] == None + - test_five['msg'] == "device_role Test Device Role already absent" diff --git a/tests/integration/targets/v2.11/tasks/netbox_device_type.yml b/tests/integration/targets/v2.11/tasks/netbox_device_type.yml new file mode 100644 index 000000000..098c75d27 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_device_type.yml @@ -0,0 +1,132 @@ +--- +## +## +### NETBOX_DEVICE_TYPE +## +## +- name: "DEVICE_TYPE 1: Necessary info creation" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + slug: test-device-type + model: ws-test-3750 + manufacturer: Test Manufacturer + state: present + register: test_one + +- name: "DEVICE_TYPE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['device_type']['slug'] == "test-device-type" + - test_one['device_type']['model'] == "ws-test-3750" + - test_one['device_type']['manufacturer'] == 3 + - test_one['msg'] == "device_type test-device-type created" + +- name: "DEVICE_TYPE 2: Create duplicate" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + slug: test-device-type + model: "ws-test-3750" + manufacturer: Test Manufacturer + state: present + register: test_two + +- name: "DEVICE_TYPE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_one['device_type']['slug'] == "test-device-type" + - test_one['device_type']['model'] == "ws-test-3750" + - test_one['device_type']['manufacturer'] == 3 + - test_two['msg'] == "device_type test-device-type already exists" + +- name: "DEVICE_TYPE 3: ASSERT - Update" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + slug: test-device-type + model: ws-test-3750 + manufacturer: Test Manufacturer + part_number: ws-3750g-v2 + u_height: 1 + is_full_depth: false + subdevice_role: parent + state: present + register: test_three + +- name: "DEVICE_TYPE 3: ASSERT - Update" + assert: + that: + - test_three is changed + - test_three['diff']['after']['is_full_depth'] == false + - test_three['diff']['after']['part_number'] == "ws-3750g-v2" + - test_three['diff']['after']['subdevice_role'] == "parent" + - test_three['device_type']['slug'] == "test-device-type" + - test_three['device_type']['model'] == "ws-test-3750" + - test_three['device_type']['manufacturer'] == 3 + - test_three['device_type']['is_full_depth'] == false + - test_three['device_type']['part_number'] == "ws-3750g-v2" + - test_three['device_type']['subdevice_role'] == "parent" + - test_three['msg'] == "device_type test-device-type updated" + +- name: "DEVICE_TYPE 4: ASSERT - Delete" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + model: test-device-type + state: absent + register: test_four + +- name: "DEVICE_TYPE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "device_type test-device-type deleted" + +- name: "DEVICE_TYPE 5: ASSERT - Delete non existing" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + model: "Test Device Type" + state: absent + register: test_five + +- name: "DEVICE_TYPE 5: ASSERT - Delete non existing`" + assert: + that: + - not test_five['changed'] + - test_five['device_type'] == None + - test_five['msg'] == "device_type Test Device Type already absent" + +- name: "DEVICE_TYPE 6: Without Slug" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + model: "WS Test 3850" + manufacturer: "Test Manufacturer" + subdevice_role: "parent" + state: present + register: test_six + +- name: "DEVICE_TYPE 6: ASSERT - Without Slug" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "absent" + - test_six['diff']['after']['state'] == "present" + - test_six['device_type']['slug'] == "ws-test-3850" + - test_six['device_type']['model'] == "WS Test 3850" + - test_six['device_type']['manufacturer'] == 3 + - test_six['msg'] == "device_type WS Test 3850 created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_front_port.yml b/tests/integration/targets/v2.11/tasks/netbox_front_port.yml new file mode 100644 index 000000000..1f4c60a4d --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_front_port.yml @@ -0,0 +1,150 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_FRONT_PORT +## +## +- name: "FRONT_PORT 1: Necessary info creation" + netbox.netbox.netbox_front_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port + device: test100 + type: bnc + rear_port: Rear Port + state: present + register: test_one + +- name: "FRONT_PORT 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['front_port']['name'] == "Front Port" + - test_one['front_port']['device'] == 1 + - test_one['front_port']['type'] == "bnc" + - test_one['front_port']['rear_port'] == 1 + - test_one['msg'] == "front_port Front Port created" + +- name: "FRONT_PORT 2: Create duplicate" + netbox.netbox.netbox_front_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port + device: test100 + type: bnc + rear_port: Rear Port + state: present + register: test_two + +- name: "FRONT_PORT 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['front_port']['name'] == "Front Port" + - test_two['front_port']['device'] == 1 + - test_two['front_port']['type'] == "bnc" + - test_two['front_port']['rear_port'] == 1 + - test_two['msg'] == "front_port Front Port already exists" + +- name: "FRONT_PORT 3: Update Front Port with other fields" + netbox.netbox.netbox_front_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port + device: test100 + type: bnc + rear_port: Rear Port + rear_port_position: 5 + description: test description + state: present + register: test_three + +- name: "FRONT_PORT 3: ASSERT - Update Front Port with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['rear_port_position'] == 5 + - test_three['diff']['after']['description'] == "test description" + - test_three['front_port']['name'] == "Front Port" + - test_three['front_port']['device'] == 1 + - test_three['front_port']['type'] == "bnc" + - test_three['front_port']['rear_port'] == 1 + - test_three['front_port']['rear_port_position'] == 5 + - test_three['front_port']['description'] == "test description" + - test_three['msg'] == "front_port Front Port updated" + +- name: "FRONT_PORT 4: Create Front Port for Delete Test" + netbox.netbox.netbox_front_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port 2 + device: test100 + type: bnc + rear_port: Rear Port + state: present + register: test_four + +- name: "FRONT_PORT 4: ASSERT - Create Front Port for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['front_port']['name'] == "Front Port 2" + - test_four['front_port']['device'] == 1 + - test_four['front_port']['type'] == "bnc" + - test_four['front_port']['rear_port'] == 1 + - test_four['msg'] == "front_port Front Port 2 created" + +- name: "FRONT_PORT 5: Delete Front Port" + netbox.netbox.netbox_front_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port 2 + device: test100 + type: bnc + rear_port: Rear Port + state: absent + register: test_five + +- name: "FRONT_PORT 5: ASSERT - Delete Front Port" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "front_port Front Port 2 deleted" + +- name: "FRONT_PORT 6: Create duplicate with rear_port dictionary" + netbox.netbox.netbox_front_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port + device: test100 + type: bnc + rear_port: + device: test100 + name: Rear Port + state: present + register: test_six + +- name: "FRONT_PORT 6: ASSERT - Create duplicate with rear_port dictionary" + assert: + that: + - not test_six['changed'] + - test_six['front_port']['name'] == "Front Port" + - test_six['front_port']['device'] == 1 + - test_six['front_port']['type'] == "bnc" + - test_six['front_port']['rear_port'] == 1 + - test_six['msg'] == "front_port Front Port already exists" diff --git a/tests/integration/targets/v2.11/tasks/netbox_front_port_template.yml b/tests/integration/targets/v2.11/tasks/netbox_front_port_template.yml new file mode 100644 index 000000000..30e907100 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_front_port_template.yml @@ -0,0 +1,147 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_FRONT_PORT_TEMPLATE +## +## +- name: "FRONT_PORT_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_front_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port Template + device_type: Cisco Test + type: bnc + rear_port_template: Rear Port Template + state: present + register: test_one + +- name: "FRONT_PORT_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['front_port_template']['name'] == "Front Port Template" + - test_one['front_port_template']['device_type'] == 1 + - test_one['front_port_template']['type'] == "bnc" + - test_one['front_port_template']['rear_port'] == 1 + - test_one['msg'] == "front_port_template Front Port Template created" + +- name: "FRONT_PORT_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_front_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port Template + device_type: Cisco Test + type: bnc + rear_port_template: Rear Port Template + state: present + register: test_two + +- name: "FRONT_PORT_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['front_port_template']['name'] == "Front Port Template" + - test_two['front_port_template']['device_type'] == 1 + - test_two['front_port_template']['type'] == "bnc" + - test_two['front_port_template']['rear_port'] == 1 + - test_two['msg'] == "front_port_template Front Port Template already exists" + +- name: "FRONT_PORT_TEMPLATE 3: Update Front Port Template with other fields" + netbox.netbox.netbox_front_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port Template + device_type: Cisco Test + type: bnc + rear_port_template: Rear Port Template + rear_port_template_position: 5 + state: present + register: test_three + +- name: "FRONT_PORT_TEMPLATE 3: ASSERT - Update Front Port Template with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['rear_port_position'] == 5 + - test_three['front_port_template']['name'] == "Front Port Template" + - test_three['front_port_template']['device_type'] == 1 + - test_three['front_port_template']['type'] == "bnc" + - test_three['front_port_template']['rear_port_position'] == 5 + - test_three['front_port_template']['rear_port'] == 1 + - test_three['msg'] == "front_port_template Front Port Template updated" + +- name: "FRONT_PORT_TEMPLATE 4: Create Front Port Template for Delete Test" + netbox.netbox.netbox_front_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port Template 2 + device_type: Cisco Test + type: bnc + rear_port_template: Rear Port Template + state: present + register: test_four + +- name: "FRONT_PORT_TEMPLATE 4: ASSERT - Create Front Port Template for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['front_port_template']['name'] == "Front Port Template 2" + - test_four['front_port_template']['device_type'] == 1 + - test_four['front_port_template']['type'] == "bnc" + - test_four['front_port_template']['rear_port'] == 1 + - test_four['msg'] == "front_port_template Front Port Template 2 created" + +- name: "FRONT_PORT_TEMPLATE 5: Delete Front Port Template" + netbox.netbox.netbox_front_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port Template 2 + device_type: Cisco Test + type: bnc + rear_port_template: Rear Port Template + state: absent + register: test_five + +- name: "FRONT_PORT_TEMPLATE 5: ASSERT - Delete Front Port Template" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "front_port_template Front Port Template 2 deleted" + +- name: "FRONT_PORT 6: Create duplicate with rear_port_template dictionary" + netbox.netbox.netbox_front_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Front Port Template + device_type: Cisco Test + type: bnc + rear_port_template: + device: Cisco Test + name: Rear Port Template + state: present + register: test_six + +- name: "FRONT_PORT 6: ASSERT - Create duplicate with rear_port_template dictionary" + assert: + that: + - not test_six['changed'] + - test_six['front_port_template']['name'] == "Front Port Template" + - test_six['front_port_template']['device_type'] == 1 + - test_six['front_port_template']['type'] == "bnc" + - test_six['front_port_template']['rear_port'] == 1 + - test_six['msg'] == "front_port_template Front Port Template already exists" diff --git a/tests/integration/targets/v2.11/tasks/netbox_inventory_item.yml b/tests/integration/targets/v2.11/tasks/netbox_inventory_item.yml new file mode 100644 index 000000000..d551b2fa0 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_inventory_item.yml @@ -0,0 +1,107 @@ +--- +## +## +### NETBOX_INVENTORY_ITEM +## +## +- name: "INVENTORY_ITEM 1: Necessary info creation" + netbox.netbox.netbox_inventory_item: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "test100" + name: "10G-SFP+" + state: present + register: test_one + +- name: "INVENTORY_ITEM 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['inventory_item']['name'] == "10G-SFP+" + - test_one['inventory_item']['device'] == 1 + - test_one['msg'] == "inventory_item 10G-SFP+ created" + +- name: "INVENTORY_ITEM 2: Create duplicate" + netbox.netbox.netbox_inventory_item: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "test100" + name: "10G-SFP+" + state: present + register: test_two + +- name: "INVENTORY_ITEM 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['inventory_item']['name'] == "10G-SFP+" + - test_two['inventory_item']['device'] == 1 + - test_two['msg'] == "inventory_item 10G-SFP+ already exists" + +- name: "INVENTORY_ITEM 3: ASSERT - Update" + netbox.netbox.netbox_inventory_item: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "test100" + name: "10G-SFP+" + manufacturer: "Cisco" + part_id: "10G-SFP+" + serial: "1234" + asset_tag: "1234" + description: "New SFP" + discovered: True + tags: + - "Schnozzberry" + state: present + register: test_three + +- name: "INVENTORY_ITEM 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['asset_tag'] == "1234" + - test_three['diff']['after']['serial'] == "1234" + - test_three['diff']['after']['description'] == "New SFP" + - test_three['diff']['after']['manufacturer'] == 1 + - test_three['diff']['after']['part_id'] == "10G-SFP+" + - test_three['diff']['after']['tags'][0] == 4 + - test_three['diff']['after']['discovered'] == True + - test_three['inventory_item']['name'] == "10G-SFP+" + - test_three['inventory_item']['device'] == 1 + - test_three['inventory_item']['asset_tag'] == "1234" + - test_three['inventory_item']['serial'] == "1234" + - test_three['inventory_item']['description'] == "New SFP" + - test_three['inventory_item']['manufacturer'] == 1 + - test_three['inventory_item']['part_id'] == "10G-SFP+" + - test_three['inventory_item']['tags'][0] == 4 + - test_three['inventory_item']['discovered'] == True + - test_three['msg'] == "inventory_item 10G-SFP+ updated" + +- name: "INVENTORY_ITEM 4: ASSERT - Delete" + netbox.netbox.netbox_inventory_item: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + device: "test100" + name: "10G-SFP+" + state: absent + register: test_four + +- name: "INVENTORY_ITEM 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['inventory_item']['name'] == "10G-SFP+" + - test_four['inventory_item']['device'] == 1 + - test_four['inventory_item']['asset_tag'] == "1234" + - test_four['inventory_item']['serial'] == "1234" + - test_four['inventory_item']['description'] == "New SFP" + - test_four['inventory_item']['manufacturer'] == 1 + - test_four['inventory_item']['part_id'] == "10G-SFP+" + - test_four['inventory_item']['tags'][0] == 4 + - test_four['msg'] == "inventory_item 10G-SFP+ deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_ip_address.yml b/tests/integration/targets/v2.11/tasks/netbox_ip_address.yml new file mode 100644 index 000000000..8b1148cdb --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_ip_address.yml @@ -0,0 +1,350 @@ +--- +## +## +### NETBOX_IP_ADDRESS +## +## +- name: "1 - Create IP address within Netbox with only required information - State: Present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.1.10/30 + state: present + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['msg'] == "ip_address 192.168.1.10/30 created" + - test_one['ip_address']['address'] == "192.168.1.10/30" + +- name: "2 - Update 192.168.1.10/30" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.1.10/30 + description: "Updated ip address" + tags: + - "Updated" + state: present + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - test_two is changed + - test_two['diff']['after']['description'] == "Updated ip address" + - test_two['diff']['after']['tags'][0] == 10 + - test_two['msg'] == "ip_address 192.168.1.10/30 updated" + - test_two['ip_address']['address'] == "192.168.1.10/30" + - test_two['ip_address']['tags'][0] == 10 + - test_two['ip_address']['description'] == "Updated ip address" + +- name: "3 - Delete IP - 192.168.1.10 - State: Absent" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.1.10/30 + state: absent + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "present" + - test_three['diff']['after']['state'] == "absent" + - test_three['msg'] == "ip_address 192.168.1.10/30 deleted" + +- name: "4 - Create IP in global VRF - 192.168.1.20/30 - State: Present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.1.20/30 + state: present + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['msg'] == "ip_address 192.168.1.20/30 created" + - test_four['ip_address']['address'] == "192.168.1.20/30" + +- name: "5 - Create IP in global VRF - 192.168.1.20/30 - State: New" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.1.20/30 + state: new + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "absent" + - test_five['diff']['after']['state'] == "present" + - test_five['msg'] == "ip_address 192.168.1.20/30 created" + - test_five['ip_address']['address'] == "192.168.1.20/30" + +- name: "6 - Create new address with only prefix specified - State: new" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 192.168.100.0/24 + state: new + register: test_six + +- name: "6 - ASSERT" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "absent" + - test_six['diff']['after']['state'] == "present" + - test_six['msg'] == "ip_address 192.168.100.1/24 created" + - test_six['ip_address']['address'] == "192.168.100.1/24" + +- name: "7 - Create IP address with several specified" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + address: 172.16.1.20/24 + vrf: Test VRF + tenant: Test Tenant + status: Reserved + role: Loopback + description: Test description + tags: + - "Schnozzberry" + state: present + register: test_seven + +- name: "7 - ASSERT" + assert: + that: + - test_seven is changed + - test_seven['diff']['before']['state'] == "absent" + - test_seven['diff']['after']['state'] == "present" + - test_seven['msg'] == "ip_address 172.16.1.20/24 created" + - test_seven['ip_address']['address'] == "172.16.1.20/24" + - test_seven['ip_address']['description'] == "Test description" + - test_seven['ip_address']['family'] == 4 + - test_seven['ip_address']['role'] == "loopback" + - test_seven['ip_address']['status'] == "reserved" + - test_seven['ip_address']['tags'][0] == 4 + - test_seven['ip_address']['tenant'] == 1 + - test_seven['ip_address']['vrf'] == 1 + +- name: "8 - Create IP address and assign a nat_inside IP" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + address: 10.10.1.30/16 + vrf: Test VRF + nat_inside: + address: 172.16.1.20 + vrf: Test VRF + register: test_eight + +- name: "8 - ASSERT" + assert: + that: + - test_eight is changed + - test_eight['diff']['before']['state'] == "absent" + - test_eight['diff']['after']['state'] == "present" + - test_eight['msg'] == "ip_address 10.10.1.30/16 created" + - test_eight['ip_address']['address'] == "10.10.1.30/16" + - test_eight['ip_address']['family'] == 4 + - test_eight['ip_address'].get('nat_inside') + - test_eight['ip_address']['vrf'] == 1 + +- name: "9 - Create IP address on GigabitEthernet2 - test100 - State: present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + address: 10.10.200.30/16 + assigned_object: + name: GigabitEthernet2 + device: test100 + register: test_nine + +- name: "9 - ASSERT" + assert: + that: + - test_nine is changed + - test_nine['diff']['before']['state'] == "absent" + - test_nine['diff']['after']['state'] == "present" + - test_nine['msg'] == "ip_address 10.10.200.30/16 created" + - test_nine['ip_address']['address'] == "10.10.200.30/16" + - test_nine['ip_address']['family'] == 4 + - test_nine['ip_address']['assigned_object_type'] == "dcim.interface" + - test_nine['ip_address']['assigned_object_id'] == 4 + +- name: "10 - Create IP address on GigabitEthernet2 - test100 - State: new" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + prefix: 10.10.0.0/16 + assigned_object: + name: GigabitEthernet2 + device: test100 + state: new + register: test_ten + +- name: "10 - ASSERT" + assert: + that: + - test_ten is changed + - test_ten['diff']['before']['state'] == "absent" + - test_ten['diff']['after']['state'] == "present" + - test_ten['msg'] == "ip_address 10.10.0.1/16 created" + - test_ten['ip_address']['address'] == "10.10.0.1/16" + - test_ten['ip_address']['family'] == 4 + - test_ten['ip_address']['assigned_object_type'] == "dcim.interface" + - test_ten['ip_address']['assigned_object_id'] == 4 + +- name: "11 - Create IP address on GigabitEthernet2 - test100 - State: present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + prefix: 192.168.100.0/24 + assigned_object: + name: GigabitEthernet2 + device: test100 + state: present + register: test_eleven + +- name: "11 - ASSERT" + assert: + that: + - test_eleven is changed + - test_eleven['diff']['before']['state'] == "absent" + - test_eleven['diff']['after']['state'] == "present" + - test_eleven['msg'] == "ip_address 192.168.100.2/24 created" + - test_eleven['ip_address']['address'] == "192.168.100.2/24" + +- name: "12 - Duplicate - 192.168.100.2/24 on interface" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.100.2/24 + assigned_object: + name: GigabitEthernet2 + device: test100 + state: present + register: test_twelve + +- name: "12 - ASSERT" + assert: + that: + - not test_twelve['changed'] + - test_twelve['msg'] == "ip_address 192.168.100.2/24 already exists" + - test_twelve['ip_address']['address'] == "192.168.100.2/24" + - test_twelve['ip_address']['assigned_object_type'] == "dcim.interface" + - test_twelve['ip_address']['assigned_object_id'] == 4 + +- name: "13 - Duplicate - 192.168.100.2/24" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 192.168.100.2/24 + state: present + register: test_thirteen + +- name: "13 - ASSERT" + assert: + that: + - not test_thirteen['changed'] + - test_thirteen['msg'] == "ip_address 192.168.100.2/24 already exists" + - test_thirteen['ip_address']['address'] == "192.168.100.2/24" + +- name: "14 - Create IP address on Eth0 - test100-vm - State: present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + address: 10.188.1.100/24 + assigned_object: + name: Eth0 + virtual_machine: test100-vm + register: test_fourteen + +- name: "14 - ASSERT" + assert: + that: + - test_fourteen is changed + - test_fourteen['diff']['before']['state'] == "absent" + - test_fourteen['diff']['after']['state'] == "present" + - test_fourteen['msg'] == "ip_address 10.188.1.100/24 created" + - test_fourteen['ip_address']['address'] == "10.188.1.100/24" + - test_fourteen['ip_address']['family'] == 4 + - test_fourteen['ip_address']['assigned_object_type'] == "virtualization.vminterface" + - test_fourteen['ip_address']['assigned_object_id'] == 1 + +- name: "15 - Create same IP address on Eth0 - test101-vm - State: present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + address: 10.188.1.100/24 + assigned_object: + name: Eth0 + virtual_machine: test101-vm + state: "present" + register: test_fifteen + +- name: "15 - ASSERT" + assert: + that: + - test_fifteen is changed + - test_fifteen['diff']['before']['state'] == "absent" + - test_fifteen['diff']['after']['state'] == "present" + - test_fifteen['msg'] == "ip_address 10.188.1.100/24 created" + - test_fifteen['ip_address']['address'] == "10.188.1.100/24" + - test_fifteen['ip_address']['family'] == 4 + - test_fifteen['ip_address']['assigned_object_type'] == "virtualization.vminterface" + - test_fifteen['ip_address']['assigned_object_id'] == 6 + +- name: "16 - Create IP address with no mask - State: Present" + netbox.netbox.netbox_ip_address: + netbox_url: http://localhost.org:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + address: 10.120.10.1 + state: present + register: test_sixteen + +- name: "16 - ASSERT" + assert: + that: + - test_sixteen is changed + - test_sixteen['diff']['before']['state'] == "absent" + - test_sixteen['diff']['after']['state'] == "present" + - test_sixteen['msg'] == "ip_address 10.120.10.1/32 created" + - test_sixteen['ip_address']['address'] == "10.120.10.1/32" diff --git a/tests/integration/targets/v2.11/tasks/netbox_ipam_role.yml b/tests/integration/targets/v2.11/tasks/netbox_ipam_role.yml new file mode 100644 index 000000000..1f1ff0f36 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_ipam_role.yml @@ -0,0 +1,94 @@ +--- +## +## +### NETBOX_IPAM_ROLE +## +## +- name: "IPAM_ROLE 1: Necessary info creation" + netbox.netbox.netbox_ipam_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test IPAM Role" + state: present + register: test_one + +- name: "IPAM_ROLE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['role']['name'] == "Test IPAM Role" + - test_one['role']['slug'] == "test-ipam-role" + - test_one['msg'] == "role Test IPAM Role created" + +- name: "IPAM_ROLE 2: Create duplicate" + netbox.netbox.netbox_ipam_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test IPAM Role" + state: present + register: test_two + +- name: "IPAM_ROLE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['role']['name'] == "Test IPAM Role" + - test_two['role']['slug'] == "test-ipam-role" + - test_two['msg'] == "role Test IPAM Role already exists" + +- name: "IPAM_ROLE 3: ASSERT - Update" + netbox.netbox.netbox_ipam_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test IPAM Role" + weight: 4096 + state: present + register: test_three + +- name: "IPAM_ROLE 3: ASSERT - Update" + assert: + that: + - test_three is changed + - test_three['diff']['after']['weight'] == 4096 + - test_three['role']['name'] == "Test IPAM Role" + - test_three['role']['slug'] == "test-ipam-role" + - test_three['role']['weight'] == 4096 + - test_three['msg'] == "role Test IPAM Role updated" + +- name: "IPAM_ROLE 4: ASSERT - Delete" + netbox.netbox.netbox_ipam_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test IPAM Role + state: absent + register: test_four + +- name: "IPAM_ROLE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "role Test IPAM Role deleted" + +- name: "IPAM_ROLE 5: ASSERT - Delete non existing" + netbox.netbox.netbox_ipam_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test IPAM Role + state: absent + register: test_five + +- name: "IPAM_ROLE 5: ASSERT - Delete non existing`" + assert: + that: + - not test_five['changed'] + - test_five['role'] == None + - test_five['msg'] == "role Test IPAM Role already absent" diff --git a/tests/integration/targets/v2.11/tasks/netbox_lookup.yml b/tests/integration/targets/v2.11/tasks/netbox_lookup.yml new file mode 100644 index 000000000..bc29397f8 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_lookup.yml @@ -0,0 +1,82 @@ +--- +## +## +### NETBOX_LOOKUP +## +## +- name: "NETBOX_LOOKUP 1: Lookup returns exactly two sites" + assert: + that: "{{ query_result|count }} == 3" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'sites', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}" + +- name: "NETBOX_LOOKUP 2: Query doesn't return Wibble (sanity check json_query)" + assert: + that: "{{ query_result|community.general.json_query('[?value.display_name==`Wibble`]')|count }} == 0" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'devices', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}" + +- name: "NETBOX_LOOKUP 3: Device query returns exactly one TestDeviceR1" + assert: + that: "{{ query_result|community.general.json_query('[?value.display_name==`TestDeviceR1`]')|count }} == 1" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'devices', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}" + +- name: "NETBOX_LOOKUP 4: VLAN ID 400 can be queried and is named 'Test VLAN'" + assert: + that: "{{ (query_result|community.general.json_query('[?value.vid==`400`].value.name'))[0] == 'Test VLAN' }}" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'vlans', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}" + +- name: "NETBOX_LOOKUP 5: Add one of two devices for lookup filter test." + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "L1" + device_type: "Cisco Test" + device_role: "Core Switch" + site: "Test Site" + status: "Staged" + tags: + - "nolookup" + state: present + +- name: "NETBOX_LOOKUP 6: Add two of two devices for lookup filter test." + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "L2" + device_type: "Cisco Test" + device_role: "Core Switch" + site: "Test Site2" + status: "Staged" + tags: + - "lookup" + state: present + +- name: "NETBOX_LOOKUP 7: Device query returns exactly the L2 device" + assert: + that: "{{ query_result|community.general.json_query('[?value.display_name==`L2`]')|count }} == 1" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'devices', api_filter='role=core-switch tag=lookup', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}" + +- name: "NETBOX_LOOKUP 8: Device query specifying raw data returns payload without key/value dict" + assert: + that: "{{ query_result|community.general.json_query('[?display_name==`L2`]')|count }} == 1" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'devices', api_filter='role=core-switch tag=lookup', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567', raw_data=True) }}" + +- name: "NETBOX_LOOKUP 9: Device query specifying multiple sites, Make sure L1 and L2 are in the results" + assert: + that: + - "'L1' in {{ query_result |community.general.json_query('[*].display_name') }}" + - "'L2' in {{ query_result |community.general.json_query('[*].display_name') }}" + vars: + query_result: "{{ query('netbox.netbox.nb_lookup', 'devices', api_filter='role=core-switch site=test-site site=test-site2', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567', raw_data=True) }}" + +- name: "NETBOX_LOOKUP 10: Device query by ID" + assert: + that: + - "{{ query('netbox.netbox.nb_lookup', 'devices', api_filter='id=1', api_endpoint='http://localhost:32768', token='0123456789abcdef0123456789abcdef01234567') }}" diff --git a/tests/integration/targets/v2.11/tasks/netbox_manufacturer.yml b/tests/integration/targets/v2.11/tasks/netbox_manufacturer.yml new file mode 100644 index 000000000..4dd1907eb --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_manufacturer.yml @@ -0,0 +1,91 @@ +--- +## +## +### NETBOX_MANUFACTURER +## +## +- name: "MANUFACTURER 1: Necessary info creation" + netbox.netbox.netbox_manufacturer: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Manufacturer Two + state: present + register: test_one + +- name: "MANUFACTURER 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['manufacturer']['name'] == "Test Manufacturer Two" + - test_one['manufacturer']['slug'] == "test-manufacturer-two" + - test_one['msg'] == "manufacturer Test Manufacturer Two created" + +- name: "MANUFACTURER 2: Create duplicate" + netbox.netbox.netbox_manufacturer: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Manufacturer Two + state: present + register: test_two + +- name: "MANUFACTURER 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['manufacturer']['name'] == "Test Manufacturer Two" + - test_two['manufacturer']['slug'] == "test-manufacturer-two" + - test_two['msg'] == "manufacturer Test Manufacturer Two already exists" + +- name: "MANUFACTURER 3: Update" + netbox.netbox.netbox_manufacturer: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: test manufacturer two + state: present + register: test_three + +- name: "MANUFACTURER 3: ASSERT - Update" + assert: + that: + - test_three['changed'] + - test_three['manufacturer']['name'] == "test manufacturer two" + - test_three['manufacturer']['slug'] == "test-manufacturer-two" + - test_three['msg'] == "manufacturer test manufacturer two updated" + +- name: "MANUFACTURER 4: ASSERT - Delete" + netbox.netbox.netbox_manufacturer: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: test manufacturer two + state: absent + register: test_four + +- name: "MANUFACTURER 3: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "manufacturer test manufacturer two deleted" + +- name: "MANUFACTURER 5: ASSERT - Delete non existing" + netbox.netbox.netbox_manufacturer: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Manufacturer Two + state: absent + register: test_five + +- name: "MANUFACTURER 5: ASSERT - Delete non existing" + assert: + that: + - not test_five['changed'] + - test_five['manufacturer'] == None + - test_five['msg'] == "manufacturer Test Manufacturer Two already absent" diff --git a/tests/integration/targets/v2.11/tasks/netbox_platform.yml b/tests/integration/targets/v2.11/tasks/netbox_platform.yml new file mode 100644 index 000000000..95ccdb4cf --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_platform.yml @@ -0,0 +1,99 @@ +--- +## +## +### NETBOX_PLATFORM +## +## +- name: "PLATFORM 1: Necessary info creation" + netbox.netbox.netbox_platform: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Platform + state: present + register: test_one + +- name: "PLATFORM 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['platform']['name'] == "Test Platform" + - test_one['platform']['slug'] == "test-platform" + - test_one['msg'] == "platform Test Platform created" + +- name: "PLATFORM 2: Create duplicate" + netbox.netbox.netbox_platform: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Platform + state: present + register: test_two + +- name: "PLATFORM 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['platform']['name'] == "Test Platform" + - test_two['platform']['slug'] == "test-platform" + - test_two['msg'] == "platform Test Platform already exists" + +- name: "PLATFORM 3: ASSERT - Update" + netbox.netbox.netbox_platform: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Platform + manufacturer: Test Manufacturer + napalm_driver: ios + napalm_args: + global_delay_factor: 2 + state: present + register: test_three + +- name: "PLATFORM 3: ASSERT - Update" + assert: + that: + - test_three is changed + - test_three['diff']['after']['manufacturer'] == 3 + - test_three['diff']['after']['napalm_args']['global_delay_factor'] == 2 + - test_three['diff']['after']['napalm_driver'] == "ios" + - test_three['platform']['manufacturer'] == 3 + - test_three['platform']['napalm_args']['global_delay_factor'] == 2 + - test_three['platform']['napalm_driver'] == "ios" + - test_three['msg'] == "platform Test Platform updated" + +- name: "PLATFORM 4: ASSERT - Delete" + netbox.netbox.netbox_platform: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Platform + state: absent + register: test_four + +- name: "PLATFORM 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "platform Test Platform deleted" + +- name: "PLATFORM 5: ASSERT - Delete non existing" + netbox.netbox.netbox_platform: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Platform + state: absent + register: test_five + +- name: "PLATFORM 5: ASSERT - Delete non existing`" + assert: + that: + - not test_five['changed'] + - test_five['platform'] == None + - test_five['msg'] == "platform Test Platform already absent" diff --git a/tests/integration/targets/v2.11/tasks/netbox_power_feed.yml b/tests/integration/targets/v2.11/tasks/netbox_power_feed.yml new file mode 100644 index 000000000..a02fd9129 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_power_feed.yml @@ -0,0 +1,127 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_POWER_FEED +## +## +- name: "POWER_FEED 1: Necessary info creation" + netbox.netbox.netbox_power_feed: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Feed + power_panel: Power Panel + state: present + register: test_one + +- name: "POWER_FEED 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['power_feed']['name'] == "Power Feed" + - test_one['power_feed']['power_panel'] == 1 + - test_one['msg'] == "power_feed Power Feed created" + +- name: "POWER_FEED 2: Create duplicate" + netbox.netbox.netbox_power_feed: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Feed + power_panel: Power Panel + state: present + register: test_two + +- name: "POWER_FEED 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['power_feed']['name'] == "Power Feed" + - test_two['power_feed']['power_panel'] == 1 + - test_two['msg'] == "power_feed Power Feed already exists" + +- name: "POWER_FEED 3: Update power_feed with other fields" + netbox.netbox.netbox_power_feed: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Feed + power_panel: Power Panel + status: offline + type: redundant + supply: dc + phase: three-phase + voltage: 400 + amperage: 32 + max_utilization: 25 + comments: totally normal power feed + state: present + register: test_three + +- name: "POWER_FEED 3: ASSERT - Update power_feed with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['status'] == "offline" + - test_three['diff']['after']['type'] == "redundant" + - test_three['diff']['after']['supply'] == "dc" + - test_three['diff']['after']['phase'] == "three-phase" + - test_three['diff']['after']['voltage'] == 400 + - test_three['diff']['after']['amperage'] == 32 + - test_three['diff']['after']['max_utilization'] == 25 + - test_three['diff']['after']['comments'] == "totally normal power feed" + - test_three['power_feed']['name'] == "Power Feed" + - test_three['power_feed']['power_panel'] == 1 + - test_three['power_feed']['status'] == "offline" + - test_three['power_feed']['type'] == "redundant" + - test_three['power_feed']['supply'] == "dc" + - test_three['power_feed']['phase'] == "three-phase" + - test_three['power_feed']['voltage'] == 400 + - test_three['power_feed']['amperage'] == 32 + - test_three['power_feed']['max_utilization'] == 25 + - test_three['power_feed']['comments'] == "totally normal power feed" + - test_three['msg'] == "power_feed Power Feed updated" + +- name: "POWER_FEED 4: Create Power Feed for Delete Test" + netbox.netbox.netbox_power_feed: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Feed 2 + power_panel: Power Panel + state: present + register: test_four + +- name: "POWER_FEED 4: ASSERT - Create Power Feed for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['power_feed']['name'] == "Power Feed 2" + - test_four['power_feed']['power_panel'] == 1 + - test_four['msg'] == "power_feed Power Feed 2 created" + + +- name: "POWER_FEED 5: Delete Power Feed" + netbox.netbox.netbox_power_feed: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Feed 2 + power_panel: Power Panel + state: absent + register: test_five + +- name: "POWER_FEED 5: ASSERT - Delete Power Feed" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "power_feed Power Feed 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_power_outlet.yml b/tests/integration/targets/v2.11/tasks/netbox_power_outlet.yml new file mode 100644 index 000000000..c7b5f7d3d --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_power_outlet.yml @@ -0,0 +1,114 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_POWER_OUTLET +## +## +- name: "POWER_OUTLET 1: Necessary info creation" + netbox.netbox.netbox_power_outlet: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet + device: Device Power Tests + state: present + register: test_one + +- name: "POWER_OUTLET 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['power_outlet']['name'] == "Power Outlet" + - test_one['power_outlet']['device'] == 10 + - test_one['msg'] == "power_outlet Power Outlet created" + +- name: "POWER_OUTLET 2: Create duplicate" + netbox.netbox.netbox_power_outlet: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet + device: Device Power Tests + state: present + register: test_two + +- name: "POWER_OUTLET 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['power_outlet']['name'] == "Power Outlet" + - test_two['power_outlet']['device'] == 10 + - test_two['msg'] == "power_outlet Power Outlet already exists" + +- name: "POWER_OUTLET 3: Update power_outlet with other fields" + netbox.netbox.netbox_power_outlet: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet + device: Device Power Tests + type: ita-e + power_port: Power Port + feed_leg: B + description: test description + state: present + register: test_three + +- name: "POWER_OUTLET 3: ASSERT - Update power_outlet with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "ita-e" + - test_three['diff']['after']['power_port'] == 1 + - test_three['diff']['after']['feed_leg'] == "B" + - test_three['diff']['after']['description'] == "test description" + - test_three['power_outlet']['name'] == "Power Outlet" + - test_three['power_outlet']['device'] == 10 + - test_three['power_outlet']['type'] == "ita-e" + - test_three['power_outlet']['power_port'] == 1 + - test_three['power_outlet']['feed_leg'] == "B" + - test_three['power_outlet']['description'] == "test description" + - test_three['msg'] == "power_outlet Power Outlet updated" + +- name: "POWER_OUTLET 4: Create Power Outlet for Delete Test" + netbox.netbox.netbox_power_outlet: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet 2 + device: Device Power Tests + state: present + register: test_four + +- name: "POWER_OUTLET 4: ASSERT - Create Power Outlet for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['power_outlet']['name'] == "Power Outlet 2" + - test_four['power_outlet']['device'] == 10 + - test_four['msg'] == "power_outlet Power Outlet 2 created" + +- name: "POWER_OUTLET 5: Delete Power Outlet" + netbox.netbox.netbox_power_outlet: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet 2 + device: Device Power Tests + state: absent + register: test_five + +- name: "POWER_OUTLET 5: ASSERT - Delete Power Outlet" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "power_outlet Power Outlet 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_power_outlet_template.yml b/tests/integration/targets/v2.11/tasks/netbox_power_outlet_template.yml new file mode 100644 index 000000000..96f283486 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_power_outlet_template.yml @@ -0,0 +1,111 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_POWER_OUTLET_TEMPLATE +## +## +- name: "POWER_OUTLET_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_power_outlet_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet Template + device_type: Device Type Power Tests + state: present + register: test_one + +- name: "POWER_OUTLET_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['power_outlet_template']['name'] == "Power Outlet Template" + - test_one['power_outlet_template']['device_type'] == 8 + - test_one['msg'] == "power_outlet_template Power Outlet Template created" + +- name: "POWER_OUTLET_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_power_outlet_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet Template + device_type: Device Type Power Tests + state: present + register: test_two + +- name: "POWER_OUTLET_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['power_outlet_template']['name'] == "Power Outlet Template" + - test_two['power_outlet_template']['device_type'] == 8 + - test_two['msg'] == "power_outlet_template Power Outlet Template already exists" + +- name: "POWER_OUTLET_TEMPLATE 3: Update power_outlet_template with other fields" + netbox.netbox.netbox_power_outlet_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet Template + device_type: Device Type Power Tests + type: ita-e + power_port_template: Power Port Template + feed_leg: B + state: present + register: test_three + +- name: "POWER_OUTLET_TEMPLATE 3: ASSERT - Update power_outlet_template with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "ita-e" + - test_three['diff']['after']['power_port'] == 1 + - test_three['diff']['after']['feed_leg'] == "B" + - test_three['power_outlet_template']['name'] == "Power Outlet Template" + - test_three['power_outlet_template']['device_type'] == 8 + - test_three['power_outlet_template']['type'] == "ita-e" + - test_three['power_outlet_template']['power_port'] == 1 + - test_three['power_outlet_template']['feed_leg'] == "B" + - test_three['msg'] == "power_outlet_template Power Outlet Template updated" + +- name: "POWER_OUTLET_TEMPLATE 4: Create Power Outlet Template for Delete Test" + netbox.netbox.netbox_power_outlet_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet Template 2 + device_type: Device Type Power Tests + state: present + register: test_four + +- name: "POWER_OUTLET_TEMPLATE 4: ASSERT - Create Power Outlet Template for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['power_outlet_template']['name'] == "Power Outlet Template 2" + - test_four['power_outlet_template']['device_type'] == 8 + - test_four['msg'] == "power_outlet_template Power Outlet Template 2 created" + +- name: "POWER_OUTLET_TEMPLATE 5: Delete Power Outlet Template" + netbox.netbox.netbox_power_outlet_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Outlet Template 2 + device_type: Device Type Power Tests + state: absent + register: test_five + +- name: "POWER_OUTLET_TEMPLATE 5: ASSERT - Delete Power Outlet Template" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "power_outlet_template Power Outlet Template 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_power_panel.yml b/tests/integration/targets/v2.11/tasks/netbox_power_panel.yml new file mode 100644 index 000000000..082a6b375 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_power_panel.yml @@ -0,0 +1,105 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_POWER_PANEL +## +## +- name: "POWER_PANEL 1: Necessary info creation" + netbox.netbox.netbox_power_panel: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Panel + site: Test Site + state: present + register: test_one + +- name: "POWER_PANEL 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['power_panel']['name'] == "Power Panel" + - test_one['power_panel']['site'] == 1 + - test_one['msg'] == "power_panel Power Panel created" + +- name: "POWER_PANEL 2: Create duplicate" + netbox.netbox.netbox_power_panel: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Panel + site: Test Site + state: present + register: test_two + +- name: "POWER_PANEL 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['power_panel']['name'] == "Power Panel" + - test_two['power_panel']['site'] == 1 + - test_two['msg'] == "power_panel Power Panel already exists" + +- name: "POWER_PANEL 3: Update power_panel with other fields" + netbox.netbox.netbox_power_panel: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Panel + site: Test Site + location: Test Rack Group + state: present + register: test_three + +- name: "POWER_PANEL 3: ASSERT - Update power_panel with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['location'] == 1 + - test_three['power_panel']['name'] == "Power Panel" + - test_three['power_panel']['site'] == 1 + - test_three['power_panel']['location'] == 1 + - test_three['msg'] == "power_panel Power Panel updated" + +- name: "POWER_PANEL 4: Create Power Panel for Delete Test" + netbox.netbox.netbox_power_panel: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Panel 2 + site: Test Site + state: present + register: test_four + +- name: "POWER_PANEL 4: ASSERT - Create Power Panel for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['power_panel']['name'] == "Power Panel 2" + - test_four['power_panel']['site'] == 1 + - test_four['msg'] == "power_panel Power Panel 2 created" + +- name: "POWER_PANEL 5: Delete Power Panel" + netbox.netbox.netbox_power_panel: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Panel 2 + site: Test Site + state: absent + register: test_five + +- name: "POWER_PANEL 5: ASSERT - Delete Power Panel" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "power_panel Power Panel 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_power_port.yml b/tests/integration/targets/v2.11/tasks/netbox_power_port.yml new file mode 100644 index 000000000..b6368bd92 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_power_port.yml @@ -0,0 +1,125 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_POWER_PORT +## +## +- name: "POWER_PORT 0: Create device for testing power ports" + netbox.netbox.netbox_device: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Device Power Tests + device_type: Cisco Test + device_role: Core Switch + site: Test Site + state: present + +- name: "POWER_PORT 1: Necessary info creation" + netbox.netbox.netbox_power_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port + device: Device Power Tests + state: present + register: test_one + +- name: "POWER_PORT 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['power_port']['name'] == "Power Port" + - test_one['power_port']['device'] == 10 + - test_one['msg'] == "power_port Power Port created" + +- name: "POWER_PORT 2: Create duplicate" + netbox.netbox.netbox_power_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port + device: Device Power Tests + state: present + register: test_two + +- name: "POWER_PORT 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['power_port']['name'] == "Power Port" + - test_two['power_port']['device'] == 10 + - test_two['msg'] == "power_port Power Port already exists" + +- name: "POWER_FEED 3: Update power_port with other fields" + netbox.netbox.netbox_power_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port + device: Device Power Tests + type: ita-e + allocated_draw: 10 + maximum_draw: 20 + description: test description + state: present + register: test_three + +- name: "POWER_FEED 3: ASSERT - Update power_port with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "ita-e" + - test_three['diff']['after']['allocated_draw'] == 10 + - test_three['diff']['after']['maximum_draw'] == 20 + - test_three['diff']['after']['description'] == "test description" + - test_three['power_port']['name'] == "Power Port" + - test_three['power_port']['device'] == 10 + - test_three['power_port']['type'] == "ita-e" + - test_three['power_port']['allocated_draw'] == 10 + - test_three['power_port']['maximum_draw'] == 20 + - test_three['power_port']['description'] == "test description" + - test_three['msg'] == "power_port Power Port updated" + +- name: "POWER_PORT 4: Create Power Port for Delete Test" + netbox.netbox.netbox_power_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port 2 + device: Device Power Tests + state: present + register: test_four + +- name: "POWER_PORT 4: ASSERT - Create Power Port for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['power_port']['name'] == "Power Port 2" + - test_four['power_port']['device'] == 10 + - test_four['msg'] == "power_port Power Port 2 created" + +- name: "POWER_PORT 5: Delete Power Port" + netbox.netbox.netbox_power_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port 2 + device: Device Power Tests + state: absent + register: test_five + +- name: "POWER_PORT 5: ASSERT - Delete Power Port" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "power_port Power Port 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_power_port_template.yml b/tests/integration/targets/v2.11/tasks/netbox_power_port_template.yml new file mode 100644 index 000000000..9e7547fd9 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_power_port_template.yml @@ -0,0 +1,120 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_POWER_PORT_TEMPLATE +## +## +- name: "POWER_PORT_TEMPLATE 0: Create device type for testing power ports" + netbox.netbox.netbox_device_type: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + model: Device Type Power Tests + manufacturer: Test Manufacturer + state: present + +- name: "POWER_PORT_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_power_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port Template + device_type: Device Type Power Tests + state: present + register: test_one + +- name: "POWER_PORT_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['power_port_template']['name'] == "Power Port Template" + - test_one['power_port_template']['device_type'] == 8 + - test_one['msg'] == "power_port_template Power Port Template created" + +- name: "POWER_PORT_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_power_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port Template + device_type: Device Type Power Tests + state: present + register: test_two + +- name: "POWER_PORT_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['power_port_template']['name'] == "Power Port Template" + - test_two['power_port_template']['device_type'] == 8 + - test_two['msg'] == "power_port_template Power Port Template already exists" + +- name: "POWER_PORT_TEMPLATE 3: Update power_port_template with other fields" + netbox.netbox.netbox_power_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port Template + device_type: Device Type Power Tests + type: ita-e + allocated_draw: 10 + maximum_draw: 20 + state: present + register: test_three + +- name: "POWER_PORT_TEMPLATE 3: ASSERT - Update power_port_template with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['type'] == "ita-e" + - test_three['diff']['after']['allocated_draw'] == 10 + - test_three['diff']['after']['maximum_draw'] == 20 + - test_three['power_port_template']['name'] == "Power Port Template" + - test_three['power_port_template']['device_type'] == 8 + - test_three['power_port_template']['type'] == "ita-e" + - test_three['power_port_template']['allocated_draw'] == 10 + - test_three['power_port_template']['maximum_draw'] == 20 + - test_three['msg'] == "power_port_template Power Port Template updated" + +- name: "POWER_PORT_TEMPLATE 4: Create Power Port Template for Delete Test" + netbox.netbox.netbox_power_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port Template 2 + device_type: Device Type Power Tests + state: present + register: test_four + +- name: "POWER_PORT_TEMPLATE 4: ASSERT - Create Power Port Template for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['power_port_template']['name'] == "Power Port Template 2" + - test_four['power_port_template']['device_type'] == 8 + - test_four['msg'] == "power_port_template Power Port Template 2 created" + +- name: "POWER_PORT_TEMPLATE 5: Delete Power Port Template" + netbox.netbox.netbox_power_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Power Port Template 2 + device_type: Device Type Power Tests + state: absent + register: test_five + +- name: "POWER_PORT_TEMPLATE 5: ASSERT - Delete Power Port Template" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "power_port_template Power Port Template 2 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_prefix.yml b/tests/integration/targets/v2.11/tasks/netbox_prefix.yml new file mode 100644 index 000000000..7a4655489 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_prefix.yml @@ -0,0 +1,245 @@ +--- +## +## +### NETBOX_PREFIX +## +## +- name: "1 - Create prefix within Netbox with only required information" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 10.156.0.0/19 + state: present + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['msg'] == "prefix 10.156.0.0/19 created" + - test_one['prefix']['prefix'] == "10.156.0.0/19" + +- name: "2 - Duplicate" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 10.156.0.0/19 + state: present + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - not test_two['changed'] + - test_two['msg'] == "prefix 10.156.0.0/19 already exists" + - test_two['prefix']['prefix'] == "10.156.0.0/19" + +- name: "3 - Update 10.156.0.0/19" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 10.156.0.0/19 + site: Test Site + status: Reserved + description: "This prefix has been updated" + state: present + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['after']['site'] == 1 + - test_three['diff']['after']['status'] == "reserved" + - test_three['diff']['after']['description'] == "This prefix has been updated" + - test_three['msg'] == "prefix 10.156.0.0/19 updated" + - test_three['prefix']['prefix'] == "10.156.0.0/19" + - test_three['prefix']['site'] == 1 + - test_three['prefix']['status'] == "reserved" + - test_three['prefix']['description'] == "This prefix has been updated" + +- name: "4 - Delete prefix within netbox" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 10.156.0.0/19 + state: absent + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "prefix 10.156.0.0/19 deleted" + +- name: "5 - Create prefix with several specified options" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + family: 4 + prefix: 10.156.32.0/19 + site: Test Site + vrf: Test VRF + tenant: Test Tenant + vlan: + name: Test VLAN + site: Test Site + tenant: Test Tenant + vlan_group: Test Vlan Group + status: Reserved + prefix_role: Network of care + description: Test description + is_pool: true + tags: + - "Schnozzberry" + state: present + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "absent" + - test_five['diff']['after']['state'] == "present" + - test_five['msg'] == "prefix 10.156.32.0/19 created" + - test_five['prefix']['prefix'] == "10.156.32.0/19" + - test_five['prefix']['family'] == 4 + - test_five['prefix']['site'] == 1 + - test_five['prefix']['vrf'] == 1 + - test_five['prefix']['tenant'] == 1 + - test_five['prefix']['vlan'] == 4 + - test_five['prefix']['status'] == "reserved" + - test_five['prefix']['role'] == 1 + - test_five['prefix']['description'] == "Test description" + - test_five['prefix']['is_pool'] == true + - test_five['prefix']['tags'][0] == 4 + +- name: "6 - Get a new /24 inside 10.156.0.0/19 within Netbox - Parent doesn't exist" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + parent: 10.156.0.0/19 + prefix_length: 24 + state: present + first_available: yes + register: test_six + +- name: "6 - ASSERT" + assert: + that: + - not test_six['changed'] + - test_six['msg'] == "Parent prefix does not exist - 10.156.0.0/19" + +- name: "7 - Create prefix within Netbox with only required information" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 10.156.0.0/19 + state: present + register: test_seven + +- name: "7 - ASSERT" + assert: + that: + - test_seven is changed + - test_seven['diff']['before']['state'] == "absent" + - test_seven['diff']['after']['state'] == "present" + - test_seven['msg'] == "prefix 10.156.0.0/19 created" + - test_seven['prefix']['prefix'] == "10.156.0.0/19" + +- name: "8 - Get a new /24 inside 10.156.0.0/19 within Netbox" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + parent: 10.156.0.0/19 + prefix_length: 24 + state: present + first_available: yes + register: test_eight + +- name: "8 - ASSERT" + assert: + that: + - test_eight is changed + - test_eight['diff']['before']['state'] == "absent" + - test_eight['diff']['after']['state'] == "present" + - test_eight['msg'] == "prefix 10.156.0.0/24 created" + - test_eight['prefix']['prefix'] == "10.156.0.0/24" + +- name: "9 - Create 10.157.0.0/19" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + prefix: 10.157.0.0/19 + vrf: Test VRF + site: Test Site + state: present + register: test_nine + +- name: "9 - ASSERT" + assert: + that: + - test_nine is changed + - test_nine['diff']['before']['state'] == "absent" + - test_nine['diff']['after']['state'] == "present" + - test_nine['msg'] == "prefix 10.157.0.0/19 created" + - test_nine['prefix']['prefix'] == "10.157.0.0/19" + - test_nine['prefix']['site'] == 1 + - test_nine['prefix']['vrf'] == 1 + +- name: "10 - Get a new /24 inside 10.157.0.0/19 within Netbox with additional values" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + parent: 10.157.0.0/19 + prefix_length: 24 + vrf: Test VRF + site: Test Site + state: present + first_available: yes + register: test_ten + +- name: "10 - ASSERT" + assert: + that: + - test_ten is changed + - test_ten['diff']['before']['state'] == "absent" + - test_ten['diff']['after']['state'] == "present" + - test_ten['msg'] == "prefix 10.157.0.0/24 created" + - test_ten['prefix']['prefix'] == "10.157.0.0/24" + - test_ten['prefix']['site'] == 1 + - test_ten['prefix']['vrf'] == 1 + +- name: "11 - Get a new /24 inside 10.156.0.0/19 within Netbox" + netbox.netbox.netbox_prefix: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + parent: 10.156.0.0/19 + prefix_length: 24 + state: present + first_available: yes + register: test_eleven + +- name: "11 - ASSERT" + assert: + that: + - test_eleven is changed + - test_eleven['diff']['before']['state'] == "absent" + - test_eleven['diff']['after']['state'] == "present" + - test_eleven['msg'] == "prefix 10.156.1.0/24 created" + - test_eleven['prefix']['prefix'] == "10.156.1.0/24" diff --git a/tests/integration/targets/v2.11/tasks/netbox_provider.yml b/tests/integration/targets/v2.11/tasks/netbox_provider.yml new file mode 100644 index 000000000..782df16f8 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_provider.yml @@ -0,0 +1,99 @@ +--- +## +## +### NETBOX_PROVIDER +## +## +- name: "NETBOX_PROVIDER 1: Create provider within Netbox with only required information" + netbox.netbox.netbox_provider: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Provider One + state: present + register: test_one + +- name: "NETBOX_PROVIDER 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['provider']['name'] == "Test Provider One" + - test_one['provider']['slug'] == "test-provider-one" + - test_one['msg'] == "provider Test Provider One created" + +- name: "NETBOX_PROVIDER 2: Duplicate" + netbox.netbox.netbox_provider: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Provider One + state: present + register: test_two + +- name: "NETBOX_PROVIDER 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['provider']['name'] == "Test Provider One" + - test_two['provider']['slug'] == "test-provider-one" + - test_two['msg'] == "provider Test Provider One already exists" + +- name: "NETBOX_PROVIDER 3: Update provider with other fields" + netbox.netbox.netbox_provider: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Provider One + asn: 65001 + account: "200129104" + portal_url: http://provider.net + noc_contact: noc@provider.net + admin_contact: admin@provider.net + comments: "BAD PROVIDER" + state: present + register: test_three + +- name: "NETBOX_PROVIDER 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['asn'] == 65001 + - test_three['diff']['after']['account'] == "200129104" + - test_three['diff']['after']['portal_url'] == "http://provider.net" + - test_three['diff']['after']['noc_contact'] == "noc@provider.net" + - test_three['diff']['after']['admin_contact'] == "admin@provider.net" + - test_three['diff']['after']['comments'] == "BAD PROVIDER" + - test_three['provider']['name'] == "Test Provider One" + - test_three['provider']['slug'] == "test-provider-one" + - test_three['provider']['asn'] == 65001 + - test_three['provider']['account'] == "200129104" + - test_three['provider']['portal_url'] == "http://provider.net" + - test_three['provider']['noc_contact'] == "noc@provider.net" + - test_three['provider']['admin_contact'] == "admin@provider.net" + - test_three['provider']['comments'] == "BAD PROVIDER" + - test_three['msg'] == "provider Test Provider One updated" + +- name: "NETBOX_PROVIDER 4: Delete provider within netbox" + netbox.netbox.netbox_provider: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test Provider One + state: absent + register: test_four + +- name: "NETBOX_PROVIDER 4 : ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['provider']['name'] == "Test Provider One" + - test_four['provider']['slug'] == "test-provider-one" + - test_four['provider']['asn'] == 65001 + - test_four['provider']['account'] == "200129104" + - test_four['provider']['portal_url'] == "http://provider.net" + - test_four['provider']['noc_contact'] == "noc@provider.net" + - test_four['provider']['admin_contact'] == "admin@provider.net" + - test_four['provider']['comments'] == "BAD PROVIDER" + - test_four['msg'] == "provider Test Provider One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_rack.yml b/tests/integration/targets/v2.11/tasks/netbox_rack.yml new file mode 100644 index 000000000..451b519b2 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_rack.yml @@ -0,0 +1,225 @@ +--- +## +## +### NETBOX_RACK +## +## +- name: "1 - Test rack creation" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test rack one" + site: "Test Site" + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['rack']['name'] == "Test rack one" + - test_one['rack']['site'] == 1 + +- name: "Test duplicate rack" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test rack one" + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - not test_two['changed'] + - test_two['rack']['name'] == "Test rack one" + - test_two['rack']['site'] == 1 + - test_two['msg'] == "rack Test rack one already exists" + +- name: "3 - Create new rack with similar name" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test rack - Test Site + site: Test Site + state: present + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['rack']['name'] == "Test rack - Test Site" + - test_three['rack']['site'] == 1 + - test_three['msg'] == "rack Test rack - Test Site created" + +- name: "4 - Attempt to create Test rack one again" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test rack one + site: Test Site + state: present + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - not test_four['changed'] + - test_four['rack']['name'] == "Test rack one" + - test_four['rack']['site'] == 1 + - test_four['msg'] == "rack Test rack one already exists" + +- name: "5 - Update Test rack one with more options" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test rack one + site: Test Site + rack_role: "Test Rack Role" + location: "Test Rack Group" + facility_id: "EQUI10291" + tenant: "Test Tenant" + status: Available + serial: "FXS10001" + asset_tag: "1234" + width: 23 + u_height: 48 + type: "2-post frame" + outer_width: 32 + outer_depth: 24 + outer_unit: "Inches" + comments: "Just testing rack module" + tags: + - "Schnozzberry" + state: present + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['after']['asset_tag'] == "1234" + - test_five['diff']['after']['comments'] == "Just testing rack module" + - test_five['diff']['after']['facility_id'] == "EQUI10291" + - test_five['diff']['after']['location'] == 1 + - test_five['diff']['after']['outer_depth'] == 24 + - test_five['diff']['after']['outer_unit'] == "in" + - test_five['diff']['after']['outer_width'] == 32 + - test_five['diff']['after']['role'] == 1 + - test_five['diff']['after']['serial'] == "FXS10001" + - test_five['diff']['after']['status'] == "available" + - test_five['diff']['after']['tenant'] == 1 + - test_five['diff']['after']['tags'][0] == 4 + - test_five['diff']['after']['type'] == "2-post-frame" + - test_five['diff']['after']['u_height'] == 48 + - test_five['diff']['after']['width'] == 23 + - test_five['rack']['name'] == "Test rack one" + - test_five['rack']['site'] == 1 + - test_five['rack']['asset_tag'] == "1234" + - test_five['rack']['comments'] == "Just testing rack module" + - test_five['rack']['facility_id'] == "EQUI10291" + - test_five['rack']['location'] == 1 + - test_five['rack']['outer_depth'] == 24 + - test_five['rack']['outer_unit'] == "in" + - test_five['rack']['outer_width'] == 32 + - test_five['rack']['role'] == 1 + - test_five['rack']['serial'] == "FXS10001" + - test_five['rack']['status'] == "available" + - test_five['rack']['tenant'] == 1 + - test_five['rack']['tags'][0] == 4 + - test_five['rack']['type'] == "2-post-frame" + - test_five['rack']['u_height'] == 48 + - test_five['rack']['width'] == 23 + - test_five['msg'] == "rack Test rack one updated" + +- name: "6 - Update Test rack one with same options" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test rack one + site: Test Site + rack_role: "Test Rack Role" + location: "Test Rack Group" + facility_id: "EQUI10291" + tenant: "Test Tenant" + status: Available + serial: "FXS10001" + asset_tag: "1234" + width: 23 + u_height: 48 + type: "2-post frame" + outer_width: 32 + outer_depth: 24 + outer_unit: "Inches" + comments: "Just testing rack module" + tags: + - "Schnozzberry" + state: present + register: test_six + +- name: "6 - ASSERT" + assert: + that: + - test_six is not changed + - test_six['rack']['name'] == "Test rack one" + - test_six['rack']['site'] == 1 + - test_six['rack']['asset_tag'] == "1234" + - test_six['rack']['comments'] == "Just testing rack module" + - test_six['rack']['facility_id'] == "EQUI10291" + - test_six['rack']['location'] == 1 + - test_six['rack']['outer_depth'] == 24 + - test_six['rack']['outer_unit'] == "in" + - test_six['rack']['outer_width'] == 32 + - test_six['rack']['role'] == 1 + - test_six['rack']['serial'] == "FXS10001" + - test_six['rack']['status'] == "available" + - test_six['rack']['tenant'] == 1 + - test_six['rack']['tags'][0] == 4 + - test_six['rack']['type'] == "2-post-frame" + - test_six['rack']['u_height'] == 48 + - test_six['rack']['width'] == 23 + +- name: "7 - Create rack with same asset tag and serial number" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test rack two + site: Test Site + serial: "FXS10001" + asset_tag: "1234" + state: present + ignore_errors: yes + register: test_seven + +- name: "7 - ASSERT" + assert: + that: + - test_seven is failed + - "'Asset tag already exists' in test_seven['msg']" + +- name: "8 - Test delete" + netbox.netbox.netbox_rack: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test rack one" + state: "absent" + register: test_eight + +- name: "8 - ASSERT" + assert: + that: + - test_eight is changed + - test_eight['diff']['before']['state'] == "present" + - test_eight['diff']['after']['state'] == "absent" + - test_eight['msg'] == "rack Test rack one deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_rack_group.yml b/tests/integration/targets/v2.11/tasks/netbox_rack_group.yml new file mode 100644 index 000000000..6a10cbf94 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_rack_group.yml @@ -0,0 +1,62 @@ +--- +## +## +### NETBOX_RACK_GROUP +## +## +- name: "RACK_GROUP 1: Necessary info creation" + netbox.netbox.netbox_rack_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Group + site: Test Site + state: present + register: test_one + +- name: "RACK_GROUP 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['rack_group']['name'] == "Rack Group" + - test_one['rack_group']['slug'] == "rack-group" + - test_one['rack_group']['site'] == 1 + - test_one['msg'] == "rack_group Rack Group created" + +- name: "RACK_GROUP 2: Create duplicate" + netbox.netbox.netbox_rack_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Group + site: Test Site + state: present + register: test_two + +- name: "RACK_GROUP 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['rack_group']['name'] == "Rack Group" + - test_two['rack_group']['slug'] == "rack-group" + - test_two['rack_group']['site'] == 1 + - test_two['msg'] == "rack_group Rack Group already exists" + +- name: "RACK_GROUP 3: ASSERT - Delete" + netbox.netbox.netbox_rack_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Group + state: absent + register: test_three + +- name: "RACK_GROUP 3: ASSERT - Update" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "present" + - test_three['diff']['after']['state'] == "absent" + - test_three['msg'] == "rack_group Rack Group deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_rack_role.yml b/tests/integration/targets/v2.11/tasks/netbox_rack_role.yml new file mode 100644 index 000000000..5ca9e44eb --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_rack_role.yml @@ -0,0 +1,81 @@ +--- +## +## +### NETBOX_RACK_ROLE +## +## +- name: "RACK_ROLE 1: Necessary info creation" + netbox.netbox.netbox_rack_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Role + color: "ffffff" + state: present + register: test_one + +- name: "RACK_ROLE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['rack_role']['name'] == "Rack Role" + - test_one['rack_role']['slug'] == "rack-role" + - test_one['rack_role']['color'] == "ffffff" + - test_one['msg'] == "rack_role Rack Role created" + +- name: "RACK_ROLE 2: Create duplicate" + netbox.netbox.netbox_rack_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Role + state: present + register: test_two + +- name: "RACK_ROLE 1: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['rack_role']['name'] == "Rack Role" + - test_two['rack_role']['slug'] == "rack-role" + - test_two['rack_role']['color'] == "ffffff" + - test_two['msg'] == "rack_role Rack Role already exists" + +- name: "RACK_ROLE 3: Update" + netbox.netbox.netbox_rack_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Role + color: "003EFF" + state: present + register: test_three + +- name: "RACK_ROLE 3: ASSERT - Update" + assert: + that: + - test_three is changed + - test_three['diff']['after']['color'] == "003eff" + - test_three['rack_role']['name'] == "Rack Role" + - test_three['rack_role']['slug'] == "rack-role" + - test_three['rack_role']['color'] == "003eff" + - test_three['msg'] == "rack_role Rack Role updated" + +- name: "RACK_ROLE 4: Delete" + netbox.netbox.netbox_rack_role: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rack Role + state: absent + register: test_four + +- name: "RACK_ROLE 4: ASSERT - Update" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "rack_role Rack Role deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_rear_port.yml b/tests/integration/targets/v2.11/tasks/netbox_rear_port.yml new file mode 100644 index 000000000..10eb23098 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_rear_port.yml @@ -0,0 +1,139 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_REAR_PORT +## +## +- name: "REAR_PORT 1: Necessary info creation" + netbox.netbox.netbox_rear_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port + device: test100 + type: bnc + state: present + register: test_one + +- name: "REAR_PORT 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['rear_port']['name'] == "Rear Port" + - test_one['rear_port']['device'] == 1 + - test_one['rear_port']['type'] == "bnc" + - test_one['msg'] == "rear_port Rear Port created" + +- name: "REAR_PORT 2: Create duplicate" + netbox.netbox.netbox_rear_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port + device: test100 + type: bnc + state: present + register: test_two + +- name: "REAR_PORT 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['rear_port']['name'] == "Rear Port" + - test_two['rear_port']['device'] == 1 + - test_two['rear_port']['type'] == "bnc" + - test_two['msg'] == "rear_port Rear Port already exists" + +- name: "REAR_PORT 3: Update Rear Port with other fields" + netbox.netbox.netbox_rear_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port + device: test100 + type: bnc + positions: 5 + description: test description + state: present + register: test_three + +- name: "REAR_PORT 3: ASSERT - Update Rear Port with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['positions'] == 5 + - test_three['diff']['after']['description'] == "test description" + - test_three['rear_port']['name'] == "Rear Port" + - test_three['rear_port']['device'] == 1 + - test_three['rear_port']['type'] == "bnc" + - test_three['rear_port']['positions'] == 5 + - test_three['rear_port']['description'] == "test description" + - test_three['msg'] == "rear_port Rear Port updated" + +- name: "REAR_PORT 4: Create Rear Port for Delete Test" + netbox.netbox.netbox_rear_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port 2 + device: test100 + type: bnc + state: present + register: test_four + +- name: "REAR_PORT 4: ASSERT - Create Rear Port for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['rear_port']['name'] == "Rear Port 2" + - test_four['rear_port']['device'] == 1 + - test_four['rear_port']['type'] == "bnc" + - test_four['msg'] == "rear_port Rear Port 2 created" + +- name: "REAR_PORT 5: Delete Rear Port" + netbox.netbox.netbox_rear_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port 2 + device: test100 + type: bnc + state: absent + register: test_five + +- name: "REAR_PORT 5: ASSERT - Delete Rear Port" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "rear_port Rear Port 2 deleted" + +- name: "REAR_PORT 6: Create second Rear Port" + netbox.netbox.netbox_rear_port: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port + device: Test Nexus One + type: bnc + state: present + register: test_six + +- name: "REAR_PORT 6: ASSERT - Create second Rear Port" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "absent" + - test_six['diff']['after']['state'] == "present" + - test_six['rear_port']['name'] == "Rear Port" + - test_six['rear_port']['device'] == 4 + - test_six['rear_port']['type'] == "bnc" + - test_six['msg'] == "rear_port Rear Port created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_rear_port_template.yml b/tests/integration/targets/v2.11/tasks/netbox_rear_port_template.yml new file mode 100644 index 000000000..ca867619a --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_rear_port_template.yml @@ -0,0 +1,136 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_REAR_PORT_TEMPLATE +## +## +- name: "REAR_PORT_TEMPLATE 1: Necessary info creation" + netbox.netbox.netbox_rear_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port Template + device_type: Cisco Test + type: bnc + state: present + register: test_one + +- name: "REAR_PORT_TEMPLATE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['rear_port_template']['name'] == "Rear Port Template" + - test_one['rear_port_template']['device_type'] == 1 + - test_one['rear_port_template']['type'] == "bnc" + - test_one['msg'] == "rear_port_template Rear Port Template created" + +- name: "REAR_PORT_TEMPLATE 2: Create duplicate" + netbox.netbox.netbox_rear_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port Template + device_type: Cisco Test + type: bnc + state: present + register: test_two + +- name: "REAR_PORT_TEMPLATE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['rear_port_template']['name'] == "Rear Port Template" + - test_two['rear_port_template']['device_type'] == 1 + - test_two['rear_port_template']['type'] == "bnc" + - test_two['msg'] == "rear_port_template Rear Port Template already exists" + +- name: "REAR_PORT_TEMPLATE 3: Update Rear Port Template with other fields" + netbox.netbox.netbox_rear_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port Template + device_type: Cisco Test + type: bnc + positions: 5 + state: present + register: test_three + +- name: "REAR_PORT_TEMPLATE 3: ASSERT - Update Rear Port Template with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['positions'] == 5 + - test_three['rear_port_template']['name'] == "Rear Port Template" + - test_three['rear_port_template']['device_type'] == 1 + - test_three['rear_port_template']['type'] == "bnc" + - test_three['rear_port_template']['positions'] == 5 + - test_three['msg'] == "rear_port_template Rear Port Template updated" + +- name: "REAR_PORT_TEMPLATE 4: Create Rear Port Template for Delete Test" + netbox.netbox.netbox_rear_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port Template 2 + device_type: Cisco Test + type: bnc + state: present + register: test_four + +- name: "REAR_PORT_TEMPLATE 4: ASSERT - Create Rear Port Template for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['rear_port_template']['name'] == "Rear Port Template 2" + - test_four['rear_port_template']['device_type'] == 1 + - test_four['rear_port_template']['type'] == "bnc" + - test_four['msg'] == "rear_port_template Rear Port Template 2 created" + +- name: "REAR_PORT_TEMPLATE 5: Delete Rear Port Template" + netbox.netbox.netbox_rear_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port Template 2 + device_type: Cisco Test + type: bnc + state: absent + register: test_five + +- name: "REAR_PORT_TEMPLATE 5: ASSERT - Delete Rear Port Template" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "rear_port_template Rear Port Template 2 deleted" + +- name: "REAR_PORT_TEMPLATE 6: Create second Rear Port Template" + netbox.netbox.netbox_rear_port_template: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Rear Port Template 2 + device_type: Arista Test + type: bnc + state: present + register: test_six + +- name: "REAR_PORT_TEMPLATE 6: ASSERT - Create second Rear Port Template" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "absent" + - test_six['diff']['after']['state'] == "present" + - test_six['rear_port_template']['name'] == "Rear Port Template 2" + - test_six['rear_port_template']['device_type'] == 2 + - test_six['rear_port_template']['type'] == "bnc" + - test_six['msg'] == "rear_port_template Rear Port Template 2 created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_region.yml b/tests/integration/targets/v2.11/tasks/netbox_region.yml new file mode 100644 index 000000000..1359598af --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_region.yml @@ -0,0 +1,79 @@ +--- +## +## +### NETBOX_REGION +## +## +- name: "REGION 1: Necessary info creation" + netbox.netbox.netbox_region: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Region One" + state: present + register: test_one + +- name: "REGION 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['region']['name'] == "Test Region One" + - test_one['region']['slug'] == "test-region-one" + - test_one['msg'] == "region Test Region One created" + +- name: "REGION 2: Create duplicate" + netbox.netbox.netbox_region: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Region One" + state: present + register: test_two + +- name: "REGION 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['region']['name'] == "Test Region One" + - test_two['region']['slug'] == "test-region-one" + - test_two['msg'] == "region Test Region One already exists" + +- name: "REGION 3: ASSERT - Update" + netbox.netbox.netbox_region: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Region One" + parent_region: "Test Region" + state: present + register: test_three + +- name: "REGION 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['parent'] == 1 + - test_three['region']['name'] == "Test Region One" + - test_three['region']['slug'] == "test-region-one" + - test_three['region']['parent'] == 1 + - test_three['msg'] == "region Test Region One updated" + +- name: "REGION 4: ASSERT - Delete" + netbox.netbox.netbox_region: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Region One" + state: absent + register: test_four + +- name: "REGION 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['region']['name'] == "Test Region One" + - test_four['region']['slug'] == "test-region-one" + - test_four['region']['parent'] == 1 + - test_four['msg'] == "region Test Region One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_rir.yml b/tests/integration/targets/v2.11/tasks/netbox_rir.yml new file mode 100644 index 000000000..cc4935938 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_rir.yml @@ -0,0 +1,79 @@ +--- +## +## +### NETBOX_RIR +## +## +- name: "RIR 1: Necessary info creation" + netbox.netbox.netbox_rir: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test RIR One + state: present + register: test_one + +- name: "RIR 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['rir']['name'] == "Test RIR One" + - test_one['rir']['slug'] == "test-rir-one" + - test_one['msg'] == "rir Test RIR One created" + +- name: "RIR 2: Create duplicate" + netbox.netbox.netbox_rir: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test RIR One + state: present + register: test_two + +- name: "RIR 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['rir']['name'] == "Test RIR One" + - test_two['rir']['slug'] == "test-rir-one" + - test_two['msg'] == "rir Test RIR One already exists" + +- name: "RIR 3: ASSERT - Update" + netbox.netbox.netbox_rir: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test RIR One" + is_private: true + state: present + register: test_three + +- name: "RIR 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['is_private'] == true + - test_three['rir']['name'] == "Test RIR One" + - test_three['rir']['slug'] == "test-rir-one" + - test_three['rir']['is_private'] == true + - test_three['msg'] == "rir Test RIR One updated" + +- name: "RIR 4: ASSERT - Delete" + netbox.netbox.netbox_rir: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test RIR One" + state: absent + register: test_four + +- name: "RIR 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['rir']['name'] == "Test RIR One" + - test_four['rir']['slug'] == "test-rir-one" + - test_four['rir']['is_private'] == true + - test_four['msg'] == "rir Test RIR One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_route_target.yml b/tests/integration/targets/v2.11/tasks/netbox_route_target.yml new file mode 100644 index 000000000..354978dc2 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_route_target.yml @@ -0,0 +1,204 @@ +--- +# +# ADD (CHECK MODE) +- name: "NETBOX_ROUTE_TARGET_ADD: Check Mode - Add all fields except description" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + tenant: "Test Tenant" + tags: + - first + - second + check_mode: yes + register: test_results + +- name: "NETBOX_ROUTE_TARGET_ADD: (ASSERT) Check Mode - Add all fields except description" + assert: + that: + - test_results is changed + - test_results['route_target']['name'] == "65000:65001" + - test_results['route_target']['tenant'] == 1 + - test_results['route_target']['tags'] | length == 2 + - test_results['diff']['after']['state'] == "present" + - test_results['diff']['before']['state'] == "absent" + - test_results['msg'] == "route_target 65000:65001 created" + +# ADD +- name: "NETBOX_ROUTE_TARGET_ADD: Add all fields except description" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + tenant: "Test Tenant" + tags: + - first + - second + register: test_results + +- name: "NETBOX_ROUTE_TARGET_ADD: (ASSERT) Add all fields except description" + assert: + that: + - test_results is changed + - test_results['route_target']['name'] == "65000:65001" + - test_results['route_target']['tenant'] == 1 + - test_results['route_target']['tags'] | length == 2 + - test_results['diff']['after']['state'] == "present" + - test_results['diff']['before']['state'] == "absent" + - test_results['msg'] == "route_target 65000:65001 created" + +# ADD (IDEMPOTENT) +- name: "NETBOX_ROUTE_TARGET_ADD_IDEM: (IDEMPOTENT) Add all fields except description" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + tenant: "Test Tenant" + tags: + - first + - second + register: test_results + +- name: "NETBOX_ROUTE_TARGET_ADD_IDEM: (IDEMPOTENT) Add all fields except description" + assert: + that: + - test_results is not changed + - test_results['route_target']['name'] == "65000:65001" + - test_results['route_target']['tenant'] == 1 + - test_results['route_target']['tags'] | length == 2 + - test_results['msg'] == "route_target 65000:65001 already exists" + +# +# UPDATE (CHECK MODE) +- name: "NETBOX_ROUTE_TARGET_UPDATE: Check Mode - Update description" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + description: "NEW DESCRIPTION" + tenant: "Test Tenant" + tags: + - first + - second + check_mode: yes + register: test_results + +- name: "NETBOX_ROUTE_TARGET_UPDATE: (ASSERT) Check Mode - Update description" + assert: + that: + - test_results is changed + - test_results['route_target']['name'] == "65000:65001" + - test_results['route_target']['tenant'] == 1 + - test_results['route_target']['tags'] | length == 2 + - test_results['route_target']['description'] == "NEW DESCRIPTION" + - test_results['diff']['after']['description'] == "NEW DESCRIPTION" + - test_results['diff']['before']['description'] == "" + - test_results['msg'] == "route_target 65000:65001 updated" + +# UPDATE +- name: "NETBOX_ROUTE_TARGET_UPDATE: Update description" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + tenant: "Test Tenant" + description: "NEW DESCRIPTION" + tags: + - first + - second + register: test_results + +- name: "NETBOX_ROUTE_TARGET_UPDATE: (ASSERT) Update description" + assert: + that: + - test_results is changed + - test_results['route_target']['name'] == "65000:65001" + - test_results['route_target']['tenant'] == 1 + - test_results['route_target']['tags'] | length == 2 + - test_results['route_target']['description'] == "NEW DESCRIPTION" + - test_results['diff']['after']['description'] == "NEW DESCRIPTION" + - test_results['diff']['before']['description'] == "" + - test_results['msg'] == "route_target 65000:65001 updated" + +# UPDATE (IDEMPOTENT) +- name: "NETBOX_ROUTE_TARGET_UPDATE_IDEM: (IDEMPOTENT) Update description" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + tenant: "Test Tenant" + description: "NEW DESCRIPTION" + tags: + - first + - second + register: test_results + +- name: "NETBOX_ROUTE_TARGET_UPDATE_IDEM: (IDEMPOTENT) Update description" + assert: + that: + - test_results is not changed + - test_results['route_target']['name'] == "65000:65001" + - test_results['route_target']['tenant'] == 1 + - test_results['route_target']['tags'] | length == 2 + - test_results['route_target']['description'] == "NEW DESCRIPTION" + - test_results['msg'] == "route_target 65000:65001 already exists" + +# +# DELETE (CHECK MODE) +- name: "NETBOX_ROUTE_TARGET_DELETE: Check Mode - Delete route target" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + state: absent + check_mode: yes + register: test_results + +- name: "NETBOX_ROUTE_TARGET_DELETE: (ASSERT) Check Mode - Delete route target" + assert: + that: + - test_results is changed + - test_results['diff']['after']['state'] == "absent" + - test_results['diff']['before']['state'] == "present" + - test_results['msg'] == "route_target 65000:65001 deleted" + +# DELETE +- name: "NETBOX_ROUTE_TARGET_DELETE: Delete route target" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + state: absent + register: test_results + +- name: "NETBOX_ROUTE_TARGET_DELETE: (ASSERT) Delete route target" + assert: + that: + - test_results is changed + - test_results['diff']['after']['state'] == "absent" + - test_results['diff']['before']['state'] == "present" + - test_results['msg'] == "route_target 65000:65001 deleted" + +# DELETE (IDEMPOTENT) +- name: "NETBOX_ROUTE_TARGET_DELETE_IDEM: (IDEMPOTENT) Delete route target" + netbox.netbox.netbox_route_target: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "65000:65001" + state: absent + register: test_results + +- name: "NETBOX_ROUTE_TARGET_DELETE_IDEM: (IDEMPOTENT) Delete route target" + assert: + that: + - test_results is not changed + - test_results['msg'] == "route_target 65000:65001 already absent" diff --git a/tests/integration/targets/v2.11/tasks/netbox_service.yml b/tests/integration/targets/v2.11/tasks/netbox_service.yml new file mode 100644 index 000000000..09a993c3d --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_service.yml @@ -0,0 +1,196 @@ +--- +## +## +### NETBOX_SERVICE +## +## +- name: "1 - Device with required information needs to add new service" + netbox.netbox.netbox_device: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "FOR_SERVICE" + device_type: "Cisco Test" + device_role: "Core Switch" + site: "Test Site" + status: "Staged" + state: present + +- name: "NETBOX_SERVICE: Create new service" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "FOR_SERVICE" + name: "node-exporter" + port: 9100 + protocol: TCP + state: present + register: test_service_create + +- name: "NETBOX_SERVICE ASSERT - Create" + assert: + that: + - test_service_create is changed + - test_service_create['services']['name'] == "node-exporter" + - test_service_create['services']['ports'] == [9100] + - test_service_create['services']['protocol'] == "tcp" + - test_service_create['diff']['after']['state'] == "present" + - test_service_create['diff']['before']['state'] == "absent" + - test_service_create['msg'] == "services node-exporter created" + +- name: "NETBOX_SERVICE: Test idempotence" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "FOR_SERVICE" + name: "node-exporter" + port: 9100 + protocol: TCP + state: present + register: test_service_idempotence + +- name: "NETBOX_SERVICE ASSERT - Not changed" + assert: + that: + - test_service_idempotence['services']['name'] == "node-exporter" + - test_service_idempotence['services']['ports'] == [9100] + - test_service_idempotence['services']['protocol'] == "tcp" + - test_service_idempotence['msg'] == "services node-exporter already exists" + +- name: "NETBOX_SERVICE: Test update" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "FOR_SERVICE" + name: "node-exporter" + ports: + - 9100 + - 9200 + protocol: TCP + tags: + - "Schnozzberry" + state: present + register: test_service_update + +- name: "NETBOX_SERVICE ASSERT - Service has been updated" + assert: + that: + - test_service_update is changed + - test_service_update['diff']['after']['tags'][0] == 4 + - test_service_update['diff']['after']['ports'] == [9100, 9200] + - test_service_update['msg'] == "services node-exporter updated" + +- name: "NETBOX_SERVICE: Test same details, but different protocol - Create" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "FOR_SERVICE" + name: "node-exporter" + port: 9100 + protocol: UDP + state: present + register: test_service_protocol + +- name: "NETBOX_SERVICE ASSERT - Different protocol - Create" + assert: + that: + - test_service_protocol is changed + - test_service_protocol['diff']['after']['state'] == "present" + - test_service_protocol['diff']['before']['state'] == "absent" + - test_service_protocol['services']['name'] == "node-exporter" + - test_service_protocol['services']['ports'] == [9100] + - test_service_protocol['services']['protocol'] == "udp" + - test_service_protocol['msg'] == "services node-exporter created" + +- name: "NETBOX_SERVICE: Test service deletion" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "FOR_SERVICE" + name: "node-exporter" + port: 9100 + protocol: UDP + state: absent + register: test_service_delete + +- name: "NETBOX_SERVICE ASSERT - Service has been deleted" + assert: + that: + - test_service_delete is changed + - test_service_delete['diff']['after']['state'] == "absent" + - test_service_delete['diff']['before']['state'] == "present" + - test_service_delete['msg'] == "services node-exporter deleted" + +- name: "NETBOX_SERVICE: Test service IP addresses" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + device: "test100" + name: "node-exporter" + port: 9100 + protocol: UDP + ipaddresses: + - address: "172.16.180.1/24" + state: present + register: test_service_ip_addresses + +- name: "NETBOX_SERVICE ASSERT - Service has been created with IP address" + assert: + that: + - test_service_ip_addresses is changed + - test_service_ip_addresses['diff']['after']['state'] == "present" + - test_service_ip_addresses['diff']['before']['state'] == "absent" + - test_service_ip_addresses['services']['name'] == "node-exporter" + - test_service_ip_addresses['services']['ports'] == [9100] + - test_service_ip_addresses['services']['protocol'] == "udp" + - test_service_ip_addresses['services']['ipaddresses'] is defined + - test_service_ip_addresses['msg'] == "services node-exporter created" + +- name: "NETBOX_SERVICE: Missing both device & virtual_machine options - Tests required_one_of" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + name: "node-exporter" + port: 9100 + protocol: UDP + ipaddresses: + - address: "172.16.180.1/24" + state: present + ignore_errors: yes + register: test_service_required_one_of + +- name: "NETBOX_SERVICE ASSERT - Failed due to missing arguments" + assert: + that: + - test_service_required_one_of is failed + - 'test_service_required_one_of["msg"] == "one of the following is required: device, virtual_machine"' + +- name: "NETBOX_SERVICE: Create new service on virtual_machine" + netbox.netbox.netbox_service: + netbox_url: "http://localhost:32768" + netbox_token: "0123456789abcdef0123456789abcdef01234567" + data: + virtual_machine: "test100-vm" + name: "node-exporter" + port: 9100 + protocol: TCP + state: present + register: test_service_create_vm + +- name: "NETBOX_SERVICE ASSERT - Create" + assert: + that: + - test_service_create_vm is changed + - test_service_create_vm['services']['name'] == "node-exporter" + - test_service_create_vm['services']['ports'] == [9100] + - test_service_create_vm['services']['protocol'] == "tcp" + - test_service_create_vm['diff']['after']['state'] == "present" + - test_service_create_vm['diff']['before']['state'] == "absent" + - test_service_create_vm['msg'] == "services node-exporter created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_site.yml b/tests/integration/targets/v2.11/tasks/netbox_site.yml new file mode 100644 index 000000000..cb794930b --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_site.yml @@ -0,0 +1,180 @@ +--- +## +## +### NETBOX_SITE +## +## +- name: "1 - Create site within Netbox with only required information" + netbox.netbox.netbox_site: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test - Colorado + state: present + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['site']['name'] == "Test - Colorado" + - test_one['msg'] == "site Test - Colorado created" + +- name: "2 - Duplicate" + netbox.netbox.netbox_site: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test - Colorado + state: present + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - not test_two['changed'] + - test_two['msg'] == "site Test - Colorado already exists" + - test_two['site']['name'] == "Test - Colorado" + +- name: "3 - Update Test - Colorado" + netbox.netbox.netbox_site: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test - Colorado + status: Planned + region: Test Region + contact_name: Mikhail + state: present + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['after']['status'] == "planned" + - test_three['diff']['after']['contact_name'] == "Mikhail" + - test_three['diff']['after']['region'] == 1 + - test_three['msg'] == "site Test - Colorado updated" + - test_three['site']['name'] == "Test - Colorado" + - test_three['site']['status'] == "planned" + - test_three['site']['contact_name'] == "Mikhail" + - test_three['site']['region'] == 1 + +- name: "4 - Create site with all parameters" + netbox.netbox.netbox_site: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test - California + status: Planned + region: Test Region + tenant: Test Tenant + facility: EquinoxCA7 + asn: 65001 + time_zone: America/Los Angeles + description: This is a test description + physical_address: Hollywood, CA, 90210 + shipping_address: Hollywood, CA, 90210 + latitude: "22.169141" + longitude: "-100.994041" + contact_name: Jenny + contact_phone: 867-5309 + contact_email: jenny@changednumber.com + comments: "### Placeholder" + slug: "test_california" + state: present + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['site']['name'] == "Test - California" + - test_four['msg'] == "site Test - California created" + - test_four['site']['status'] == "planned" + - test_four['site']['region'] == 1 + - test_four['site']['tenant'] == 1 + - test_four['site']['facility'] == "EquinoxCA7" + - test_four['site']['asn'] == 65001 + - test_four['site']['time_zone'] == "America/Los_Angeles" + - test_four['site']['description'] == "This is a test description" + - test_four['site']['physical_address'] == "Hollywood, CA, 90210" + - test_four['site']['shipping_address'] == "Hollywood, CA, 90210" + - test_four['site']['latitude'] == "22.169141" + - test_four['site']['longitude'] == "-100.994041" + - test_four['site']['contact_name'] == "Jenny" + - test_four['site']['contact_phone'] == "867-5309" + - test_four['site']['contact_email'] == "jenny@changednumber.com" + - test_four['site']['comments'] == "### Placeholder" + - test_four['site']['slug'] == "test_california" + +- name: "NETBOX_SITE_IDEM: Idempotency - Create duplicate site with all parameters" + netbox.netbox.netbox_site: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test - California + status: Planned + region: Test Region + tenant: Test Tenant + facility: EquinoxCA7 + asn: 65001 + time_zone: America/Los Angeles + description: This is a test description + physical_address: Hollywood, CA, 90210 + shipping_address: Hollywood, CA, 90210 + latitude: "22.169141" + longitude: "-100.994041" + contact_name: Jenny + contact_phone: 867-5309 + contact_email: jenny@changednumber.com + comments: "### Placeholder" + slug: "test_california" + state: present + register: test_results + +- name: "NETBOX_SITE_IDEM: (ASSERT) Idempotency - Duplicate device site with all parameters" + assert: + that: + - test_results is not changed + - test_results['site']['name'] == "Test - California" + - test_results['msg'] == "site Test - California already exists" + - test_results['site']['status'] == "planned" + - test_results['site']['region'] == 1 + - test_results['site']['tenant'] == 1 + - test_results['site']['facility'] == "EquinoxCA7" + - test_results['site']['asn'] == 65001 + - test_results['site']['time_zone'] == "America/Los_Angeles" + - test_results['site']['description'] == "This is a test description" + - test_results['site']['physical_address'] == "Hollywood, CA, 90210" + - test_results['site']['shipping_address'] == "Hollywood, CA, 90210" + - test_results['site']['latitude'] == "22.169141" + - test_results['site']['longitude'] == "-100.994041" + - test_results['site']['contact_name'] == "Jenny" + - test_results['site']['contact_phone'] == "867-5309" + - test_results['site']['contact_email'] == "jenny@changednumber.com" + - test_results['site']['comments'] == "### Placeholder" + - test_results['site']['slug'] == "test_california" + +- name: "5 - Delete site within netbox" + netbox.netbox.netbox_site: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test - Colorado + state: absent + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['site']['name'] == "Test - Colorado" + - test_five['msg'] == "site Test - Colorado deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_tag.yml b/tests/integration/targets/v2.11/tasks/netbox_tag.yml new file mode 100644 index 000000000..38c4157c2 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_tag.yml @@ -0,0 +1,110 @@ +--- +## +## +### NETBOX_TAGS +## +## +- name: "TAG 1: ASSERT - Necessary info creation" + netbox.netbox.netbox_tag: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tag 1" + description: "Tag 1 test" + color: "0000ff" + state: present + register: test_one + +- name: "TAG 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['tags']['color'] == "0000ff" + - test_one['tags']['description'] == "Tag 1 test" + - test_one['tags']['name'] == "Test Tag 1" + - test_one['tags']['slug'] == "test-tag-1" + - test_one['msg'] == "tags Test Tag 1 created" + +- name: "TAG 2: Create duplicate" + netbox.netbox.netbox_tag: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tag 1" + description: "Tag 1 test" + color: "0000ff" + state: present + register: test_two + +- name: "TAG 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['tags']['name'] == "Test Tag 1" + - test_two['msg'] == "tags Test Tag 1 already exists" + +- name: "TAG 3: ASSERT - Update" + netbox.netbox.netbox_tag: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tag 1" + description: "Tag 1 update test" + color: "00ff00" + state: present + register: test_three + +- name: "TAG 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['color'] == "00ff00" + - test_three['diff']['after']['description'] == "Tag 1 update test" + - test_three['tags']['name'] == "Test Tag 1" + - test_three['tags']['description'] == "Tag 1 update test" + - test_three['tags']['color'] == "00ff00" + - test_three['msg'] == "tags Test Tag 1 updated" + +- name: "TAG 4: ASSERT - Delete" + netbox.netbox.netbox_tag: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tag 1" + state: absent + register: test_four + +- name: "TAG 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['diff']['after']['state'] == "absent" + - test_four['tags']['name'] == "Test Tag 1" + - test_four['tags']['slug'] == "test-tag-1" + - test_four['msg'] == "tags Test Tag 1 deleted" + +- name: "TAG 5: ASSERT - Necessary info creation" + netbox.netbox.netbox_tag: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tag 5" + slug: "test-tag-five" + description: "Tag 5 test" + color: "0000ff" + state: present + register: test_five + +- name: "TAG 5: ASSERT - Necessary info creation" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "absent" + - test_five['diff']['after']['state'] == "present" + - test_five['tags']['color'] == "0000ff" + - test_five['tags']['description'] == "Tag 5 test" + - test_five['tags']['name'] == "Test Tag 5" + - test_five['tags']['slug'] == "test-tag-five" + - test_five['msg'] == "tags Test Tag 5 created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_tenant.yml b/tests/integration/targets/v2.11/tasks/netbox_tenant.yml new file mode 100644 index 000000000..7c9af8b9f --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_tenant.yml @@ -0,0 +1,106 @@ +--- +## +## +### NETBOX_TENANT +## +## +- name: "1 - Test tenant creation" + netbox.netbox.netbox_tenant: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Tenant ABC" + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['tenant']['name'] == "Tenant ABC" + - test_one['tenant']['slug'] == "tenant-abc" + - test_one['msg'] == "tenant Tenant ABC created" + +- name: "Test duplicate tenant" + netbox.netbox.netbox_tenant: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Tenant ABC" + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - not test_two['changed'] + - test_two['tenant']['name'] == "Tenant ABC" + - test_two['tenant']['slug'] == "tenant-abc" + - test_two['msg'] == "tenant Tenant ABC already exists" + +- name: "3 - Test update" + netbox.netbox.netbox_tenant: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Tenant ABC" + description: "Updated description" + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['after']['description'] == "Updated description" + - test_three['tenant']['name'] == "Tenant ABC" + - test_three['tenant']['slug'] == "tenant-abc" + - test_three['tenant']['description'] == "Updated description" + - test_three['msg'] == "tenant Tenant ABC updated" + +- name: "4 - Test delete" + netbox.netbox.netbox_tenant: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Tenant ABC" + state: "absent" + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "present" + - test_four['diff']['after']['state'] == "absent" + - test_four['msg'] == "tenant Tenant ABC deleted" + +- name: "5 - Create tenant with all parameters" + netbox.netbox.netbox_tenant: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Tenant ABC" + description: "ABC Incorporated" + comments: "### This tenant is super cool" + tenant_group: "Test Tenant Group" + slug: "tenant_abc" + tags: + - "tagA" + - "tagB" + - "tagC" + state: present + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "absent" + - test_five['diff']['after']['state'] == "present" + - test_five['tenant']['name'] == "Tenant ABC" + - test_five['tenant']['slug'] == "tenant_abc" + - test_five['tenant']['description'] == "ABC Incorporated" + - test_five['tenant']['comments'] == "### This tenant is super cool" + - test_five['tenant']['group'] == 1 + - test_five['tenant']['tags'] | length == 3 + - test_five['msg'] == "tenant Tenant ABC created" diff --git a/tests/integration/targets/v2.11/tasks/netbox_tenant_group.yml b/tests/integration/targets/v2.11/tasks/netbox_tenant_group.yml new file mode 100644 index 000000000..47ad78431 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_tenant_group.yml @@ -0,0 +1,129 @@ +--- +## +## +### NETBOX_TENANT_GROUP +## +## +- name: "1 - Test tenant group creation" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tenant Group Two" + register: test_one + +- name: "1 - ASSERT" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['tenant_group']['name'] == "Test Tenant Group Two" + - test_one['tenant_group']['slug'] == "test-tenant-group-two" + - test_one['msg'] == "tenant_group Test Tenant Group Two created" + +- name: "Test duplicate tenant group" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tenant Group Two" + register: test_two + +- name: "2 - ASSERT" + assert: + that: + - not test_two['changed'] + - test_two['tenant_group']['name'] == "Test Tenant Group Two" + - test_two['tenant_group']['slug'] == "test-tenant-group-two" + - test_two['msg'] == "tenant_group Test Tenant Group Two already exists" + +- name: "3 - Test delete" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tenant Group Two" + state: "absent" + register: test_three + +- name: "3 - ASSERT" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "present" + - test_three['diff']['after']['state'] == "absent" + - test_three['msg'] == "tenant_group Test Tenant Group Two deleted" + +- name: "4 - Test tenant group creation with custom slug" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tenant Group ABC" + slug: "test_tenant_group_four" + register: test_four + +- name: "4 - ASSERT" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['tenant_group']['name'] == "Test Tenant Group ABC" + - test_four['tenant_group']['slug'] == "test_tenant_group_four" + - test_four['msg'] == "tenant_group Test Tenant Group ABC created" + +- name: "5 - Test child tenant group creation" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Child Test Tenant Group" + parent_tenant_group: "{{ test_four.tenant_group.slug }}" + register: test_five + +- name: "5 - ASSERT" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "absent" + - test_five['diff']['after']['state'] == "present" + - test_five['tenant_group']['name'] == "Child Test Tenant Group" + - test_five['tenant_group']['parent'] == {{ test_four.tenant_group.id }} + - test_five['msg'] == "tenant_group Child Test Tenant Group created" + +- name: "6 - Test child tenant group deletion" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Child Test Tenant Group" + state: "absent" + register: test_six + +- name: "6 - ASSERT" + assert: + that: + - test_six is changed + - test_six['diff']['before']['state'] == "present" + - test_six['diff']['after']['state'] == "absent" + - test_six['msg'] == "tenant_group Child Test Tenant Group deleted" + +- name: "7 - Test deletion of the tenant group with custom slug" + netbox.netbox.netbox_tenant_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test Tenant Group ABC" + slug: "test_tenant_group_four" + state: "absent" + register: test_seven + +- name: "7 - ASSERT" + assert: + that: + - test_seven is changed + - test_seven['diff']['before']['state'] == "present" + - test_seven['diff']['after']['state'] == "absent" + - test_seven['msg'] == "tenant_group Test Tenant Group ABC deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_virtual_chassis.yml b/tests/integration/targets/v2.11/tasks/netbox_virtual_chassis.yml new file mode 100644 index 000000000..04ada8411 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_virtual_chassis.yml @@ -0,0 +1,131 @@ +--- +# © 2020 Nokia +# Licensed under the GNU General Public License v3.0 only +# SPDX-License-Identifier: GPL-3.0-only +## +## +### NETBOX_VIRTUAL_CHASSIS +## +## +- name: "VIRTUAL_CHASSIS 0: Create device for testing virtual chassis" + netbox.netbox.netbox_device: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Device Virtual Chassis Tests + device_type: Cisco Test + device_role: Core Switch + site: Test Site + vc_position: 1 + vc_priority: 1 + state: present + +- name: "VIRTUAL_CHASSIS 1: Necessary info creation" + netbox.netbox.netbox_virtual_chassis: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "First VC" + master: Device Virtual Chassis Tests + state: present + register: test_one + +- name: "VIRTUAL_CHASSIS 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['virtual_chassis']['master'] == 11 + - test_one['virtual_chassis']['name'] == "First VC" + - test_one['msg'] == "virtual_chassis First VC created" + +- name: "VIRTUAL_CHASSIS 2: Create duplicate" + netbox.netbox.netbox_virtual_chassis: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "First VC" + master: Device Virtual Chassis Tests + state: present + register: test_two + +- name: "VIRTUAL_CHASSIS 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['virtual_chassis']['master'] == 11 + - test_two['virtual_chassis']['name'] == "First VC" + - test_two['msg'] == "virtual_chassis First VC already exists" + +- name: "POWER_FEED 3: Update virtual_chassis with other fields" + netbox.netbox.netbox_virtual_chassis: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "First VC" + master: Device Virtual Chassis Tests + domain: Domain Text + state: present + register: test_three + +- name: "POWER_FEED 3: ASSERT - Update virtual_chassis with other fields" + assert: + that: + - test_three is changed + - test_three['diff']['after']['domain'] == "Domain Text" + - test_three['virtual_chassis']['master'] == 11 + - test_three['virtual_chassis']['domain'] == "Domain Text" + - test_three['virtual_chassis']['name'] == "First VC" + - test_three['msg'] == "virtual_chassis First VC updated" + +- name: "VIRTUAL_CHASSIS 4: Create device for testing virtual chassis deletion" + netbox.netbox.netbox_device: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Device Virtual Chassis Tests 2 + device_type: Cisco Test + device_role: Core Switch + site: Test Site + vc_position: 1 + vc_priority: 15 + state: present + +- name: "VIRTUAL_CHASSIS 4: Create Virtual Chassis for Delete Test" + netbox.netbox.netbox_virtual_chassis: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Second VC" + master: Device Virtual Chassis Tests 2 + state: present + register: test_four + +- name: "VIRTUAL_CHASSIS 4: ASSERT - Create Virtual Chassis for Delete Test" + assert: + that: + - test_four is changed + - test_four['diff']['before']['state'] == "absent" + - test_four['diff']['after']['state'] == "present" + - test_four['virtual_chassis']['master'] == 12 + - test_four['virtual_chassis']['name'] == "Second VC" + - test_four['msg'] == "virtual_chassis Second VC created" + +- name: "VIRTUAL_CHASSIS 5: Delete Virtual Chassis" + netbox.netbox.netbox_virtual_chassis: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Second VC" + master: Device Virtual Chassis Tests 2 + state: absent + register: test_five + +- name: "VIRTUAL_CHASSIS 5: ASSERT - Delete Virtual Chassis" + assert: + that: + - test_five is changed + - test_five['diff']['before']['state'] == "present" + - test_five['diff']['after']['state'] == "absent" + - test_five['msg'] == "virtual_chassis Second VC deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_virtual_machine.yml b/tests/integration/targets/v2.11/tasks/netbox_virtual_machine.yml new file mode 100644 index 000000000..c14fd844b --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_virtual_machine.yml @@ -0,0 +1,99 @@ +--- +## +## +### NETBOX_VIRTUAL_MACHINES +## +## +- name: "VIRTUAL_MACHINE 1: Necessary info creation" + netbox.netbox.netbox_virtual_machine: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VM One" + cluster: "Test Cluster" + state: present + register: test_one + +- name: "VIRTUAL_MACHINE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['virtual_machine']['name'] == "Test VM One" + - test_one['virtual_machine']['cluster'] == 1 + - test_one['msg'] == "virtual_machine Test VM One created" + +- name: "VIRTUAL_MACHINE 2: Create duplicate" + netbox.netbox.netbox_virtual_machine: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VM One" + cluster: "Test Cluster" + state: present + register: test_two + +- name: "VIRTUAL_MACHINE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['virtual_machine']['name'] == "Test VM One" + - test_two['virtual_machine']['cluster'] == 1 + - test_two['msg'] == "virtual_machine Test VM One already exists" + +- name: "VIRTUAL_MACHINE 3: Update" + netbox.netbox.netbox_virtual_machine: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VM One" + cluster: "Test Cluster" + vcpus: 8 + memory: 8 + status: "Planned" + virtual_machine_role: "Test VM Role" + tags: + - "Schnozzberry" + state: present + register: test_three + +- name: "VIRTUAL_MACHINE 3: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['vcpus'] == 8 + - test_three['diff']['after']['memory'] == 8 + - test_three['diff']['after']['status'] == "planned" + - test_three['diff']['after']['role'] == 2 + - test_three['diff']['after']['tags'][0] == 4 + - test_three['virtual_machine']['name'] == "Test VM One" + - test_three['virtual_machine']['cluster'] == 1 + - test_three['virtual_machine']['vcpus'] == 8 + - test_three['virtual_machine']['memory'] == 8 + - test_three['virtual_machine']['status'] == "planned" + - test_three['virtual_machine']['role'] == 2 + - test_three['virtual_machine']['tags'][0] == 4 + - test_three['msg'] == "virtual_machine Test VM One updated" + +- name: "VIRTUAL_MACHINE 4: Delete" + netbox.netbox.netbox_virtual_machine: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VM One" + state: absent + register: test_four + +- name: "VIRTUAL_MACHINE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['virtual_machine']['name'] == "Test VM One" + - test_four['virtual_machine']['cluster'] == 1 + - test_four['virtual_machine']['vcpus'] == "8.00" + - test_four['virtual_machine']['memory'] == 8 + - test_four['virtual_machine']['status'] == "planned" + - test_four['virtual_machine']['role'] == 2 + - test_four['virtual_machine']['tags'][0] == 4 + - test_four['msg'] == "virtual_machine Test VM One deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_vlan.yml b/tests/integration/targets/v2.11/tasks/netbox_vlan.yml new file mode 100644 index 000000000..d95abbeca --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_vlan.yml @@ -0,0 +1,193 @@ +--- +## +## +### NETBOX_VLAN +## +## +- name: "VLAN 1: Necessary info creation" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VLAN 500 + vid: 500 + state: present + register: test_one + +- name: "VLAN 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['vlan']['name'] == "Test VLAN 500" + - test_one['vlan']['vid'] == 500 + - test_one['msg'] == "vlan Test VLAN 500 created" + +- name: "VLAN 2: Create duplicate" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VLAN 500 + vid: 500 + state: present + register: test_two + +- name: "VLAN 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['vlan']['name'] == "Test VLAN 500" + - test_two['vlan']['vid'] == 500 + - test_two['msg'] == "vlan Test VLAN 500 already exists" + +- name: "VLAN 3: Create VLAN with same name, but different site" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VLAN 500 + vid: 500 + site: Test Site + tenant: Test Tenant + vlan_group: "Test VLAN Group" + state: present + register: test_three + +- name: "VLAN 3: ASSERT - Create VLAN with same name, but different site" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['vlan']['name'] == "Test VLAN 500" + - test_three['vlan']['vid'] == 500 + - test_three['vlan']['site'] == 1 + - test_three['vlan']['group'] == 1 + - test_three['msg'] == "vlan Test VLAN 500 created" + +- name: "VLAN 4: ASSERT - Update" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VLAN 500" + vid: 500 + tenant: "Test Tenant" + vlan_group: "Test VLAN Group" + status: Reserved + vlan_role: Network of care + description: Updated description + site: "Test Site" + tags: + - "Schnozzberry" + state: present + register: test_four + +- name: "VLAN 4: ASSERT - Updated" + assert: + that: + - test_four is changed + - test_four['diff']['after']['status'] == "reserved" + - test_four['diff']['after']['role'] == 1 + - test_four['diff']['after']['description'] == "Updated description" + - test_four['diff']['after']['tags'][0] == 4 + - test_four['vlan']['name'] == "Test VLAN 500" + - test_four['vlan']['tenant'] == 1 + - test_four['vlan']['site'] == 1 + - test_four['vlan']['group'] == 1 + - test_four['vlan']['status'] == "reserved" + - test_four['vlan']['role'] == 1 + - test_four['vlan']['description'] == "Updated description" + - test_four['vlan']['tags'][0] == 4 + - test_four['msg'] == "vlan Test VLAN 500 updated" + +- name: "VLAN: ASSERT - IDEMPOTENT WITH VLAN_GROUP" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VLAN 500" + vid: 500 + tenant: "Test Tenant" + vlan_group: "Test VLAN Group" + status: Reserved + vlan_role: Network of care + description: Updated description + site: "Test Site" + tags: + - "Schnozzberry" + state: present + register: idempotent_vlan_group + +- name: "VLAN: ASSERT - IDEMPOTENT WITH VLAN_GROUP" + assert: + that: + - idempotent_vlan_group is not changed + +- name: "VLAN: Create VLAN with same name, but different vlan_group" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VLAN 500 + vid: 500 + site: Test Site + tenant: Test Tenant + vlan_group: "Test VLAN Group 2" + state: present + register: new_vlan_group + +- name: "VLAN: ASSERT - Create VLAN with same name, but different vlan_group" + assert: + that: + - new_vlan_group is changed + - new_vlan_group['diff']['before']['state'] == "absent" + - new_vlan_group['diff']['after']['state'] == "present" + - new_vlan_group['vlan']['name'] == "Test VLAN 500" + - new_vlan_group['vlan']['vid'] == 500 + - new_vlan_group['vlan']['site'] == 1 + - new_vlan_group['vlan']['group'] == 2 + - new_vlan_group['msg'] == "vlan Test VLAN 500 created" + +- name: "VLAN 5: ASSERT - Delete more than one result" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VLAN 500" + state: absent + ignore_errors: yes + register: test_five + +- name: "VLAN 5: ASSERT - Delete more than one result" + assert: + that: + - test_five is failed + - test_five['msg'] == "More than one result returned for Test VLAN 500" + +- name: "VLAN 6: ASSERT - Delete" + netbox.netbox.netbox_vlan: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VLAN 500" + site: Test Site + vlan_group: "Test VLAN Group" + state: absent + register: test_six + +- name: "VLAN 6: ASSERT - Delete" + assert: + that: + - test_six is changed + - test_six['vlan']['name'] == "Test VLAN 500" + - test_six['vlan']['tenant'] == 1 + - test_six['vlan']['site'] == 1 + - test_six['vlan']['group'] == 1 + - test_six['vlan']['status'] == "reserved" + - test_six['vlan']['role'] == 1 + - test_six['vlan']['description'] == "Updated description" + - test_six['vlan']['tags'][0] == 4 + - test_six['msg'] == "vlan Test VLAN 500 deleted" diff --git a/tests/integration/targets/v2.11/tasks/netbox_vlan_group.yml b/tests/integration/targets/v2.11/tasks/netbox_vlan_group.yml new file mode 100644 index 000000000..8bd2aa160 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_vlan_group.yml @@ -0,0 +1,314 @@ +--- +## +## +### NETBOX_VLAN_GROUP +## +## +- name: "VLAN_GROUP 1: Necessary info creation" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group One" + scope_type: "dcim.site" + scope: Test Site + state: present + register: results + +- name: "VLAN_GROUP 1: ASSERT - Necessary info creation" + assert: + that: + - results is changed + - results['diff']['before']['state'] == "absent" + - results['diff']['after']['state'] == "present" + - results['vlan_group']['name'] == "VLAN Group One" + - results['vlan_group']['slug'] == "vlan-group-one" + - results['vlan_group']['scope_type'] == "dcim.site" + - results['vlan_group']['scope_id'] == 1 + - results['msg'] == "vlan_group VLAN Group One created" + +- name: "VLAN_GROUP 2: Create duplicate" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group One" + scope_type: "dcim.site" + scope: Test Site + state: present + register: results + +- name: "VLAN_GROUP 2: ASSERT - Create duplicate" + assert: + that: + - not results['changed'] + - results['vlan_group']['name'] == "VLAN Group One" + - results['vlan_group']['slug'] == "vlan-group-one" + - results['vlan_group']['scope_type'] == "dcim.site" + - results['vlan_group']['scope_id'] == 1 + - results['msg'] == "vlan_group VLAN Group One already exists" + +- name: "VLAN_GROUP 3: ASSERT - Create with same name, different site" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group One" + scope_type: "dcim.site" + scope: "Test Site2" + state: present + register: results + +- name: "VLAN_GROUP 3: ASSERT - Create with same name, different site" + assert: + that: + - results is changed + - results['vlan_group']['name'] == "VLAN Group One" + - results['vlan_group']['slug'] == "vlan-group-one" + - results['vlan_group']['scope_type'] == "dcim.site" + - results['vlan_group']['scope_id'] == 2 + - results['msg'] == "vlan_group VLAN Group One created" + +- name: "VLAN_GROUP 4: ASSERT - Create vlan group, no site" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group One" + state: present + ignore_errors: yes + register: results + +- name: "VLAN_GROUP 4: ASSERT - Create with same name, different site" + assert: + that: + - results is failed + - results['msg'] == "More than one result returned for VLAN Group One" + +- name: "VLAN_GROUP 5: ASSERT - Delete" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: VLAN Group One + scope_type: "dcim.site" + scope: Test Site2 + state: absent + register: results + +- name: "VLAN_GROUP 5: ASSERT - Delete" + assert: + that: + - results is changed + - results['diff']['before']['state'] == "present" + - results['diff']['after']['state'] == "absent" + - results['vlan_group']['name'] == "VLAN Group One" + - results['vlan_group']['slug'] == "vlan-group-one" + - results['vlan_group']['scope_type'] == "dcim.site" + - results['vlan_group']['scope_id'] == 2 + - results['msg'] == "vlan_group VLAN Group One deleted" + +- name: "VLAN_GROUP 6: ASSERT - Delete non existing" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: VLAN Group One + scope_type: "dcim.site" + scope: Test Site2 + state: absent + register: results + +- name: "VLAN_GROUP 6: ASSERT - Delete non existing`" + assert: + that: + - not results['changed'] + - results['vlan_group'] == None + - results['msg'] == "vlan_group VLAN Group One already absent" + +- name: "VLAN_GROUP 7: Necessary info creation - scope_type: dcim.location" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group Location" + scope_type: "dcim.location" + scope: Test Rack Group + state: present + register: results + +- name: "VLAN_GROUP 7: ASSERT - Necessary info creation - scope_type: dcim.location" + assert: + that: + - results is changed + - results['diff']['before']['state'] == "absent" + - results['diff']['after']['state'] == "present" + - results['vlan_group']['name'] == "VLAN Group Location" + - results['vlan_group']['slug'] == "vlan-group-location" + - results['vlan_group']['scope_type'] == "dcim.location" + - results['vlan_group']['scope_id'] == 1 + - results['msg'] == "vlan_group VLAN Group Location created" + +- name: "VLAN_GROUP 8: Necessary info creation - scope_type: dcim.rack" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group Rack" + scope_type: "dcim.rack" + scope: Test Rack + state: present + register: results + +- name: "VLAN_GROUP 8: ASSERT - Necessary info creation - scope_type: dcim.rack" + assert: + that: + - results is changed + - results['diff']['before']['state'] == "absent" + - results['diff']['after']['state'] == "present" + - results['vlan_group']['name'] == "VLAN Group Rack" + - results['vlan_group']['slug'] == "vlan-group-rack" + - results['vlan_group']['scope_type'] == "dcim.rack" + - results['vlan_group']['scope_id'] == 2 + - results['msg'] == "vlan_group VLAN Group Rack created" + +- name: "VLAN_GROUP 9: Necessary info creation - scope_type: dcim.region" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group Region" + scope_type: "dcim.region" + scope: Test Region + state: present + register: results + +- name: "VLAN_GROUP 9: ASSERT - Necessary info creation - scope_type: dcim.region" + assert: + that: + - results is changed + - results['diff']['before']['state'] == "absent" + - results['diff']['after']['state'] == "present" + - results['vlan_group']['name'] == "VLAN Group Region" + - results['vlan_group']['slug'] == "vlan-group-region" + - results['vlan_group']['scope_type'] == "dcim.region" + - results['vlan_group']['scope_id'] == 1 + - results['msg'] == "vlan_group VLAN Group Region created" + +- name: "VLAN_GROUP 10: Necessary info creation - scope_type: dcim.sitegroup" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group Site Group" + scope_type: "dcim.sitegroup" + scope: Test Site Group + state: present + register: results + +- name: "VLAN_GROUP 10: ASSERT - Necessary info creation - scope_type: dcim.sitegroup" + assert: + that: + - results is changed + - results['diff']['before']['state'] == "absent" + - results['diff']['after']['state'] == "present" + - results['vlan_group']['name'] == "VLAN Group Site Group" + - results['vlan_group']['slug'] == "vlan-group-site-group" + - results['vlan_group']['scope_type'] == "dcim.sitegroup" + - results['vlan_group']['scope_id'] == 1 + - results['msg'] == "vlan_group VLAN Group Site Group created" + +# Commented out due to invalid content type being reported back by API +#- name: "VLAN_GROUP 11: Necessary info creation - scope_type: virtualization.cluster" +# netbox.netbox.netbox_vlan_group: +# netbox_url: http://localhost:32768 +# netbox_token: 0123456789abcdef0123456789abcdef01234567 +# data: +# name: "VLAN Group Cluster" +# scope_type: "virtualization.cluster" +# scope: Test Cluster +# state: present +# register: results + +#- name: "VLAN_GROUP 11: ASSERT - Necessary info creation - scope_type: virtualization.cluster" +# assert: +# that: +# - results is changed +# - results['diff']['before']['state'] == "absent" +# - results['diff']['after']['state'] == "present" +# - results['vlan_group']['name'] == "VLAN Group Cluster" +# - results['vlan_group']['slug'] == "vlan-group-cluster" +# - results['vlan_group']['scope_type'] == "virtualization.cluster" +# - results['vlan_group']['scope_id'] == 1 +# - results['msg'] == "vlan_group VLAN Group Cluster created" +# +#- name: "VLAN_GROUP 12: Necessary info creation - scope_type: virtualization.clustergroup" +# netbox.netbox.netbox_vlan_group: +# netbox_url: http://localhost:32768 +# netbox_token: 0123456789abcdef0123456789abcdef01234567 +# data: +# name: "VLAN Group Cluster Group" +# scope_type: "virtualization.clustergroup" +# scope: Test Cluster Group +# state: present +# register: results +# +#- name: "VLAN_GROUP 12: ASSERT - Necessary info creation - scope_type: virtualization.clustergroup" +# assert: +# that: +# - results is changed +# - results['diff']['before']['state'] == "absent" +# - results['diff']['after']['state'] == "present" +# - results['vlan_group']['name'] == "VLAN Group Cluster Group" +# - results['vlan_group']['slug'] == "vlan-group-cluster-group" +# - results['vlan_group']['scope_type'] == "virtualization.clustergroup" +# - results['vlan_group']['scope_id'] == 1 +# - results['msg'] == "vlan_group VLAN Group Cluster Group created" + +- name: "VLAN_GROUP 12: Update Description - scope_type: dcim.location" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group Location" + scope_type: "dcim.location" + scope: Test Rack Group + description: "Ansible updated description" + state: present + register: results + +- name: "VLAN_GROUP 12: ASSERT - Update Description - scope_type: dcim.location" + assert: + that: + - results is changed + - results['diff']['before']['description'] == "" + - results['diff']['after']['description'] == "Ansible updated description" + - results['vlan_group']['name'] == "VLAN Group Location" + - results['vlan_group']['slug'] == "vlan-group-location" + - results['vlan_group']['scope_type'] == "dcim.location" + - results['vlan_group']['scope_id'] == 1 + - results['vlan_group']['description'] == "Ansible updated description" + - results['msg'] == "vlan_group VLAN Group Location updated" + +- name: "VLAN_GROUP 12: Update Description (IDEM) - scope_type: dcim.location" + netbox.netbox.netbox_vlan_group: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "VLAN Group Location" + scope_type: "dcim.location" + scope: Test Rack Group + description: "Ansible updated description" + state: present + register: results + +- name: "VLAN_GROUP 12: ASSERT - Update Description (IDEM) - scope_type: dcim.location" + assert: + that: + - results is not changed + - results['vlan_group']['name'] == "VLAN Group Location" + - results['vlan_group']['slug'] == "vlan-group-location" + - results['vlan_group']['scope_type'] == "dcim.location" + - results['vlan_group']['scope_id'] == 1 + - results['vlan_group']['description'] == "Ansible updated description" + - results['msg'] == "vlan_group VLAN Group Location already exists" diff --git a/tests/integration/targets/v2.11/tasks/netbox_vm_interface.yml b/tests/integration/targets/v2.11/tasks/netbox_vm_interface.yml new file mode 100644 index 000000000..56a60e222 --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_vm_interface.yml @@ -0,0 +1,159 @@ +--- +## +## +### NETBOX_VM_INTERFACE +## +## +- name: "NETBOX_VM_INTERFACE 1: Necessary info creation" + netbox.netbox.netbox_vm_interface: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + virtual_machine: "test100-vm" + name: "Eth10" + state: present + register: test_one + +- name: "NETBOX_VM_INTERFACE 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['interface']['name'] == "Eth10" + - test_one['interface']['virtual_machine'] == 1 + - test_one['msg'] == "interface Eth10 created" + +- name: "NETBOX_VM_INTERFACE 2: Create duplicate" + netbox.netbox.netbox_vm_interface: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + virtual_machine: "test100-vm" + name: "Eth10" + state: present + register: test_two + +- name: "NETBOX_VM_INTERFACE 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['interface']['name'] == "Eth10" + - test_two['interface']['virtual_machine'] == 1 + - test_two['msg'] == "interface Eth10 already exists" + +- name: "NETBOX_VM_INTERFACE 3: Updated" + netbox.netbox.netbox_vm_interface: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + virtual_machine: "test100-vm" + name: "Eth10" + enabled: false + mtu: 9000 + mac_address: "00:00:00:AA:AA:01" + description: "Updated test100-vm" + mode: Tagged + untagged_vlan: + name: Wireless + site: Test Site + tagged_vlans: + - name: Data + site: Test Site + - name: VoIP + site: Test Site + tags: + - "Schnozzberry" + state: present + register: test_three + +- name: "NETBOX_VM_INTERFACE 4: ASSERT - Updated" + assert: + that: + - test_three is changed + - test_three['diff']['after']['enabled'] == false + - test_three['diff']['after']['mtu'] == 9000 + - test_three['diff']['after']['mac_address'] == "00:00:00:AA:AA:01" + - test_three['diff']['after']['description'] == "Updated test100-vm" + - test_three['diff']['after']['mode'] == "tagged" + - test_three['diff']['after']['untagged_vlan'] == 1 + - test_three['diff']['after']['tagged_vlans'] == [2, 3] + - test_three['diff']['after']['tags'][0] == 4 + - test_three['interface']['name'] == "Eth10" + - test_three['interface']['virtual_machine'] == 1 + - test_three['interface']['enabled'] == false + - test_three['interface']['mtu'] == 9000 + - test_three['interface']['mac_address'] == "00:00:00:AA:AA:01" + - test_three['interface']['description'] == "Updated test100-vm" + - test_three['interface']['mode'] == "tagged" + - test_three['interface']['untagged_vlan'] == 1 + - test_three['interface']['tagged_vlans'] == [2, 3] + - test_three['interface']['tags'][0] == 4 + - test_three['msg'] == "interface Eth10 updated" + +- name: "NETBOX_VM_INTERFACE 4: ASSERT - Delete" + netbox.netbox.netbox_vm_interface: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Eth10" + virtual_machine: "test100-vm" + state: absent + register: test_four + +- name: "NETBOX_VM_INTERFACE 4: ASSERT - Delete" + assert: + that: + - test_four is changed + - test_four['interface']['name'] == "Eth10" + - test_four['interface']['virtual_machine'] == 1 + - test_four['msg'] == "interface Eth10 deleted" + +- name: "NETBOX_VM_INTERFACE 5: Attempt to update interface with same name on other VMs" + netbox.netbox.netbox_vm_interface: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + virtual_machine: "test100-vm" + name: "Eth0" + enabled: false + mtu: 9000 + mac_address: "00:00:00:AA:AA:01" + description: "Updated test100-vm Eth0 intf" + mode: Tagged + untagged_vlan: + name: Wireless + site: Test Site + tagged_vlans: + - name: Data + site: Test Site + - name: VoIP + site: Test Site + tags: + - "Schnozzberry" + state: present + register: test_five + +- name: "NETBOX_VM_INTERFACE 5: ASSERT - Updated" + assert: + that: + - test_five is changed + - test_five['diff']['after']['enabled'] == false + - test_five['diff']['after']['mtu'] == 9000 + - test_five['diff']['after']['mac_address'] == "00:00:00:AA:AA:01" + - test_five['diff']['after']['description'] == "Updated test100-vm Eth0 intf" + - test_five['diff']['after']['mode'] == "tagged" + - test_five['diff']['after']['untagged_vlan'] == 1 + - test_five['diff']['after']['tagged_vlans'] == [2, 3] + - test_five['diff']['after']['tags'][0] == 4 + - test_five['interface']['name'] == "Eth0" + - test_five['interface']['virtual_machine'] == 1 + - test_five['interface']['enabled'] == false + - test_five['interface']['mtu'] == 9000 + - test_five['interface']['mac_address'] == "00:00:00:AA:AA:01" + - test_five['interface']['description'] == "Updated test100-vm Eth0 intf" + - test_five['interface']['mode'] == "tagged" + - test_five['interface']['untagged_vlan'] == 1 + - test_five['interface']['tagged_vlans'] == [2, 3] + - test_five['interface']['tags'][0] == 4 + - test_five['msg'] == "interface Eth0 updated" diff --git a/tests/integration/targets/v2.11/tasks/netbox_vrf.yml b/tests/integration/targets/v2.11/tasks/netbox_vrf.yml new file mode 100644 index 000000000..25b584ceb --- /dev/null +++ b/tests/integration/targets/v2.11/tasks/netbox_vrf.yml @@ -0,0 +1,136 @@ +--- +## +## +### NETBOX_VRF +## +## +- name: "VRF 1: Necessary info creation" + netbox.netbox.netbox_vrf: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VRF One + state: present + register: test_one + +- name: "VRF 1: ASSERT - Necessary info creation" + assert: + that: + - test_one is changed + - test_one['diff']['before']['state'] == "absent" + - test_one['diff']['after']['state'] == "present" + - test_one['vrf']['name'] == "Test VRF One" + - test_one['msg'] == "vrf Test VRF One created" + +- name: "VRF 2: Create duplicate" + netbox.netbox.netbox_vrf: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VRF One + state: present + register: test_two + +- name: "VRF 2: ASSERT - Create duplicate" + assert: + that: + - not test_two['changed'] + - test_two['vrf']['name'] == "Test VRF One" + - test_two['msg'] == "vrf Test VRF One already exists" + +- name: "VRF 3: Create VRF with same name, but different tenant" + netbox.netbox.netbox_vrf: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: Test VRF One + tenant: Test Tenant + state: present + register: test_three + +- name: "VRF 3: ASSERT - Create VRF with same name, but different site" + assert: + that: + - test_three is changed + - test_three['diff']['before']['state'] == "absent" + - test_three['diff']['after']['state'] == "present" + - test_three['vrf']['name'] == "Test VRF One" + - test_three['vrf']['tenant'] == 1 + - test_three['msg'] == "vrf Test VRF One created" + +- name: "VRF 4: ASSERT - Update" + netbox.netbox.netbox_vrf: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VRF One" + rd: "65001:1" + enforce_unique: False + tenant: "Test Tenant" + description: Updated description + import_targets: + - "4000:4000" + export_targets: + - "5000:5000" + tags: + - "Schnozzberry" + state: present + register: test_four + +- name: "VRF 4: ASSERT - Updated" + assert: + that: + - test_four is changed + - test_four['diff']['after']['rd'] == "65001:1" + - test_four['diff']['after']['enforce_unique'] == false + - test_four['diff']['after']['description'] == "Updated description" + - test_four['diff']['after']['tags'][0] == 4 + - test_four['diff']['after']['import_targets'] | length == 1 + - test_four['diff']['after']['export_targets'] | length == 1 + - test_four['vrf']['name'] == "Test VRF One" + - test_four['vrf']['tenant'] == 1 + - test_four['vrf']['rd'] == "65001:1" + - test_four['vrf']['enforce_unique'] == false + - test_four['vrf']['description'] == "Updated description" + - test_four['vrf']['tags'][0] == 4 + - test_four['vrf']['import_targets'] | length == 1 + - test_four['vrf']['export_targets'] | length == 1 + - test_four['msg'] == "vrf Test VRF One updated" + +- name: "VRF 5: ASSERT - Delete more than one result" + netbox.netbox.netbox_vrf: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VRF One" + state: absent + ignore_errors: yes + register: test_five + +- name: "VRF 5: ASSERT - Delete more than one result" + assert: + that: + - test_five is failed + - test_five['msg'] == "More than one result returned for Test VRF One" + +- name: "VRF 6: ASSERT - Delete" + netbox.netbox.netbox_vrf: + netbox_url: http://localhost:32768 + netbox_token: 0123456789abcdef0123456789abcdef01234567 + data: + name: "Test VRF One" + tenant: Test Tenant + state: absent + register: test_six + +- name: "VRF 6: ASSERT - Delete" + assert: + that: + - test_six is changed + - test_six['vrf']['name'] == "Test VRF One" + - test_six['vrf']['tenant'] == 1 + - test_six['vrf']['rd'] == "65001:1" + - test_six['vrf']['enforce_unique'] == false + - test_six['vrf']['description'] == "Updated description" + - test_six['vrf']['tags'][0] == 4 + - test_six['msg'] == "vrf Test VRF One deleted" From f7b722a5964b29ed20277b36496db414cabf722c Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 12:55:17 -0400 Subject: [PATCH 20/24] pin integration test versions instead of latest --- .github/workflows/main.yml | 7 ++++--- .../{inventory-latest => inventory-v3.0}/.gitignore | 0 .../targets/{inventory-latest => inventory-v3.0}/aliases | 0 .../compare_inventory_json.py | 0 .../files/test-inventory-legacy.json | 0 .../files/test-inventory-legacy.yml | 0 .../files/test-inventory-options-flatten.json | 0 .../files/test-inventory-options-flatten.yml | 0 .../files/test-inventory-options.json | 0 .../files/test-inventory-options.yml | 0 .../files/test-inventory-plurals-flatten.json | 0 .../files/test-inventory-plurals-flatten.yml | 0 .../files/test-inventory-plurals.json | 0 .../files/test-inventory-plurals.yml | 0 .../files/test-inventory.json | 0 .../files/test-inventory.yml | 0 .../targets/{inventory-latest => inventory-v3.0}/runme.sh | 0 .../runme_config.template | 0 .../{regression-latest => regression-v3.0}/tasks/main.yml | 0 tests/integration/targets/{latest => v3.0}/tasks/main.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_aggregate.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_cable.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_circuit.yml | 0 .../{latest => v3.0}/tasks/netbox_circuit_termination.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_circuit_type.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_cluster.yml | 0 .../{latest => v3.0}/tasks/netbox_cluster_group.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_cluster_type.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_console_port.yml | 0 .../tasks/netbox_console_port_template.yml | 0 .../{latest => v3.0}/tasks/netbox_console_server_port.yml | 0 .../tasks/netbox_console_server_port_template.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_device.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_device_bay.yml | 0 .../{latest => v3.0}/tasks/netbox_device_bay_template.yml | 0 .../{latest => v3.0}/tasks/netbox_device_interface.yml | 0 .../tasks/netbox_device_interface_template.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_device_role.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_device_type.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_front_port.yml | 0 .../{latest => v3.0}/tasks/netbox_front_port_template.yml | 0 .../{latest => v3.0}/tasks/netbox_inventory_item.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_ip_address.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_ipam_role.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_lookup.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_manufacturer.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_platform.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_power_feed.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_power_outlet.yml | 0 .../tasks/netbox_power_outlet_template.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_power_panel.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_power_port.yml | 0 .../{latest => v3.0}/tasks/netbox_power_port_template.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_prefix.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_provider.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_rack.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_rack_group.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_rack_role.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_rear_port.yml | 0 .../{latest => v3.0}/tasks/netbox_rear_port_template.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_region.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_rir.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_route_target.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_service.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_site.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_tag.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_tenant.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_tenant_group.yml | 0 .../{latest => v3.0}/tasks/netbox_virtual_chassis.yml | 0 .../{latest => v3.0}/tasks/netbox_virtual_machine.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_vlan.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_vlan_group.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_vm_interface.yml | 0 .../targets/{latest => v3.0}/tasks/netbox_vrf.yml | 0 74 files changed, 4 insertions(+), 3 deletions(-) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/.gitignore (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/aliases (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/compare_inventory_json.py (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-legacy.json (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-legacy.yml (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-options-flatten.json (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-options-flatten.yml (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-options.json (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-options.yml (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-plurals-flatten.json (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-plurals-flatten.yml (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-plurals.json (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory-plurals.yml (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory.json (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/files/test-inventory.yml (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/runme.sh (100%) rename tests/integration/targets/{inventory-latest => inventory-v3.0}/runme_config.template (100%) rename tests/integration/targets/{regression-latest => regression-v3.0}/tasks/main.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/main.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_aggregate.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_cable.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_circuit.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_circuit_termination.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_circuit_type.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_cluster.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_cluster_group.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_cluster_type.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_console_port.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_console_port_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_console_server_port.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_console_server_port_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device_bay.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device_bay_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device_interface.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device_interface_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device_role.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_device_type.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_front_port.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_front_port_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_inventory_item.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_ip_address.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_ipam_role.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_lookup.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_manufacturer.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_platform.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_power_feed.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_power_outlet.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_power_outlet_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_power_panel.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_power_port.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_power_port_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_prefix.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_provider.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_rack.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_rack_group.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_rack_role.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_rear_port.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_rear_port_template.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_region.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_rir.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_route_target.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_service.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_site.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_tag.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_tenant.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_tenant_group.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_virtual_chassis.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_virtual_machine.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_vlan.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_vlan_group.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_vm_interface.yml (100%) rename tests/integration/targets/{latest => v3.0}/tasks/netbox_vrf.yml (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 969b52b73..5cd3ba9f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,8 +52,8 @@ jobs: VERSION: "v2.11" INTEGRATION_TESTS: "v2.11" - python-version: 3.6 - VERSION: "latest" - INTEGRATION_TESTS: "latest" + VERSION: "v3.0" + INTEGRATION_TESTS: "v3.0" steps: - name: Checkout repo uses: actions/checkout@v2 @@ -106,6 +106,7 @@ jobs: cd .. git clone https://github.com/netbox-community/netbox-docker.git cd netbox-docker + git checkout 1.3.1 tee docker-compose.override.yml < Date: Sat, 11 Sep 2021 12:58:50 -0400 Subject: [PATCH 21/24] correct github workflow stage name --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cd3ba9f2..ee65cd663 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -99,7 +99,7 @@ jobs: docker container ls cd .. if: matrix.VERSION == 'v2.11' - - name: Clone & Start netbox-docker containers - latest + - name: Clone & Start netbox-docker containers - 3.0 env: VERSION: ${{ matrix.VERSION }} run: | From 527a2e160ae30c108aec1de17d8b81ee089802f5 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sat, 11 Sep 2021 22:39:12 -0400 Subject: [PATCH 22/24] correct failure if cert is not set in task --- plugins/module_utils/netbox_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/module_utils/netbox_utils.py b/plugins/module_utils/netbox_utils.py index de5727385..f6220b92e 100644 --- a/plugins/module_utils/netbox_utils.py +++ b/plugins/module_utils/netbox_utils.py @@ -542,7 +542,8 @@ def _connect_netbox_api(self, url, token, ssl_verify, cert): try: session = requests.Session() session.verify = ssl_verify - session.cert = tuple(i for i in cert) + if cert: + session.cert = tuple(i for i in cert) nb = pynetbox.api(url, token=token) nb.http_session = session try: From bdc87bbb14872b6474c0bd8b615a8946a25aaded Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sun, 12 Sep 2021 22:21:48 -0400 Subject: [PATCH 23/24] ping netbox versions in integration/unit testing --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee65cd663..9c906ccb7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -73,6 +73,7 @@ jobs: version: '3.4' services: netbox: + image: netboxcommunity/netbox:v2.10 ports: - 32768:8080 EOF @@ -92,6 +93,7 @@ jobs: version: '3.4' services: netbox: + image: netboxcommunity/netbox:v2.11 ports: - 32768:8080 EOF @@ -111,6 +113,7 @@ jobs: version: '3.4' services: netbox: + image: netboxcommunity/netbox:v3.0 ports: - 32768:8080 EOF From 4d1b7a1c00b6aa9e6f4fdcae0c6af9db46a7666e Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Sun, 12 Sep 2021 22:22:03 -0400 Subject: [PATCH 24/24] comment out netbox v3.0 testing --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c906ccb7..030d895d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,9 +51,9 @@ jobs: - python-version: 3.6 VERSION: "v2.11" INTEGRATION_TESTS: "v2.11" - - python-version: 3.6 - VERSION: "v3.0" - INTEGRATION_TESTS: "v3.0" + #- python-version: 3.6 + # VERSION: "v3.0" + # INTEGRATION_TESTS: "v3.0" steps: - name: Checkout repo uses: actions/checkout@v2