1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/unit/plugins/modules
Mike Moerk 59a9d34250
Remote management modules for OCAPI-based devices. (#5754)
* Remote management modules for OCAPI-based devices.

    Open Composable API (OCAPI) is a REST-based API designed for data center composability. For more information, see https://www.opencompute.org/documents/open-composable-api-for-ocp-2019-06-24-pdf

    This PR introduces ocapi_command and ocapi_info modules.  These are based on the existing redfish_command and redfish_info modules and follow similar patterns.  This initial implementation includes support for the folowing operations:

    - Indicator LED toggling
    - Power state toggling
    - Enclosure reset (reboot)
    - Firmware upload
    - Firmware update
    - Firmware activate
    - Job deletion
    - Job status

    These modules have been tested against Western Digital OpenFlex(tm) Data24 storage enclosures. API reference is at https://documents.westerndigital.com/content/dam/doc-library/en_us/assets/public/western-digital/product/platforms/openflex/reference-architecture-open-composable-api.pdf

* Fix licensing issue for ocapi_utils.py

* PR Feedback

* Apply suggestions from code review

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

* Update plugins/module_utils/ocapi_utils.py

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

* Update plugins/modules/ocapi_info.py

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

* Apply suggestions from code review

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

* PR Feedback

Use six module for urlparse

* Apply suggestions from code review

Documentation fixes.

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

* Fix sanity test line too long error.

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-01-22 17:10:36 +01:00
..
interfaces_file Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
conftest.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) 2022-08-05 12:28:29 +02:00
FakeAnsibleModule.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
FakeXenAPI.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
gitlab.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
hpe_test_utils.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
linode_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
oneview_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
oneview_module_loader.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
rhn_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_alerta_customer.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_apache2_module.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_apk.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_archive.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_access_key.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_pipeline_key_pair.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_pipeline_known_host.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_pipeline_variable.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_campfire.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_circonus_annotation.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_cpanm.py cpanm: using CmdRunner (#5485) 2022-11-07 20:15:00 +01:00
test_datadog_downtime.py.disabled Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_discord.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_dnsimple.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_dnsimple_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gconftool2.py gconftool2: refactored to use ModuleHelper + CmdRunner (#5545) 2022-11-15 21:02:45 +01:00
test_gconftool2_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gem.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_github_repo.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_deploy_key.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_group.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_hook.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_project.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_protected_branch.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_runner.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_user.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_homebrew.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_homebrew_cask.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_icinga2_feature.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ipa_otpconfig.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ipa_otptoken.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ipa_pwpolicy.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_java_keystore.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_jenkins_build.py Fix a logical flaw when deleting a build in the jenkins_build module (#5514) 2022-11-10 21:18:01 +01:00
test_jenkins_plugin.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_authentication.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_client.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_client_rolemapping.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_clientscope.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_identity_provider.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_realm.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_realm_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_role.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_user_federation.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_linode.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_linode_v4.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_lxca_cmms.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_lxca_nodes.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_macports.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_maven_artifact.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_modprobe.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_monit.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_nmcli.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_npm.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ocapi_command.py Remote management modules for OCAPI-based devices. (#5754) 2023-01-22 17:10:36 +01:00
test_ocapi_info.py Remote management modules for OCAPI-based devices. (#5754) 2023-01-22 17:10:36 +01:00
test_oneview_datacenter_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_enclosure_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_ethernet_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_ethernet_network_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_fc_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_fc_network_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_fcoe_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_fcoe_network_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_logical_interconnect_group.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_logical_interconnect_group_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_network_set.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_network_set_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_san_manager.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_oneview_san_manager_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_opkg.py opkg: refactor module to use StateModuleHelper and CmdRunner (#5718) 2023-01-12 20:42:38 +01:00
test_pacman.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pacman_key.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pagerduty.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pagerduty_alert.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pagerduty_change.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pamd.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_parted.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pkgin.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pmem.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_org.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_org_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_user.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_user_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_proxmox_kvm.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_proxmox_snap.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_proxmox_tasks_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_puppet.py puppet: refactored to use CmdRunner (#5612) 2022-12-14 21:30:03 +01:00
test_redhat_subscription.py redhat_subscription: Add support for Red Hat API token (#5725) 2023-01-05 21:36:07 +01:00
test_redis_data.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_redis_data_incr.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_redis_data_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_redis_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_rhn_channel.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_rhn_register.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_rhsm_release.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_rpm_ostree_pkg.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_scaleway_compute_private_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_scaleway_private_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_slack.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_solaris_zone.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ss_3par_cpg.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_statsd.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_sysupgrade.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_terraform.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ufw.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_wdc_redfish_command.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_wdc_redfish_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_xcc_redfish_command.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_xenserver_guest_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_xenserver_guest_powerstate.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_xfconf.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_xfconf_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
utils.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
xenserver_common.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
xenserver_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00