From 6bb6089999a9ba704e63cb9d4ee41708de45a217 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 22 May 2020 07:59:41 +0200 Subject: [PATCH] Remove more remains of intersight_info. (#396) --- .github/BOTMETA.yml | 4 -- .../fragments/65372-misc-context-manager.yml | 1 - .../targets/intersight_info/aliases | 3 -- .../targets/intersight_info/tasks/main.yml | 37 ------------------- 4 files changed, 45 deletions(-) delete mode 100644 tests/integration/targets/intersight_info/aliases delete mode 100644 tests/integration/targets/intersight_info/tasks/main.yml diff --git a/.github/BOTMETA.yml b/.github/BOTMETA.yml index 07decbb2a0..54837dbe91 100644 --- a/.github/BOTMETA.yml +++ b/.github/BOTMETA.yml @@ -1044,10 +1044,6 @@ files: $modules/remote_management/imc/imc_rest.py: authors: dagwieers labels: cisco - $modules/remote_management/intersight/intersight_info.py: - authors: CiscoUcs dsoper2 - maintainers: movinalot - labels: cisco $modules/remote_management/ipmi/: authors: bgaifullin maintainers: cloudnull diff --git a/changelogs/fragments/65372-misc-context-manager.yml b/changelogs/fragments/65372-misc-context-manager.yml index 94fca3baa6..a44aba8ee6 100644 --- a/changelogs/fragments/65372-misc-context-manager.yml +++ b/changelogs/fragments/65372-misc-context-manager.yml @@ -1,5 +1,4 @@ bugfixes: - spacewalk inventory - improve file handling by using a context manager. - - intersight_rest_api, intersight_info - improve file handling by using a context manager. - one_vm - improve file handling by using a context manager. - postgresql_query - improve file handling by using a context manager. diff --git a/tests/integration/targets/intersight_info/aliases b/tests/integration/targets/intersight_info/aliases deleted file mode 100644 index f1ada40c2c..0000000000 --- a/tests/integration/targets/intersight_info/aliases +++ /dev/null @@ -1,3 +0,0 @@ -# Not enabled, but can be used with Intersight by specifying API keys. -# See tasks/main.yml for examples. -unsupported diff --git a/tests/integration/targets/intersight_info/tasks/main.yml b/tests/integration/targets/intersight_info/tasks/main.yml deleted file mode 100644 index 0aa73be487..0000000000 --- a/tests/integration/targets/intersight_info/tasks/main.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -# Test code for the Cisco Intersight modules -# Copyright 2019, David Soper (@dsoper2) - -- name: Setup API access variables - debug: msg="Setup API keys" - vars: - api_info: &api_info - api_private_key: "{{ api_private_key | default('~/Downloads/SSOSecretKey.txt') }}" - api_key_id: "{{ api_key_id | default('596cc79e5d91b400010d15ad/596cc7945d91b400010d154e/5b6275df3437357030a7795f') }}" - -- name: Get infos for all servers - intersight_info: - <<: *api_info - server_names: - register: result - -- name: Verify info does not report a change - assert: - that: - - result.changed == false - - "'Name' in result.intersight_servers[0]" - - "'Moid' in result.intersight_servers[0]" - -- name: Get info for servers by name - intersight_info: - <<: *api_info - server_names: - - CC7UCS-13-1-1 - register: result2 - -- name: Verify info does not report a change - assert: - that: - - result2.changed == false - - "'Name' in result2.intersight_servers[0]" - - "'Moid' in result2.intersight_servers[0]"