├── .codeclimate.yml ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .rubocop.yml ├── .travis.yml ├── .yardopts ├── Berksfile ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Dockerfile ├── EXAMPLES.md ├── Gemfile ├── Guardfile ├── LICENSE ├── README.md ├── Rakefile ├── TESTING.md ├── attributes └── default.rb ├── chefignore ├── endpoints-support.md ├── examples ├── README.md ├── connection_template.rb ├── custom_ruby_resources.rb ├── datacenter.rb ├── demo │ ├── infrastructure_provisioning_with_i3s.rb │ └── infrastructure_provisioning_with_storage.rb ├── drive_enclosure.rb ├── enclosure.rb ├── enclosure_group.rb ├── ethernet_network.rb ├── event.rb ├── fabric.rb ├── fc_network.rb ├── fcoe_network.rb ├── firmware.rb ├── hypervisor_cluster_profile.rb ├── hypervisor_manager.rb ├── id_pool.rb ├── image_streamer │ ├── artifact_bundle.rb │ ├── deployment_plan.rb │ ├── golden_image.rb │ ├── os_build_plan.rb │ ├── plan_script.rb │ └── server_profile_deploy.rb ├── interconnect.rb ├── logical_enclosure.rb ├── logical_interconnect.rb ├── logical_interconnect_api_1200.rb ├── logical_interconnect_group.rb ├── logical_interconnect_group_synergy.rb ├── logical_switch.rb ├── logical_switch_group.rb ├── managed_san.rb ├── network_set.rb ├── oneview_resource.rb ├── power_device.rb ├── rack.rb ├── san_manager.rb ├── sas_interconnect.rb ├── sas_logical_interconnect.rb ├── sas_logical_interconnect_group.rb ├── scope.rb ├── server_certificate.rb ├── server_hardware.rb ├── server_hardware_type.rb ├── server_profile.rb ├── server_profile_template.rb ├── server_profiles_with_volume_attachments.rb ├── server_profiles_with_volume_attachments_api500.rb ├── storage_pool.rb ├── storage_pool_api300.rb ├── storage_system.rb ├── storage_system_api300.rb ├── switch.rb ├── unmanaged_device.rb ├── uplink_set.rb ├── user.rb ├── volume.rb ├── volume_api500.rb ├── volume_attachment.rb ├── volume_template.rb └── volume_template_api300.rb ├── libraries ├── matchers.rb ├── oneview_helper.rb ├── oneview_resource_base.rb ├── resource_provider.rb └── resource_providers │ ├── api1000.rb │ ├── api1000 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api1200.rb │ ├── api1200 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api1600.rb │ ├── api1600 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api1800.rb │ ├── api1800 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api200.rb │ ├── api200 │ ├── connection_template_provider.rb │ ├── datacenter_provider.rb │ ├── enclosure_group_provider.rb │ ├── enclosure_provider.rb │ ├── ethernet_network_provider.rb │ ├── event_provider.rb │ ├── fc_network_provider.rb │ ├── fcoe_network_provider.rb │ ├── firmware_driver_provider.rb │ ├── generic_resource_provider.rb │ ├── id_pool_provider.rb │ ├── interconnect_provider.rb │ ├── logical_enclosure_provider.rb │ ├── logical_interconnect_group_provider.rb │ ├── logical_interconnect_provider.rb │ ├── logical_switch_group_provider.rb │ ├── logical_switch_provider.rb │ ├── managed_san_provider.rb │ ├── network_set_provider.rb │ ├── power_device_provider.rb │ ├── rack_provider.rb │ ├── san_manager_provider.rb │ ├── server_hardware_provider.rb │ ├── server_hardware_type_provider.rb │ ├── server_profile_provider.rb │ ├── server_profile_template_provider.rb │ ├── storage_pool_provider.rb │ ├── storage_system_provider.rb │ ├── switch_provider.rb │ ├── unmanaged_device_provider.rb │ ├── uplink_set_provider.rb │ ├── user_provider.rb │ ├── volume_attachment_provider.rb │ ├── volume_provider.rb │ └── volume_template_provider.rb │ ├── api2000.rb │ ├── api2000 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api2200.rb │ ├── api2200 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api2400.rb │ ├── api2400 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api2600.rb │ ├── api2600 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api2800.rb │ ├── api2800 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api300.rb │ ├── api300 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── datacenter_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── event_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── firmware_driver_provider.rb │ │ ├── generic_resource_provider.rb │ │ ├── id_pool_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── logical_switch_group_provider.rb │ │ ├── logical_switch_provider.rb │ │ ├── managed_san_provider.rb │ │ ├── network_set_provider.rb │ │ ├── power_device_provider.rb │ │ ├── rack_provider.rb │ │ ├── san_manager_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── switch_provider.rb │ │ ├── unmanaged_device_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── user_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── datacenter_provider.rb │ │ ├── drive_enclosure_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── event_provider.rb │ │ ├── fabric_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── firmware_driver_provider.rb │ │ ├── generic_resource_provider.rb │ │ ├── id_pool_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── managed_san_provider.rb │ │ ├── network_set_provider.rb │ │ ├── power_device_provider.rb │ │ ├── rack_provider.rb │ │ ├── san_manager_provider.rb │ │ ├── sas_interconnect_provider.rb │ │ ├── sas_logical_interconnect_group_provider.rb │ │ ├── sas_logical_interconnect_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── unmanaged_device_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── user_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api3000.rb │ ├── api3000 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api500.rb │ ├── api500 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── datacenter_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── event_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── firmware_driver_provider.rb │ │ ├── id_pool_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── logical_switch_group_provider.rb │ │ ├── logical_switch_provider.rb │ │ ├── managed_san_provider.rb │ │ ├── network_set_provider.rb │ │ ├── power_device_provider.rb │ │ ├── rack_provider.rb │ │ ├── san_manager_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── switch_provider.rb │ │ ├── unmanaged_device_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── user_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── datacenter_provider.rb │ │ ├── drive_enclosure_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── event_provider.rb │ │ ├── fabric_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── firmware_driver_provider.rb │ │ ├── id_pool_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── managed_san_provider.rb │ │ ├── network_set_provider.rb │ │ ├── power_device_provider.rb │ │ ├── rack_provider.rb │ │ ├── san_manager_provider.rb │ │ ├── sas_interconnect_provider.rb │ │ ├── sas_logical_interconnect_group_provider.rb │ │ ├── sas_logical_interconnect_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── unmanaged_device_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── user_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api600.rb │ ├── api600 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── logical_switch_group_provider.rb │ │ ├── logical_switch_provider.rb │ │ ├── managed_san_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── switch_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── managed_san_provider.rb │ │ ├── network_set_provider.rb │ │ ├── sas_interconnect_provider.rb │ │ ├── sas_logical_interconnect_group_provider.rb │ │ ├── sas_logical_interconnect_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── api800.rb │ ├── api800 │ ├── c7000.rb │ ├── c7000 │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── synergy.rb │ └── synergy │ │ ├── connection_template_provider.rb │ │ ├── enclosure_group_provider.rb │ │ ├── enclosure_provider.rb │ │ ├── ethernet_network_provider.rb │ │ ├── fc_network_provider.rb │ │ ├── fcoe_network_provider.rb │ │ ├── hypervisor_cluster_profile_provider.rb │ │ ├── hypervisor_manager_provider.rb │ │ ├── interconnect_provider.rb │ │ ├── logical_enclosure_provider.rb │ │ ├── logical_interconnect_group_provider.rb │ │ ├── logical_interconnect_provider.rb │ │ ├── network_set_provider.rb │ │ ├── scope_provider.rb │ │ ├── server_certificate_provider.rb │ │ ├── server_hardware_provider.rb │ │ ├── server_hardware_type_provider.rb │ │ ├── server_profile_provider.rb │ │ ├── server_profile_template_provider.rb │ │ ├── storage_pool_provider.rb │ │ ├── storage_system_provider.rb │ │ ├── uplink_set_provider.rb │ │ ├── volume_attachment_provider.rb │ │ ├── volume_provider.rb │ │ └── volume_template_provider.rb │ ├── helpers │ ├── patch_operations.rb │ ├── port_actions.rb │ ├── reapply_configuration_action.rb │ └── refresh_actions.rb │ ├── image_streamer.rb │ └── image_streamer │ ├── api1000.rb │ ├── api1000 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb │ ├── api1020.rb │ ├── api1020 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb │ ├── api1600.rb │ ├── api1600 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb │ ├── api2000.rb │ ├── api2000 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb │ ├── api2010.rb │ ├── api2010 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb │ ├── api2020.rb │ ├── api2020 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb │ ├── api300.rb │ ├── api300 │ ├── artifact_bundle_provider.rb │ ├── deployment_plan_provider.rb │ ├── golden_image_provider.rb │ ├── os_build_plan_provider.rb │ └── plan_script_provider.rb │ ├── api500.rb │ ├── api500 │ ├── artifact_bundle_provider.rb │ ├── deployment_plan_provider.rb │ ├── golden_image_provider.rb │ ├── os_build_plan_provider.rb │ └── plan_script_provider.rb │ ├── api600.rb │ ├── api600 │ ├── artifact_bundle_provider.rb │ ├── deployment_plan_provider.rb │ ├── golden_image_provider.rb │ ├── os_build_plan_provider.rb │ └── plan_script_provider.rb │ ├── api800.rb │ └── api800 │ ├── artifact_bundle_provider.rb │ └── deployment_plan_provider.rb ├── metadata.rb ├── resources ├── connection_template.rb ├── datacenter.rb ├── drive_enclosure.rb ├── enclosure.rb ├── enclosure_group.rb ├── ethernet_network.rb ├── event.rb ├── fabric.rb ├── fc_network.rb ├── fcoe_network.rb ├── firmware.rb ├── hypervisor_cluster_profile.rb ├── hypervisor_manager.rb ├── id_pool.rb ├── image_streamer │ ├── artifact_bundle.rb │ ├── deployment_plan.rb │ ├── golden_image.rb │ ├── os_build_plan.rb │ └── plan_script.rb ├── interconnect.rb ├── logical_enclosure.rb ├── logical_interconnect.rb ├── logical_interconnect_group.rb ├── logical_switch.rb ├── logical_switch_group.rb ├── managed_san.rb ├── network_set.rb ├── power_device.rb ├── rack.rb ├── resource.rb ├── san_manager.rb ├── sas_interconnect.rb ├── sas_logical_interconnect.rb ├── sas_logical_interconnect_group.rb ├── scope.rb ├── server_certificate.rb ├── server_hardware.rb ├── server_hardware_type.rb ├── server_profile.rb ├── server_profile_template.rb ├── storage_pool.rb ├── storage_system.rb ├── switch.rb ├── unmanaged_device.rb ├── uplink_set.rb ├── user.rb ├── volume.rb ├── volume_attachment.rb └── volume_template.rb └── spec ├── fixtures ├── cookbooks │ ├── image_streamer_test_api1000 │ │ ├── attributes │ │ │ └── default.rb │ │ └── metadata.rb │ ├── image_streamer_test_api1020 │ │ ├── attributes │ │ │ └── default.rb │ │ └── metadata.rb │ ├── image_streamer_test_api1600 │ │ ├── attributes │ │ │ └── default.rb │ │ └── metadata.rb │ ├── image_streamer_test_api300 │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── artifact_bundle_backup.rb │ │ │ ├── artifact_bundle_backup_from_file.rb │ │ │ ├── artifact_bundle_create_if_missing.rb │ │ │ ├── artifact_bundle_delete.rb │ │ │ ├── artifact_bundle_download.rb │ │ │ ├── artifact_bundle_download_backup.rb │ │ │ ├── artifact_bundle_extract.rb │ │ │ ├── artifact_bundle_extract_backup.rb │ │ │ ├── artifact_bundle_update_name.rb │ │ │ ├── artifact_bundle_upload.rb │ │ │ ├── deployment_plan_create.rb │ │ │ ├── deployment_plan_create_if_missing.rb │ │ │ ├── deployment_plan_delete.rb │ │ │ ├── golden_image_create.rb │ │ │ ├── golden_image_create_if_missing.rb │ │ │ ├── golden_image_delete.rb │ │ │ ├── golden_image_download.rb │ │ │ ├── golden_image_download_details_archive.rb │ │ │ ├── golden_image_upload_if_missing.rb │ │ │ ├── os_build_plan_create.rb │ │ │ ├── os_build_plan_create_if_missing.rb │ │ │ ├── os_build_plan_delete.rb │ │ │ ├── plan_script_create.rb │ │ │ ├── plan_script_create_if_missing.rb │ │ │ └── plan_script_delete.rb │ ├── image_streamer_test_api500 │ │ ├── attributes │ │ │ └── default.rb │ │ └── metadata.rb │ ├── image_streamer_test_api600 │ │ ├── attributes │ │ │ └── default.rb │ │ └── metadata.rb │ ├── image_streamer_test_api800 │ │ ├── attributes │ │ │ └── default.rb │ │ └── metadata.rb │ ├── oneview_test │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── connection_template_reset.rb │ │ │ ├── connection_template_update.rb │ │ │ ├── datacenter_add.rb │ │ │ ├── datacenter_add_if_missing.rb │ │ │ ├── datacenter_remove.rb │ │ │ ├── default.rb │ │ │ ├── enclosure_add.rb │ │ │ ├── enclosure_group_create.rb │ │ │ ├── enclosure_group_create_if_missing.rb │ │ │ ├── enclosure_group_set_script.rb │ │ │ ├── enclosure_patch.rb │ │ │ ├── enclosure_reconfigure.rb │ │ │ ├── enclosure_refresh.rb │ │ │ ├── enclosure_remove.rb │ │ │ ├── ethernet_network_create.rb │ │ │ ├── ethernet_network_create_if_missing.rb │ │ │ ├── ethernet_network_delete.rb │ │ │ ├── ethernet_network_reset_connection_template.rb │ │ │ ├── event_create.rb │ │ │ ├── fc_network_create.rb │ │ │ ├── fc_network_create_if_missing.rb │ │ │ ├── fc_network_delete.rb │ │ │ ├── fc_network_reset_connection_template.rb │ │ │ ├── fcoe_network_create.rb │ │ │ ├── fcoe_network_create_if_missing.rb │ │ │ ├── fcoe_network_delete.rb │ │ │ ├── fcoe_network_reset_connection_template.rb │ │ │ ├── firmware_add.rb │ │ │ ├── firmware_create_custom_spp.rb │ │ │ ├── firmware_create_custom_spp_invalid_hotfix.rb │ │ │ ├── firmware_create_custom_spp_invalid_spp.rb │ │ │ ├── firmware_remove.rb │ │ │ ├── id_pool_allocate_count.rb │ │ │ ├── id_pool_allocate_list.rb │ │ │ ├── id_pool_collect_ids.rb │ │ │ ├── id_pool_update.rb │ │ │ ├── interconnect_reset.rb │ │ │ ├── interconnect_reset_port_protection.rb │ │ │ ├── interconnect_set_power_state.rb │ │ │ ├── interconnect_set_power_state_invalid.rb │ │ │ ├── interconnect_set_uid_light.rb │ │ │ ├── interconnect_set_uid_light_invalid.rb │ │ │ ├── interconnect_update_port.rb │ │ │ ├── interconnect_update_port_invalid.rb │ │ │ ├── logical_enclosure_create.rb │ │ │ ├── logical_enclosure_create_if_missing.rb │ │ │ ├── logical_enclosure_create_support_dump.rb │ │ │ ├── logical_enclosure_delete.rb │ │ │ ├── logical_enclosure_reconfigure.rb │ │ │ ├── logical_enclosure_set_script.rb │ │ │ ├── logical_enclosure_update_from_group.rb │ │ │ ├── logical_interconnect_activate_firmware.rb │ │ │ ├── logical_interconnect_add_interconnect.rb │ │ │ ├── logical_interconnect_group_create.rb │ │ │ ├── logical_interconnect_group_create_if_missing.rb │ │ │ ├── logical_interconnect_group_delete.rb │ │ │ ├── logical_interconnect_group_load_resource_with_properties.rb │ │ │ ├── logical_interconnect_reapply_configuration.rb │ │ │ ├── logical_interconnect_remove_interconnect.rb │ │ │ ├── logical_interconnect_stage_firmware.rb │ │ │ ├── logical_interconnect_update_ethernet_settings.rb │ │ │ ├── logical_interconnect_update_firmware.rb │ │ │ ├── logical_interconnect_update_from_group.rb │ │ │ ├── logical_interconnect_update_internal_networks.rb │ │ │ ├── logical_interconnect_update_port_monitor.rb │ │ │ ├── logical_interconnect_update_port_monitor_data.rb │ │ │ ├── logical_interconnect_update_port_monitor_data_and_property.rb │ │ │ ├── logical_interconnect_update_qos_configuration.rb │ │ │ ├── logical_interconnect_update_settings.rb │ │ │ ├── logical_interconnect_update_snmp_configuration.rb │ │ │ ├── logical_interconnect_update_telemetry_configuration.rb │ │ │ ├── logical_switch_create.rb │ │ │ ├── logical_switch_create_if_missing.rb │ │ │ ├── logical_switch_delete.rb │ │ │ ├── logical_switch_group_create.rb │ │ │ ├── logical_switch_group_create_if_missing.rb │ │ │ ├── logical_switch_group_delete.rb │ │ │ ├── logical_switch_refresh.rb │ │ │ ├── managed_san_refresh.rb │ │ │ ├── managed_san_set_policy.rb │ │ │ ├── managed_san_set_public_attributes.rb │ │ │ ├── network_set_create.rb │ │ │ ├── network_set_create_if_missing.rb │ │ │ ├── network_set_delete.rb │ │ │ ├── network_set_load_resource_with_properties.rb │ │ │ ├── network_set_reset_connection_template.rb │ │ │ ├── power_device_add.rb │ │ │ ├── power_device_add_if_missing.rb │ │ │ ├── power_device_discover.rb │ │ │ ├── power_device_discover_auto_import_certificate.rb │ │ │ ├── power_device_refresh.rb │ │ │ ├── power_device_remove.rb │ │ │ ├── power_device_remove_ipdu.rb │ │ │ ├── power_device_set_power_state_off.rb │ │ │ ├── power_device_set_power_state_on.rb │ │ │ ├── power_device_set_uid_state_off.rb │ │ │ ├── power_device_set_uid_state_on.rb │ │ │ ├── rack_add.rb │ │ │ ├── rack_add_if_missing.rb │ │ │ ├── rack_add_to_rack.rb │ │ │ ├── rack_remove.rb │ │ │ ├── rack_remove_from_rack.rb │ │ │ ├── resource_create.rb │ │ │ ├── resource_create_if_missing.rb │ │ │ ├── resource_delete.rb │ │ │ ├── san_manager_add.rb │ │ │ ├── san_manager_add_if_missing.rb │ │ │ ├── san_manager_remove.rb │ │ │ ├── server_hardware_add_if_missing.rb │ │ │ ├── server_hardware_refresh.rb │ │ │ ├── server_hardware_remove.rb │ │ │ ├── server_hardware_set_power_state.rb │ │ │ ├── server_hardware_type_edit.rb │ │ │ ├── server_hardware_type_remove.rb │ │ │ ├── server_hardware_update_ilo_firmware.rb │ │ │ ├── server_profile_add_volume_attachments.rb │ │ │ ├── server_profile_create.rb │ │ │ ├── server_profile_create_from_template.rb │ │ │ ├── server_profile_create_if_missing.rb │ │ │ ├── server_profile_create_volume_attachments.rb │ │ │ ├── server_profile_create_wrong_volume_attachments.rb │ │ │ ├── server_profile_delete.rb │ │ │ ├── server_profile_properties.rb │ │ │ ├── server_profile_template_add_volume_attachments.rb │ │ │ ├── server_profile_template_create.rb │ │ │ ├── server_profile_template_create_if_missing.rb │ │ │ ├── server_profile_template_create_volume_attachments.rb │ │ │ ├── server_profile_template_create_wrong_volume_attachments.rb │ │ │ ├── server_profile_template_delete.rb │ │ │ ├── server_profile_template_properties.rb │ │ │ ├── server_profile_update_from_template.rb │ │ │ ├── storage_pool_add_if_missing_with_ip.rb │ │ │ ├── storage_pool_remove.rb │ │ │ ├── storage_system_add.rb │ │ │ ├── storage_system_add_if_missing.rb │ │ │ ├── storage_system_edit_credentials.rb │ │ │ ├── storage_system_refresh.rb │ │ │ ├── storage_system_remove.rb │ │ │ ├── switch_none.rb │ │ │ ├── switch_remove.rb │ │ │ ├── unmanaged_device_add.rb │ │ │ ├── unmanaged_device_add_if_missing.rb │ │ │ ├── unmanaged_device_remove.rb │ │ │ ├── uplink_set_create.rb │ │ │ ├── uplink_set_create_if_missing.rb │ │ │ ├── uplink_set_delete.rb │ │ │ ├── uplink_set_load_resource_with_properties.rb │ │ │ ├── user_create.rb │ │ │ ├── user_create_if_missing.rb │ │ │ ├── user_delete.rb │ │ │ ├── volume_attachment_repair.rb │ │ │ ├── volume_create.rb │ │ │ ├── volume_create_by_template.rb │ │ │ ├── volume_create_if_missing.rb │ │ │ ├── volume_create_snapshot.rb │ │ │ ├── volume_create_snapshot_invalid.rb │ │ │ ├── volume_delete.rb │ │ │ ├── volume_delete_snapshot.rb │ │ │ ├── volume_repair.rb │ │ │ ├── volume_template_create.rb │ │ │ ├── volume_template_create_if_missing.rb │ │ │ └── volume_template_delete.rb │ ├── oneview_test_api1600_c7000 │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ └── hypervisor_cluster_profile_delete.rb │ ├── oneview_test_api1800_c7000 │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── ethernet_network_delete_bulk.rb │ │ │ ├── fc_network_delete_bulk.rb │ │ │ ├── fcoe_network_delete_bulk.rb │ │ │ └── logical_interconnect_update_igmp_settings.rb │ ├── oneview_test_api2000_c7000 │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ └── logical_interconnect_validate_bulk_inconsistency.rb │ ├── oneview_test_api2400_c7000 │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ └── logical_interconnect_update_port_flap_settings.rb │ ├── oneview_test_api300_synergy │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── drive_enclosure_hard_reset.rb │ │ │ ├── drive_enclosure_refresh.rb │ │ │ ├── drive_enclosure_set_power_state.rb │ │ │ ├── drive_enclosure_set_power_state_invalid.rb │ │ │ ├── drive_enclosure_set_uid_light.rb │ │ │ ├── drive_enclosure_set_uid_light_invalid.rb │ │ │ ├── enclosure_add_to_scopes.rb │ │ │ ├── enclosure_group_create.rb │ │ │ ├── enclosure_remove_from_scopes.rb │ │ │ ├── enclosure_replace_scopes.rb │ │ │ ├── ethernet_network_add_to_scopes.rb │ │ │ ├── ethernet_network_create.rb │ │ │ ├── ethernet_network_patch.rb │ │ │ ├── ethernet_network_remove_from_scopes.rb │ │ │ ├── ethernet_network_replace_scopes.rb │ │ │ ├── event_create.rb │ │ │ ├── fabric_set_reserved_vlan_range.rb │ │ │ ├── fc_network_add_to_scopes.rb │ │ │ ├── fc_network_patch.rb │ │ │ ├── fc_network_remove_from_scopes.rb │ │ │ ├── fc_network_replace_scopes.rb │ │ │ ├── fcoe_network_add_to_scopes.rb │ │ │ ├── fcoe_network_patch.rb │ │ │ ├── fcoe_network_remove_from_scopes.rb │ │ │ ├── fcoe_network_replace_scopes.rb │ │ │ ├── logical_enclosure_update_from_group.rb │ │ │ ├── logical_interconnect_add_to_scopes.rb │ │ │ ├── logical_interconnect_group_add_to_scopes.rb │ │ │ ├── logical_interconnect_group_load_resource_with_synergy_properties.rb │ │ │ ├── logical_interconnect_group_patch.rb │ │ │ ├── logical_interconnect_group_remove_from_scopes.rb │ │ │ ├── logical_interconnect_group_replace_scopes.rb │ │ │ ├── logical_interconnect_patch.rb │ │ │ ├── logical_interconnect_remove_from_scopes.rb │ │ │ ├── logical_interconnect_replace_scopes.rb │ │ │ ├── logical_switch_add_to_scopes.rb │ │ │ ├── logical_switch_group_add_to_scopes.rb │ │ │ ├── logical_switch_group_patch.rb │ │ │ ├── logical_switch_group_remove_from_scopes.rb │ │ │ ├── logical_switch_group_replace_scopes.rb │ │ │ ├── logical_switch_patch.rb │ │ │ ├── logical_switch_remove_from_scopes.rb │ │ │ ├── logical_switch_replace_scopes.rb │ │ │ ├── network_set_add_to_scopes.rb │ │ │ ├── network_set_patch.rb │ │ │ ├── network_set_remove_from_scopes.rb │ │ │ ├── network_set_replace_scopes.rb │ │ │ ├── resource_create.rb │ │ │ ├── sas_interconnect_hard_reset.rb │ │ │ ├── sas_interconnect_refresh.rb │ │ │ ├── sas_interconnect_reset.rb │ │ │ ├── sas_interconnect_set_power_state.rb │ │ │ ├── sas_interconnect_set_power_state_invalid.rb │ │ │ ├── sas_interconnect_set_uid_light.rb │ │ │ ├── sas_interconnect_set_uid_light_invalid.rb │ │ │ ├── sas_logical_interconnect_activate_firmware.rb │ │ │ ├── sas_logical_interconnect_group_create.rb │ │ │ ├── sas_logical_interconnect_group_create_if_missing.rb │ │ │ ├── sas_logical_interconnect_group_delete.rb │ │ │ ├── sas_logical_interconnect_reapply_configuration.rb │ │ │ ├── sas_logical_interconnect_replace_drive_enclosure.rb │ │ │ ├── sas_logical_interconnect_stage_firmware.rb │ │ │ ├── sas_logical_interconnect_update_firmware.rb │ │ │ ├── sas_logical_interconnect_update_from_group.rb │ │ │ ├── scope_change_resource_assignments.rb │ │ │ ├── scope_create.rb │ │ │ ├── scope_create_if_missing.rb │ │ │ ├── scope_delete.rb │ │ │ ├── server_hardware_add_to_scopes.rb │ │ │ ├── server_hardware_patch.rb │ │ │ ├── server_hardware_remove_from_scopes.rb │ │ │ ├── server_hardware_replace_scopes.rb │ │ │ ├── server_profile_properties.rb │ │ │ ├── switch_add_to_scopes.rb │ │ │ ├── switch_patch.rb │ │ │ ├── switch_remove_from_scopes.rb │ │ │ ├── switch_replace_scopes.rb │ │ │ ├── switch_update_port.rb │ │ │ └── switch_update_port_invalid.rb │ ├── oneview_test_api500_synergy │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── interconnect_reapply_configuration.rb │ │ │ ├── server_profile_template_from_sp.rb │ │ │ ├── server_profile_template_properties.rb │ │ │ ├── storage_pool_add_for_management.rb │ │ │ ├── storage_pool_add_if_missing.rb │ │ │ ├── storage_pool_refresh.rb │ │ │ ├── storage_pool_remove.rb │ │ │ ├── storage_pool_remove_from_management.rb │ │ │ ├── storage_pool_update.rb │ │ │ ├── storage_system_refresh.rb │ │ │ ├── volume_add_if_missing.rb │ │ │ ├── volume_create.rb │ │ │ ├── volume_create_by_template.rb │ │ │ ├── volume_create_from_snapshot.rb │ │ │ ├── volume_create_if_missing.rb │ │ │ ├── volume_delete.rb │ │ │ ├── volume_delete_from_appliance_only.rb │ │ │ ├── volume_template_create.rb │ │ │ └── volume_template_create_if_missing.rb │ ├── oneview_test_api600_c7000 │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── server_certificate_import_certificate.rb │ │ │ ├── server_certificate_remove_certificate.rb │ │ │ └── server_certificate_update_certificate.rb │ ├── oneview_test_api600_synergy │ │ ├── attributes │ │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ │ ├── enclosure_create_csr_request.rb │ │ │ ├── enclosure_import_certificate.rb │ │ │ ├── scope_modify_resource_scopes_assignments.rb │ │ │ ├── scope_replace_resource_scopes_assignments.rb │ │ │ └── server_hardware_add_multiple_servers.rb │ └── oneview_test_api800_c7000 │ │ ├── attributes │ │ └── default.rb │ │ ├── metadata.rb │ │ └── recipes │ │ └── hypervisor_manager_update_registration.rb └── fake_resource.rb ├── spec_helper.rb └── unit ├── libraries ├── oneview_helper_spec.rb ├── oneview_resource_base_spec.rb └── resource_provider_spec.rb ├── resources ├── connection_template │ ├── reset_connection_template_spec.rb │ └── update_spec.rb ├── datacenter │ ├── add_if_missing_spec.rb │ ├── add_spec.rb │ └── remove_spec.rb ├── drive_enclosure │ ├── hard_reset_spec.rb │ ├── refresh_spec.rb │ ├── set_power_state_spec.rb │ └── set_uid_light_spec.rb ├── enclosure │ ├── add_spec.rb │ ├── add_to_scopes_spec.rb │ ├── create_csr_request_spec.rb │ ├── import_certificate_spec.rb │ ├── patch_spec.rb │ ├── reconfigure_spec.rb │ ├── refresh_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── remove_spec.rb │ └── replace_scopes_spec.rb ├── enclosure_group │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── set_script_spec.rb ├── ethernet_network │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── replace_scopes_spec.rb │ ├── reset_connection_template_spec.rb │ └── spec_delete_bulk.rb ├── event │ └── create_spec.rb ├── fabric │ └── fabric_set_reserved_vlan_range_spec.rb ├── fc_network │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── replace_scopes_spec.rb │ ├── reset_connection_template_spec.rb │ └── spec_delete_bulk.rb ├── fcoe_network │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── replace_scopes_spec.rb │ ├── reset_connection_template_spec.rb │ └── spec_delete_bulk.rb ├── firmware │ ├── add_spec.rb │ ├── create_custom_spp_spec.rb │ └── remove_spec.rb ├── hypervisor_cluster_profile │ └── delete_spec.rb ├── hypervisor_manager │ └── update_registration_spec.rb ├── id_pool │ ├── allocate_count_spec.rb │ ├── allocate_list_spec.rb │ ├── collect_ids_spec.rb │ └── update_spec.rb ├── interconnect │ ├── reapply_configuration_spec.rb │ ├── reset_port_protection_spec.rb │ ├── reset_spec.rb │ ├── set_power_state_spec.rb │ ├── set_uid_light_spec.rb │ └── update_port_spec.rb ├── logical_enclosure │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── create_support_dump_spec.rb │ ├── delete_spec.rb │ ├── reconfigure_spec.rb │ ├── set_script_spec.rb │ └── update_from_group_spec.rb ├── logical_interconnect │ ├── activate_firmware_spec.rb │ ├── add_interconnect_spec.rb │ ├── add_to_scopes_spec.rb │ ├── patch_spec.rb │ ├── reapply_configuration_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── remove_interconnect_spec.rb │ ├── replace_scopes_spec.rb │ ├── stage_firmware_spec.rb │ ├── update_ethernet_settings_spec.rb │ ├── update_firmware_spec.rb │ ├── update_from_group_spec.rb │ ├── update_igmp_settings_spec.rb │ ├── update_internal_networks_spec.rb │ ├── update_port_flap_settings_spec.rb │ ├── update_port_monitor_spec.rb │ ├── update_qos_configuration_spec.rb │ ├── update_settings_spec.rb │ ├── update_snmp_configuration_spec.rb │ ├── update_telemetry_configuration_spec.rb │ └── validate_bulk_inconsistency_spec.rb ├── logical_interconnect_group │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── load_resource_with_properties_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ └── replace_scopes_spec.rb ├── logical_switch │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── patch_spec.rb │ ├── refresh_spec.rb │ ├── remove_from_scopes_spec.rb │ └── replace_scopes_spec.rb ├── logical_switch_group │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ └── replace_scopes_spec.rb ├── managed_san │ ├── refresh_spec.rb │ ├── set_policy_spec.rb │ └── set_public_attributes_spec.rb ├── matchers_spec.rb ├── network_set │ ├── add_to_scopes_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── load_resource_with_properties_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── replace_scopes_spec.rb │ └── reset_connection_template_spec.rb ├── power_device │ ├── add_if_missing_spec.rb │ ├── add_spec.rb │ ├── discover_spec.rb │ ├── refresh_spec.rb │ ├── remove_spec.rb │ ├── set_power_state_spec.rb │ └── set_uid_state_spec.rb ├── rack │ ├── add_if_missing_spec.rb │ ├── add_spec.rb │ ├── add_to_rack_spec.rb │ ├── remove_from_rack_spec.rb │ └── remove_spec.rb ├── resource │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb ├── san_manager │ ├── add_if_missing_spec.rb │ ├── add_spec.rb │ └── remove_spec.rb ├── sas_interconnect │ ├── refresh_spec.rb │ ├── reset_spec.rb │ ├── set_power_state_spec.rb │ └── set_uid_light_spec.rb ├── sas_logical_interconnect │ ├── activate_firmware_spec.rb │ ├── reapply_configuration_spec.rb │ ├── replace_drive_enclosure_spec.rb │ ├── stage_firmware_spec.rb │ ├── update_firmware_spec.rb │ └── update_from_group_spec.rb ├── sas_logical_interconnect_group │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb ├── scope │ ├── change_resource_assignments_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── modify_resource_scopes_assignments_spec.rb │ └── replace_resource_scope_assignments_spec.rb ├── server_certificate │ ├── import_certificate_spec.rb │ ├── remove_certificate_spec.rb │ └── update_certificate_spec.rb ├── server_hardware │ ├── add_if_missing_spec.rb │ ├── add_multiple_servers_spec.rb │ ├── add_to_scopes_spec.rb │ ├── patch_spec.rb │ ├── refresh_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── remove_spec.rb │ ├── replace_scopes_spec.rb │ ├── set_power_state_spec.rb │ └── update_ilo_firmware_spec.rb ├── server_hardware_type │ ├── edit_spec.rb │ └── remove_spec.rb ├── server_profile │ ├── create_from_template_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── properties_spec.rb │ ├── update_from_template_spec.rb │ └── with_volume_attachments_spec.rb ├── server_profile_template │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── from_sp_spec.rb │ ├── properties_spec.rb │ └── with_volume_attachments_spec.rb ├── storage_pool │ ├── add_for_management_spec.rb │ ├── add_if_missing_spec.rb │ ├── refresh_spec.rb │ ├── remove_from_management_spec.rb │ ├── remove_spec.rb │ └── update_spec.rb ├── storage_system │ ├── add_if_missing_spec.rb │ ├── add_spec.rb │ ├── edit_credentials_spec.rb │ ├── refresh_spec.rb │ └── remove_spec.rb ├── switch │ ├── add_to_scopes_spec.rb │ ├── none_spec.rb │ ├── patch_spec.rb │ ├── remove_from_scopes_spec.rb │ ├── remove_spec.rb │ ├── replace_scopes_spec.rb │ └── update_port_spec.rb ├── unmanaged_device │ ├── add_if_missing_spec.rb │ ├── add_spec.rb │ └── remove_spec.rb ├── uplink_set │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ └── load_resource_with_properties_spec.rb ├── user │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb ├── volume │ ├── add_if_missing_spec.rb │ ├── create_by_template_spec.rb │ ├── create_from_snapshot_spec.rb │ ├── create_if_missing_spec.rb │ ├── create_snapshot_spec.rb │ ├── create_spec.rb │ ├── delete_snapshot_spec.rb │ ├── delete_spec.rb │ └── repair_spec.rb ├── volume_attachment │ └── repair_spec.rb └── volume_template │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb ├── resources_image_streamer ├── artifact_bundle │ ├── backup_from_file_spec.rb │ ├── backup_spec.rb │ ├── create_if_missing_spec.rb │ ├── delete_spec.rb │ ├── download_backup_spec.rb │ ├── download_spec.rb │ ├── extract_backup_spec.rb │ ├── extract_spec.rb │ ├── update_name_spec.rb │ └── upload_spec.rb ├── deployment_plan │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb ├── golden_image │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ ├── delete_spec.rb │ ├── download_details_archive_spec.rb │ ├── download_spec.rb │ └── upload_if_missing_spec.rb ├── os_build_plan │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb └── plan_scripts │ ├── create_if_missing_spec.rb │ ├── create_spec.rb │ └── delete_spec.rb └── shared_examples ├── add_to_scopes.rb ├── patch.rb ├── reapply_configuration.rb ├── refresh_request_refresh.rb ├── remove_from_scopes.rb ├── replace_scopes.rb ├── reset_connection_template.rb ├── set_refresh_state.rb ├── update_port.rb └── volume_attachments.rb /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | --- 2 | engines: 3 | duplication: 4 | enabled: true 5 | config: 6 | languages: 7 | - ruby 8 | fixme: 9 | enabled: true 10 | rubocop: 11 | enabled: true 12 | ratings: 13 | paths: 14 | - "**.rb" 15 | exclude_paths: 16 | - spec/ 17 | - examples/ 18 | - attributes/ -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Scenario/Intent 2 | [What you are trying to achieve but can't?] 3 | 4 | ### Environment Details 5 | - **oneview Cookbook Version:** [Version of this cookbook for which you are encountering the issue] 6 | - **OneView Version:** [Version of the OneView appliance you're interacting with] 7 | - **chef-client Version:** [Version of chef-client in your environment] 8 | - **platform:** [OS distribution and release version. Cloud provider if applicable] 9 | 10 | ### Steps to Reproduce 11 | [If you are filing an issue, what are the things we need to do in order to reproduce your problem? How are you using this cookbook or any resources it includes?] 12 | 13 | ### Expected Result 14 | [What do you *expect* to happen after taking the steps above?] 15 | 16 | ### Actual Result 17 | [What *actually* happens after the steps above? Include error output or a link to a gist] 18 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Description 2 | [Describe what this change achieves] 3 | 4 | ### Issues Resolved 5 | [List any issues this PR will resolve] 6 | 7 | ### Check List 8 | - [ ] New functionality includes testing. 9 | - [ ] All tests pass (`$ rake test`). 10 | - [ ] New resources and/or actions have are included in the [matchers.rb](https://github.com/HewlettPackard/oneview-chef/blob/master/libraries/matchers.rb) and [matchers_spec](https://github.com/HewlettPackard/oneview-chef/blob/master/spec/unit/resources/matchers_spec.rb). 11 | - [ ] New functionality has been documented in the README if applicable. 12 | - [ ] New functionality has been thoroughly documented in [examples](https://github.com/HewlettPackard/oneview-chef/tree/master/examples/) (please include helpful comments). 13 | - [ ] Changes documented in the [CHANGELOG](https://github.com/HewlettPackard/oneview-chef/blob/master/CHANGELOG.md). 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *# 3 | .#* 4 | \#*# 5 | .*.sw[a-z] 6 | *.un~ 7 | pkg/ 8 | 9 | # Berkshelf 10 | .vagrant 11 | /cookbooks 12 | Berksfile.lock 13 | .berkshelf/* 14 | 15 | # Bundler 16 | Gemfile.lock 17 | bin/* 18 | .bundle/* 19 | 20 | coverage 21 | doc/ 22 | .yardoc/ 23 | .kitchen/ 24 | .kitchen.local.yml 25 | 26 | # Testing 27 | recipes/* 28 | .recipes/* -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 2.4 4 | - 2.5 5 | 6 | before_install: gem update bundler 7 | 8 | script: 9 | - rake test 10 | - bundle exec codeclimate-test-reporter 11 | 12 | matrix: 13 | allow_failures: 14 | - rvm: 2.5 -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- 1 | libraries/**/*.rb - LICENSE metadata.rb CHANGELOG.md attributes/**/*.rb -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | ## Branches 4 | 5 | ### `master` branch 6 | 7 | The master branch is the current committed changes. These changes may not yet be released although we try to release often. 8 | 9 | ## Tags 10 | 11 | All releases are tagged in git. To see the releases available to you see the changelog or the tags directly. 12 | 13 | ## Pull requests 14 | 15 | - 16 | 17 | ## Issues 18 | 19 | Need to report an issue? Use the github issues: 20 | 21 | - -------------------------------------------------------------------------------- /libraries/resource_providers/api1000/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1000 14 | module C7000 15 | # Scope API1000 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API800::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1000/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1000 14 | module C7000 15 | # UplinkSet API1000 C7000 provider 16 | class UplinkSetProvider < API800::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1000/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1000 14 | module C7000 15 | # Volume API1000 C7000 provider 16 | class VolumeProvider < API800::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1000/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1000 14 | module Synergy 15 | # Volume API1000 Synergy provider 16 | class VolumeProvider < API1000::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1200/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1200 14 | module C7000 15 | # Scope API1200 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API1000::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1200/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1200 14 | module C7000 15 | # UplinkSet API1200 C7000 provider 16 | class UplinkSetProvider < API1000::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1200/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1200 14 | module C7000 15 | # Volume API1200 C7000 provider 16 | class VolumeProvider < API1000::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1200/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1200 14 | module Synergy 15 | # Volume API1200 Synergy provider 16 | class VolumeProvider < API1200::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1600/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1600 14 | module C7000 15 | # Scope API1600 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API1200::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1600/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1600 14 | module C7000 15 | # UplinkSet API1600 C7000 provider 16 | class UplinkSetProvider < API1200::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1600/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1600 14 | module C7000 15 | # Volume API1600 C7000 provider 16 | class VolumeProvider < API1200::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1600/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1600 14 | module Synergy 15 | # Volume API1600 Synergy provider 16 | class VolumeProvider < API1600::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1800/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1800 14 | module C7000 15 | # Scope API1800 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API1600::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1800/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1800 14 | module C7000 15 | # UplinkSet API1800 C7000 provider 16 | class UplinkSetProvider < API1600::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1800/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1800 14 | module C7000 15 | # Volume API1800 C7000 provider 16 | class VolumeProvider < API1600::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api1800/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API1800 14 | module Synergy 15 | # Volume API1800 Synergy provider 16 | class VolumeProvider < API1800::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api200/fcoe_network_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | require_relative 'fc_network_provider' 13 | 14 | module OneviewCookbook 15 | module API200 16 | # FCoENetwork API200 provider 17 | class FCoENetworkProvider < FCNetworkProvider 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api200/san_manager_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API200 14 | # SANManager API200 provider 15 | class SANManagerProvider < ResourceProvider 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /libraries/resource_providers/api200/unmanaged_device_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API200 14 | # UnmanagedDevice API200 provider 15 | class UnmanagedDeviceProvider < ResourceProvider 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2000/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2000 14 | module C7000 15 | # Scope API2000 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API1800::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2000/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2000 14 | module C7000 15 | # Volume API2000 C7000 provider 16 | class VolumeProvider < OneviewCookbook::API1800::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2200/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2200 14 | module C7000 15 | # Scope API2200 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API2000::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2200/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2200 14 | module C7000 15 | # Volume API2200 C7000 provider 16 | class VolumeProvider < OneviewCookbook::API2000::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2400/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2400 14 | module C7000 15 | # Scope API2400 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API2200::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2400/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2400 14 | module C7000 15 | # Volume API2400 C7000 provider 16 | class VolumeProvider < OneviewCookbook::API2200::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2600/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2021 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2600 14 | module C7000 15 | # Scope API2600 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API2400::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2600/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2021 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2600 14 | module C7000 15 | # Volume API2600 C7000 provider 16 | class VolumeProvider < OneviewCookbook::API2400::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2800/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2021 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2800 14 | module C7000 15 | # Scope API2800 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API2600::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api2800/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2021 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API2800 14 | module C7000 15 | # Volume API2800 C7000 provider 16 | class VolumeProvider < OneviewCookbook::API2600::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific 10 | # language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | # Module for API300 C7000 15 | module C7000 16 | end 17 | end 18 | end 19 | 20 | # Load all API-specific resources: 21 | Dir[File.dirname(__FILE__) + '/c7000/*.rb'].each { |file| require file } 22 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/datacenter_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # Datacenter API300 C7000 provider 16 | class DatacenterProvider < API200::DatacenterProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/enclosure_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # Enclosure API300 C7000 provider 16 | class EnclosureProvider < API200::EnclosureProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/event_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # EventProvider API300 C7000 provider 16 | class EventProvider < OneviewCookbook::API200::EventProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/fc_network_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # FCNetwork API300 C7000 provider 16 | class FCNetworkProvider < API200::FCNetworkProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/fcoe_network_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # FCoENetwork API300 C7000 provider 16 | class FCoENetworkProvider < API200::FCoENetworkProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/firmware_driver_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # Firmware API300 C7000 provider 16 | class FirmwareDriverProvider < API200::FirmwareDriverProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/id_pool_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # IDPool API300 C7000 provider 16 | class IDPoolProvider < API200::IDPoolProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/interconnect_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # Interconnect API300 C7000 provider 16 | class InterconnectProvider < API200::InterconnectProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/logical_switch_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # LogicalSwitch API300 C7000 provider 16 | class LogicalSwitchProvider < API200::LogicalSwitchProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/managed_san_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # ManagedSAN API300 C7000 provider 16 | class ManagedSANProvider < API200::ManagedSANProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/network_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # NetworkSet API300 C7000 provider 16 | class NetworkSetProvider < API200::NetworkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/power_device_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # PowerDevice API300 C7000 provider 16 | class PowerDeviceProvider < API200::PowerDeviceProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/rack_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # Rack API300 C7000 provider 16 | class RackProvider < API200::RackProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/san_manager_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # SANManager API300 C7000 provider 16 | class SANManagerProvider < API200::SANManagerProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/server_profile_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # ServerProfile API300 C7000 provider 16 | class ServerProfileProvider < API200::ServerProfileProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/storage_pool_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # StoragePool API300 C7000 provider 16 | class StoragePoolProvider < API200::StoragePoolProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/storage_system_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # StorageSystem API300 C7000 provider 16 | class StorageSystemProvider < API200::StorageSystemProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # UplinkSet API300 C7000 provider 16 | class UplinkSetProvider < API200::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/user_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # User API300 C7000 provider 16 | class UserProvider < API200::UserProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module C7000 15 | # Volume API300 C7000 provider 16 | class VolumeProvider < API200::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/enclosure_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # Enclosure API300 Synergy provider 16 | class EnclosureProvider < API200::EnclosureProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/event_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # EventProvider API300 Synergy provider 16 | class EventProvider < OneviewCookbook::API200::EventProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/id_pool_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # IDPool API300 Synergy provider 16 | class IDPoolProvider < API200::IDPoolProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/power_device_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # PowerDevice API300 Synergy provider 16 | class PowerDeviceProvider < API200::PowerDeviceProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/rack_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # Rack API300 Synergy resource provider methods 16 | class RackProvider < API200::RackProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # Scope API300 Synergy provider methods 16 | class ScopeProvider < C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # UplinkSet API300 Synergy provider 16 | class UplinkSetProvider < API200::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/user_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # User API300 Synergy provider 16 | class UserProvider < API200::UserProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api300/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API300 14 | module Synergy 15 | # Volume API300 Synergy provider 16 | class VolumeProvider < API200::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api3000/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2021 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API3000 14 | module C7000 15 | # Scope API3000 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API2800::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api3000/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2021 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API3000 14 | module C7000 15 | # Volume API3000 C7000 provider 16 | class VolumeProvider < OneviewCookbook::API2800::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific 10 | # language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | # Module for API500 C7000 15 | module C7000 16 | end 17 | end 18 | end 19 | 20 | # Load all API-specific resources: 21 | Dir[File.dirname(__FILE__) + '/c7000/*.rb'].each { |file| require file } 22 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/datacenter_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # Datacenter API500 C7000 provider 16 | class DatacenterProvider < API300::C7000::DatacenterProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/enclosure_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # Enclosure API500 C7000 provider 16 | class EnclosureProvider < API300::C7000::EnclosureProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/event_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # EventProvider API500 C7000 provider 16 | class EventProvider < API300::C7000::EventProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/fcoe_network_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # FCoENetwork API500 C7000 provider 16 | class FCoENetworkProvider < API300::C7000::FCoENetworkProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/id_pool_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # IDPool API500 C7000 provider 16 | class IDPoolProvider < OneviewCookbook::API300::C7000::IDPoolProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/network_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # NetworkSet API500 C7000 provider 16 | class NetworkSetProvider < API300::C7000::NetworkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/power_device_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # PowerDevice API500 C7000 provider 16 | class PowerDeviceProvider < API300::C7000::PowerDeviceProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/rack_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # Rack API500 C7000 provider 16 | class RackProvider < API300::C7000::RackProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # Scope API500 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API300::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/switch_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # Switch API500 C7000 provider 16 | class SwitchProvider < API300::C7000::SwitchProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # UplinkSet API500 C7000 provider 16 | class UplinkSetProvider < API300::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/c7000/user_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module C7000 15 | # User API500 C7000 provider 16 | class UserProvider < OneviewCookbook::API300::C7000::UserProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/enclosure_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # Enclosure API500 Synergy provider 16 | class EnclosureProvider < API300::Synergy::EnclosureProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/event_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # EventProvider API500 Synergy provider 16 | class EventProvider < API300::Synergy::EventProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/fabric_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # Fabric API500 Synergy provider 16 | class FabricProvider < API300::Synergy::FabricProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/rack_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # Rack API500 Synergy resource provider methods 16 | class RackProvider < API300::Synergy::RackProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # Scope API500 Synergy provider 16 | class ScopeProvider < OneviewCookbook::API300::Synergy::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # UplinkSet API500 Synergy provider 16 | class UplinkSetProvider < API300::Synergy::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/user_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # User API500 Synergy provider 16 | class UserProvider < OneviewCookbook::API300::Synergy::UserProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api500/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API500 14 | module Synergy 15 | # Volume API500 Synergy provider 16 | class VolumeProvider < API500::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api600/c7000.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2018 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the specific 10 | # language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API600 14 | # Module for API600 C7000 15 | module C7000 16 | end 17 | end 18 | end 19 | 20 | # Load all API-specific resources: 21 | Dir[File.dirname(__FILE__) + '/c7000/*.rb'].each { |file| require file } 22 | -------------------------------------------------------------------------------- /libraries/resource_providers/api600/c7000/switch_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2018 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API600 14 | module C7000 15 | # Switch API600 C7000 provider 16 | class SwitchProvider < API500::C7000::SwitchProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api600/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API600 14 | module C7000 15 | # UplinkSet API600 C7000 provider 16 | class UplinkSetProvider < API500::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api600/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2018 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API600 14 | module C7000 15 | # Volume API600 C7000 provider 16 | class VolumeProvider < API500::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api600/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2018 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API600 14 | module Synergy 15 | # Volume API600 Synergy provider 16 | class VolumeProvider < API600::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api800/c7000/scope_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API800 14 | module C7000 15 | # Scope API800 C7000 provider 16 | class ScopeProvider < OneviewCookbook::API600::C7000::ScopeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api800/c7000/uplink_set_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API800 14 | module C7000 15 | # UplinkSet API800 C7000 provider 16 | class UplinkSetProvider < API600::C7000::UplinkSetProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api800/c7000/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API800 14 | module C7000 15 | # Volume API800 C7000 provider 16 | class VolumeProvider < API600::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/api800/synergy/storage_pool_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Apache License, Version 2.0 (the "License"); 2 | # you may not use this file except in compliance with the License. 3 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 4 | # 5 | # Unless required by applicable law or agreed to in writing, software distributed 6 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 7 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 8 | # specific language governing permissions and limitations under the License. 9 | 10 | module OneviewCookbook 11 | module API800 12 | module Synergy 13 | # StoragePool API800 Synergy provider 14 | class StoragePoolProvider < API800::C7000::StoragePoolProvider 15 | end 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /libraries/resource_providers/api800/synergy/volume_provider.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | module API800 14 | module Synergy 15 | # Volume API800 Synergy provider 16 | class VolumeProvider < API800::C7000::VolumeProvider 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /libraries/resource_providers/image_streamer.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | module OneviewCookbook 13 | # Module for Image Streamer 14 | module ImageStreamer 15 | end 16 | end 17 | 18 | # Load all API-specific resources: 19 | Dir[File.dirname(__FILE__) + '/image_streamer/*.rb'].each { |file| require file } 20 | -------------------------------------------------------------------------------- /resources/event.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | OneviewCookbook::ResourceBaseProperties.load(self) 13 | 14 | default_action :create 15 | 16 | action :create do 17 | OneviewCookbook::Helper.do_resource_action(self, :Event, :create) 18 | end 19 | -------------------------------------------------------------------------------- /resources/volume_attachment.rb: -------------------------------------------------------------------------------- 1 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software distributed 8 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 9 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 10 | # specific language governing permissions and limitations under the License. 11 | 12 | OneviewCookbook::ResourceBaseProperties.load(self) 13 | 14 | default_action :none 15 | 16 | action :none do 17 | end 18 | 19 | action :repair do 20 | OneviewCookbook::Helper.do_resource_action(self, :VolumeAttachment, :repair) 21 | end 22 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api1000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api1000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API1000: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api1020/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api1020' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API1020: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api1600/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api1600' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API1600: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api300/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api300' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API300: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api500/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api500' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API500: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api600/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api600' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API600: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/image_streamer_test_api800/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'image_streamer_test_api800' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook ImageStreamer::API800: module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API200 module' 5 | version '0.1.1' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/datacenter_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: datacenter_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_datacenter 'Datacenter1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/default.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: default 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/enclosure_reconfigure.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: enclosure_reconfigure 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_enclosure 'Enclosure1' do 18 | client node['oneview_test']['client'] 19 | action :reconfigure 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/enclosure_refresh.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: enclosure_refresh 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_enclosure 'Enclosure1' do 18 | client node['oneview_test']['client'] 19 | action :refresh 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/enclosure_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: enclosure_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_enclosure 'Enclosure2' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/ethernet_network_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: ethernet_network_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_ethernet_network 'EthernetNetwork3' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/fc_network_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: fc_network_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_fc_network 'FCNetwork3' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/firmware_add.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: firmware_add 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_firmware 'cp027376.exe' do 18 | client node['oneview_test']['client'] 19 | end 20 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/firmware_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: firmware_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_firmware 'cp027376.exe' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/interconnect_reset.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: interconnect_reset 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_interconnect 'Interconnect3' do 18 | client node['oneview_test']['client'] 19 | action :reset 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/logical_enclosure_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: logical_enclosure_delete 4 | # 5 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_logical_enclosure 'LogicalEnclosure1' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/logical_switch_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: logical_switch_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_logical_switch 'LogicalSwitch3' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/logical_switch_refresh.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: logical_switch_refresh 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_logical_switch 'LogicalSwitch4' do 18 | client node['oneview_test']['client'] 19 | action :refresh 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/managed_san_refresh.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: managed_san_refresh 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_managed_san 'ManagedSAN1' do 18 | client node['oneview_test']['client'] 19 | action :refresh 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/network_set_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: network_set_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_network_set 'NetworkSet3' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/power_device_add.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: power_device_add 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_power_device 'PowerDevice1' do 18 | client node['oneview_test']['client'] 19 | data( 20 | ratedCapacity: 40 21 | ) 22 | end 23 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/power_device_refresh.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: power_device_refresh 4 | # 5 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_power_device 'PowerDevice1' do 18 | client node['oneview_test']['client'] 19 | action :refresh 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/power_device_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: power_device_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_power_device 'PowerDevice1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/power_device_remove_ipdu.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: power_device_remove_ipdu 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_power_device '127.0.0.1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/rack_add.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: rack_add 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_rack 'Rack1' do 18 | client node['oneview_test']['client'] 19 | action :add 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/rack_add_if_missing.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: rack_add_if_missing 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_rack 'Rack1' do 18 | client node['oneview_test']['client'] 19 | action :add_if_missing 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/rack_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: rack_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_rack 'Rack1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/resource_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: resource_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_resource 'EthernetNetwork3' do 18 | client node['oneview_test']['client'] 19 | type :EthernetNetwork 20 | action :delete 21 | end 22 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/san_manager_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: san_manager_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_san_manager '172.18.15.1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/server_hardware_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: server_hardware_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_server_hardware 'ServerHardware1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/server_profile_create.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: server_profile_create 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_server_profile 'ServerProfile1' do 18 | client node['oneview_test']['client'] 19 | action :create 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/server_profile_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: server_profile_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_server_profile 'ServerProfile3' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/storage_system_refresh.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: storage_system_refresh 4 | # 5 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_storage_system 'StorageSystem1' do 18 | client node['oneview_test']['client'] 19 | action :refresh 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/storage_system_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: storage_system_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_storage_system 'StorageSystem1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/switch_none.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: switch_none 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_switch 'Switch1' do 18 | client node['oneview_test']['client'] 19 | end 20 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/switch_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: switch_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_switch 'Switch1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/unmanaged_device_remove.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: unmanaged_device_remove 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_unmanaged_device 'UnmanagedDevice1' do 18 | client node['oneview_test']['client'] 19 | action :remove 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/uplink_set_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: uplink_set_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_uplink_set 'UplinkSet1' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/volume_attachment_repair.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: volume_attachment_repair 4 | # 5 | # (c) Copyright 2020 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_volume_attachment 'VolumeAttachment1' do 18 | client node['oneview_test']['client'] 19 | action :repair 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/volume_create_snapshot_invalid.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: volume_create_snapshot_invalid 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_volume 'Volume1' do 18 | client node['oneview_test']['client'] 19 | action :create_snapshot 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/volume_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: volume_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_volume 'VOL1' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/volume_repair.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: volume_repair 4 | # 5 | # (c) Copyright 2018 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_volume 'VOL1' do 18 | client node['oneview_test']['client'] 19 | action :repair 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test/recipes/volume_template_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test 3 | # Recipe:: volume_template_delete 4 | # 5 | # (c) Copyright 2016 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_volume_template 'VolumeTemplate1' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api1600_c7000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api1600_c7000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API1600::C7000 module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api1800_c7000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api1800_c7000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API1800::C7000 module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api2000_c7000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api2000_c7000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API2000::C7000 module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api2400_c7000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api2400_c7000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API2400::C7000 module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api300_synergy/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api300_synergy' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API300::Synergy module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api300_synergy/recipes/scope_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test_api300_synergy 3 | # Recipe:: scope_delete 4 | # 5 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_scope 'Scope3' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api500_synergy/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api500_synergy' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API500::Synergy module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api500_synergy/recipes/volume_delete.rb: -------------------------------------------------------------------------------- 1 | # 2 | # Cookbook Name:: oneview_test_api500_synergy 3 | # Recipe:: volume_delete 4 | # 5 | # (c) Copyright 2017 Hewlett Packard Enterprise Development LP 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software distributed 12 | # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 | # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 | # specific language governing permissions and limitations under the License. 15 | # 16 | 17 | oneview_volume 'VOL1' do 18 | client node['oneview_test']['client'] 19 | action :delete 20 | end 21 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api600_c7000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api600_c7000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API600::C7000 module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api600_synergy/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api600_synergy' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API600::Synergy module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/fixtures/cookbooks/oneview_test_api800_c7000/metadata.rb: -------------------------------------------------------------------------------- 1 | name 'oneview_test_api800_c7000' 2 | maintainer 'none' 3 | license 'All rights reserved' 4 | description 'A test cookbook for the oneview cookbook API800::C7000 module' 5 | version '0.1.0' 6 | 7 | depends 'oneview' 8 | -------------------------------------------------------------------------------- /spec/unit/resources/datacenter/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::datacenter_remove' do 4 | let(:resource_name) { 'datacenter' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::Datacenter).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::Datacenter).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_datacenter('Datacenter1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::Datacenter).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::Datacenter).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_datacenter('Datacenter1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/drive_enclosure/hard_reset_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::drive_enclosure_hard_reset' do 4 | let(:resource_name) { 'drive_enclosure' } 5 | let(:klass) { OneviewSDK::API300::Synergy::DriveEnclosure } 6 | include_context 'chef context' 7 | 8 | it 'hard resets the drive enclosure' do 9 | allow_any_instance_of(klass).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(klass).to receive(:patch).with('replace', '/hardResetState', 'Reset') 11 | expect(real_chef_run).to hard_reset_oneview_drive_enclosure('DriveEnclosure1') 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::enclosure_add_to_scopes' do 4 | let(:resource_name) { 'enclosure' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::Enclosure } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_enclosure_to_scopes, 'Enclosure1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::enclosure_patch' do 4 | let(:resource_name) { 'enclosure' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API200::Enclosure } 8 | let(:target_match_method) { [:patch_oneview_enclosure, 'Enclosure1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure/refresh_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::enclosure_refresh' do 4 | let(:resource_name) { 'enclosure' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::Enclosure } 8 | let(:target_match_method) { [:refresh_oneview_enclosure, 'Enclosure1'] } 9 | it_behaves_like 'action :refresh #set_refresh_state' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::enclosure_remove_from_scopes' do 4 | let(:resource_name) { 'enclosure' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::Enclosure } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_enclosure_from_scopes, 'Enclosure1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::enclosure_remove' do 4 | let(:resource_name) { 'enclosure' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::Enclosure).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::Enclosure).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_enclosure('Enclosure2') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::Enclosure).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::Enclosure).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_enclosure('Enclosure2') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::enclosure_replace_scopes' do 4 | let(:resource_name) { 'enclosure' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::Enclosure } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_enclosure_scopes, 'Enclosure1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/enclosure_group/create_if_missing_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::enclosure_group_create_if_missing' do 4 | let(:resource_name) { 'enclosure_group' } 5 | include_context 'chef context' 6 | 7 | it 'accepts a logical_interconnect_groups parameter' do 8 | expect_any_instance_of(OneviewSDK::EnclosureGroup).to receive(:add_logical_interconnect_group).and_return(true) 9 | expect_any_instance_of(OneviewSDK::EnclosureGroup).to receive(:exists?).and_return(false) 10 | expect_any_instance_of(OneviewSDK::EnclosureGroup).to receive(:create).and_return(true) 11 | expect(real_chef_run).to create_oneview_enclosure_group_if_missing('EnclosureGroup2') 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::ethernet_network_add_to_scopes' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::EthernetNetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_ethernet_network_to_scopes, 'EthernetNetwork1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::ethernet_network_delete' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_ethernet_network('EthernetNetwork3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_ethernet_network('EthernetNetwork3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::ethernet_network_patch' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::EthernetNetwork } 8 | let(:target_match_method) { [:patch_oneview_ethernet_network, 'EthernetNetwork1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::ethernet_network_remove_from_scopes' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::EthernetNetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_ethernet_network_from_scopes, 'EthernetNetwork1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::ethernet_network_replace_scopes' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::EthernetNetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_ethernet_network_scopes, 'EthernetNetwork1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/reset_connection_template_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::ethernet_network_reset_connection_template' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API200::EthernetNetwork } 8 | let(:connection_template_class) { OneviewSDK::API200::ConnectionTemplate } 9 | let(:target_match_method) { [:reset_oneview_ethernet_network_connection_template, 'EthernetNetwork4'] } 10 | it_behaves_like 'action :reset_connection_template' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/ethernet_network/spec_delete_bulk.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api1800_c7000::ethernet_network_delete_bulk' do 4 | let(:resource_name) { 'ethernet_network' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it if it exist' do 8 | expect_any_instance_of(OneviewSDK::API1800::C7000::EthernetNetwork).to receive(:delete_bulk).and_return(true) 9 | expect(real_chef_run).to delete_bulk_oneview_ethernet_network('Eth1') 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/event/create_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::event_create' do 4 | let(:resource_name) { 'event' } 5 | include_context 'chef context' 6 | 7 | it 'creates it' do 8 | expect_any_instance_of(OneviewSDK::Event).to receive(:create).and_return(true) 9 | expect(real_chef_run).to create_oneview_event('Event1') 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fc_network/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fc_network_add_to_scopes' do 4 | let(:resource_name) { 'fc_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCNetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_fc_network_to_scopes, 'FCNetwork1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fc_network/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::fc_network_delete' do 4 | let(:resource_name) { 'fc_network' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::FCNetwork).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::FCNetwork).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_fc_network('FCNetwork3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::FCNetwork).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::FCNetwork).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_fc_network('FCNetwork3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/fc_network/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fc_network_patch' do 4 | let(:resource_name) { 'fc_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCNetwork } 8 | let(:target_match_method) { [:patch_oneview_fc_network, 'FCNetwork4'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/fc_network/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fc_network_remove_from_scopes' do 4 | let(:resource_name) { 'fc_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCNetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_fc_network_from_scopes, 'FCNetwork1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fc_network/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fc_network_replace_scopes' do 4 | let(:resource_name) { 'fc_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCNetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_fc_network_scopes, 'FCNetwork1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fc_network/reset_connection_template_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::fc_network_reset_connection_template' do 4 | let(:resource_name) { 'fc_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API200::FCNetwork } 8 | let(:connection_template_class) { OneviewSDK::API200::ConnectionTemplate } 9 | let(:target_match_method) { [:reset_oneview_fc_network_connection_template, 'FCNetwork4'] } 10 | it_behaves_like 'action :reset_connection_template' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fcoe_network/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fcoe_network_add_to_scopes' do 4 | let(:resource_name) { 'fcoe_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCoENetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_fcoe_network_to_scopes, 'FCoENetwork1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fcoe_network/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::fcoe_network_delete' do 4 | let(:resource_name) { 'fcoe_network' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::FCoENetwork).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::FCoENetwork).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_fcoe_network('FCoENetwork3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::FCoENetwork).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::FCoENetwork).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_fcoe_network('FCoENetwork3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/fcoe_network/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fcoe_network_patch' do 4 | let(:resource_name) { 'fcoe_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCoENetwork } 8 | let(:target_match_method) { [:patch_oneview_fcoe_network, 'FCoENetwork1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/fcoe_network/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fcoe_network_remove_from_scopes' do 4 | let(:resource_name) { 'fcoe_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCoENetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_fcoe_network_from_scopes, 'FCoENetwork1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fcoe_network/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::fcoe_network_replace_scopes' do 4 | let(:resource_name) { 'fcoe_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::FCoENetwork } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_fcoe_network_scopes, 'FCoENetwork1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/fcoe_network/reset_connection_template_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::fcoe_network_reset_connection_template' do 4 | let(:resource_name) { 'fcoe_network' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API200::FCoENetwork } 8 | let(:connection_template_class) { OneviewSDK::API200::ConnectionTemplate } 9 | let(:target_match_method) { [:reset_oneview_fcoe_network_connection_template, 'FCoENetwork4'] } 10 | it_behaves_like 'action :reset_connection_template' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/firmware/add_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::firmware_add' do 4 | let(:resource_name) { 'firmware' } 5 | include_context 'chef context' 6 | 7 | it 'adds it when it does not exist' do 8 | allow(OneviewSDK::FirmwareDriver).to receive(:find_by).and_return([]) 9 | expect(OneviewSDK::FirmwareBundle).to receive(:add).and_return(OneviewSDK::FirmwareDriver.new(client, {})) 10 | expect(real_chef_run).to add_oneview_firmware('cp027376.exe') 11 | end 12 | 13 | it 'does nothing when it already exists' do 14 | allow(OneviewSDK::FirmwareDriver).to receive(:find_by).and_return( 15 | [ 16 | OneviewSDK::FirmwareDriver.new(client, 'resourceId' => 'cp027376') 17 | ] 18 | ) 19 | expect(OneviewSDK::FirmwareBundle).to_not receive(:add) 20 | expect(real_chef_run).to add_oneview_firmware('cp027376.exe') 21 | end 22 | end 23 | -------------------------------------------------------------------------------- /spec/unit/resources/hypervisor_manager/update_registration_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api800_c7000::hypervisor_manager_update_registration' do 4 | let(:resource_name) { 'hypervisor_manager' } 5 | include_context 'chef context' 6 | 7 | it 'update hypervisor registration with different IP' do 8 | expect_any_instance_of(OneviewSDK::API800::C7000::HypervisorManager).to receive(:exists?).and_return(true) 9 | expect_any_instance_of(OneviewSDK::API800::C7000::HypervisorManager).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(OneviewSDK::API800::C7000::HypervisorManager).to receive(:like?).and_return(true) 11 | expect(real_chef_run).to update_registration_oneview_hypervisor_manager('172.18.13.11') 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /spec/unit/resources/id_pool/allocate_count_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | klass = OneviewSDK::IDPool 4 | describe 'oneview_test::id_pool_allocate_count' do 5 | let(:resource_name) { 'id_pool' } 6 | include_context 'chef context' 7 | 8 | it 'allocates a certain quantity of IDs' do 9 | expect_any_instance_of(klass).to receive(:allocate_count).with('vmac', 2) 10 | expect(real_chef_run).to allocate_oneview_id_pool_count('IDPool4') 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /spec/unit/resources/id_pool/allocate_list_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | klass = OneviewSDK::IDPool 4 | describe 'oneview_test::id_pool_allocate_list' do 5 | let(:resource_name) { 'id_pool' } 6 | let(:ids) { ['A2:32:C3:D0:00:00', 'A2:32:C3:D0:00:01'] } 7 | include_context 'chef context' 8 | 9 | it 'allocates a list of the IDs' do 10 | expect_any_instance_of(klass).to receive(:validate_id_list).with('vmac', ids).and_return(true) 11 | expect_any_instance_of(klass).to receive(:allocate_id_list).with('vmac', ids) 12 | expect(real_chef_run).to allocate_oneview_id_pool_list('IDPool3') 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /spec/unit/resources/id_pool/collect_ids_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | klass = OneviewSDK::IDPool 4 | describe 'oneview_test::id_pool_collect_ids' do 5 | let(:resource_name) { 'id_pool' } 6 | include_context 'chef context' 7 | 8 | it 'removes an list of the IDs' do 9 | expect_any_instance_of(klass).to receive(:collect_ids).with('vmac', ['A2:32:C3:D0:00:00', 'A2:32:C3:D0:00:01']) 10 | expect(real_chef_run).to collect_oneview_id_pool_ids('IDPool2') 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /spec/unit/resources/id_pool/update_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | klass = OneviewSDK::IDPool 4 | describe 'oneview_test::id_pool_update' do 5 | let(:resource_name) { 'id_pool' } 6 | let(:fake_pool) { klass.new(@client) } 7 | include_context 'chef context' 8 | include_context 'shared context' 9 | 10 | it 'enables an ID Pool' do 11 | allow_any_instance_of(klass).to receive(:get_pool).with('vmac').and_return(fake_pool) 12 | expect_any_instance_of(klass).to receive(:update).with(enabled: true).and_return(fake_pool) 13 | expect(real_chef_run).to update_oneview_id_pool('IDPool1') 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /spec/unit/resources/interconnect/reapply_configuration_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api500_synergy::interconnect_reapply_configuration' do 4 | let(:resource_name) { 'interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API500::Synergy::Interconnect } 8 | let(:target_match_method) { [:reapply_oneview_interconnect_configuration, 'Interconnect-reapply_configuration'] } 9 | it_behaves_like 'action :reapply_configuration' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/interconnect/reset_port_protection_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::interconnect_reset_port_protection' do 4 | let(:resource_name) { 'interconnect' } 5 | let(:target_class) { OneviewSDK::API200::Interconnect } 6 | include_context 'chef context' 7 | 8 | it 'resets port protection for the Interconnect' do 9 | allow_any_instance_of(target_class).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(target_class).to receive(:reset_port_protection) 11 | expect(real_chef_run).to reset_oneview_interconnect_port_protection('Interconnect4') 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /spec/unit/resources/interconnect/reset_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::interconnect_reset' do 4 | let(:resource_name) { 'interconnect' } 5 | let(:target_class) { OneviewSDK::API200::Interconnect } 6 | include_context 'chef context' 7 | 8 | it 'resets the Interconnect' do 9 | allow_any_instance_of(target_class).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(target_class).to receive(:patch).with('replace', '/deviceResetState', 'Reset') 11 | expect(real_chef_run).to reset_oneview_interconnect('Interconnect3') 12 | end 13 | 14 | it 'fails if the resource is not found' do 15 | expect_any_instance_of(target_class).to receive(:retrieve!).and_return(false) 16 | expect { real_chef_run }.to raise_error(RuntimeError, /not found/) 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/interconnect/update_port_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::interconnect_update_port' do 4 | let(:resource_name) { 'interconnect' } 5 | include_context 'chef context' 6 | include_context 'shared context' 7 | 8 | let(:target_class) { OneviewSDK::API200::Interconnect } 9 | let(:target_match_method) { [:update_oneview_interconnect_port, 'Interconnect5'] } 10 | it_behaves_like 'action :update_port' 11 | end 12 | 13 | describe 'oneview_test::interconnect_update_port_invalid' do 14 | let(:resource_name) { 'interconnect' } 15 | include_context 'chef context' 16 | 17 | let(:target_class) { OneviewSDK::API200::Interconnect } 18 | it_behaves_like 'action :update_port #update_port with an invalid port' 19 | end 20 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_enclosure/create_support_dump_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::logical_enclosure_create_support_dump' do 4 | let(:resource_name) { 'logical_enclosure' } 5 | include_context 'chef context' 6 | 7 | it 'generates a support dump' do 8 | expect_any_instance_of(OneviewSDK::LogicalEnclosure).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::LogicalEnclosure).to receive(:support_dump).with(errorCode: 'MyDump') 10 | expect(real_chef_run).to create_oneview_logical_enclosure_support_dump('LogicalEnclosure1') 11 | end 12 | 13 | it 'fails if the resource is not found' do 14 | expect_any_instance_of(OneviewSDK::LogicalEnclosure).to receive(:retrieve!).and_return(false) 15 | expect { real_chef_run }.to raise_error(RuntimeError, /not found/) 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_enclosure/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::logical_enclosure_delete' do 4 | let(:resource_name) { 'logical_enclosure' } 5 | let(:klass) { OneviewSDK::LogicalEnclosure } 6 | include_context 'chef context' 7 | 8 | it 'deletes it when it exists' do 9 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(klass).to receive(:delete).and_return(true) 11 | expect(real_chef_run).to delete_oneview_logical_enclosure('LogicalEnclosure1') 12 | end 13 | 14 | it 'does nothing when it does not exist' do 15 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(false) 16 | expect_any_instance_of(klass).to_not receive(:delete) 17 | expect(real_chef_run).to delete_oneview_logical_enclosure('LogicalEnclosure1') 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_add_to_scopes' do 4 | let(:resource_name) { 'logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnect } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_logical_interconnect_to_scopes, 'LogicalInterconnect1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_patch' do 4 | let(:resource_name) { 'logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnect } 8 | let(:target_match_method) { [:patch_oneview_logical_interconnect, 'LogicalInterconnect1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect/reapply_configuration_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::logical_interconnect_reapply_configuration' do 4 | let(:resource_name) { 'logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API200::LogicalInterconnect } 8 | let(:target_match_method) { [:reapply_oneview_logical_interconnect_configuration, 'LogicalInterconnect-reapply_configuration'] } 9 | it_behaves_like 'action :reapply_configuration' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_remove_from_scopes' do 4 | let(:resource_name) { 'logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnect } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_logical_interconnect_from_scopes, 'LogicalInterconnect1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_replace_scopes' do 4 | let(:resource_name) { 'logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnect } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_logical_interconnect_scopes, 'LogicalInterconnect1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect/validate_bulk_inconsistency_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api2000_c7000::logical_interconnect_validate_bulk_inconsistency' do 4 | let(:resource_name) { 'logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | it 'fails if the resource is not found' do 8 | expect_any_instance_of(OneviewSDK::API2000::C7000::LogicalInterconnect).to receive(:retrieve!).and_return(false) 9 | expect { real_chef_run }.to raise_error(RuntimeError, /not found/) 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect_group/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_group_add_to_scopes' do 4 | let(:resource_name) { 'logical_interconnect_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnectGroup } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_logical_interconnect_group_to_scopes, 'LogicalInterconnectGroup1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect_group/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_group_patch' do 4 | let(:resource_name) { 'logical_interconnect_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnectGroup } 8 | let(:target_match_method) { [:patch_oneview_logical_interconnect_group, 'LogicalInterconnectGroup1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect_group/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_group_remove_from_scopes' do 4 | let(:resource_name) { 'logical_interconnect_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnectGroup } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_logical_interconnect_group_from_scopes, 'LogicalInterconnectGroup1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_interconnect_group/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_interconnect_group_replace_scopes' do 4 | let(:resource_name) { 'logical_interconnect_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::LogicalInterconnectGroup } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_logical_interconnect_group_scopes, 'LogicalInterconnectGroup1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_add_to_scopes' do 4 | let(:resource_name) { 'logical_switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitch } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:add_oneview_logical_switch_to_scopes, 'LogicalSwitch1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::logical_switch_delete' do 4 | let(:resource_name) { 'logical_switch' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_logical_switch('LogicalSwitch3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_logical_switch('LogicalSwitch3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_patch' do 4 | let(:resource_name) { 'logical_switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitch } 8 | let(:target_match_method) { [:patch_oneview_logical_switch, 'LogicalSwitch1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch/refresh_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::logical_switch_refresh' do 4 | let(:resource_name) { 'logical_switch' } 5 | include_context 'chef context' 6 | 7 | it 'creates it when it does not exist' do 8 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to receive(:refresh_state).and_return(true) 10 | expect(real_chef_run).to refresh_oneview_logical_switch('LogicalSwitch4') 11 | end 12 | 13 | it 'raises error when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::LogicalSwitch).to_not receive(:refresh_state) 16 | expect { real_chef_run }.to raise_error(RuntimeError, /not found/) 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_remove_from_scopes' do 4 | let(:resource_name) { 'logical_switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitch } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:remove_oneview_logical_switch_from_scopes, 'LogicalSwitch1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_replace_scopes' do 4 | let(:resource_name) { 'logical_switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitch } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:replace_oneview_logical_switch_scopes, 'LogicalSwitch1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch_group/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_group_add_to_scopes' do 4 | let(:resource_name) { 'logical_switch_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitchGroup } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:add_oneview_logical_switch_group_to_scopes, 'LogicalSwitchGroup1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch_group/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_group_patch' do 4 | let(:resource_name) { 'logical_switch_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitchGroup } 8 | let(:target_match_method) { [:patch_oneview_logical_switch_group, 'LogicalSwitchGroup1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch_group/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_group_remove_from_scopes' do 4 | let(:resource_name) { 'logical_switch_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitchGroup } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:remove_oneview_logical_switch_group_from_scopes, 'LogicalSwitchGroup1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/logical_switch_group/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::logical_switch_group_replace_scopes' do 4 | let(:resource_name) { 'logical_switch_group' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::LogicalSwitchGroup } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:replace_oneview_logical_switch_group_scopes, 'LogicalSwitchGroup1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/network_set/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::network_set_add_to_scopes' do 4 | let(:resource_name) { 'network_set' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::NetworkSet } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_network_set_to_scopes, 'NetworkSet1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/network_set/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::network_set_delete' do 4 | let(:resource_name) { 'network_set' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::NetworkSet).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::NetworkSet).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_network_set('NetworkSet3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::NetworkSet).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::NetworkSet).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_network_set('NetworkSet3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/network_set/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::network_set_patch' do 4 | let(:resource_name) { 'network_set' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::NetworkSet } 8 | let(:target_match_method) { [:patch_oneview_network_set, 'NetworkSet1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/network_set/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::network_set_remove_from_scopes' do 4 | let(:resource_name) { 'network_set' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::NetworkSet } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_network_set_from_scopes, 'NetworkSet1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/network_set/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::network_set_replace_scopes' do 4 | let(:resource_name) { 'network_set' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::NetworkSet } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_network_set_scopes, 'NetworkSet1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/rack/add_if_missing_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::rack_add_if_missing' do 4 | let(:resource_name) { 'rack' } 5 | include_context 'chef context' 6 | 7 | it 'rack does not exist' do 8 | allow_any_instance_of(OneviewSDK::Rack).to receive(:exists?).and_return(false) 9 | expect_any_instance_of(OneviewSDK::Rack).to receive(:add).and_return(true) 10 | expect(real_chef_run).to add_oneview_rack_if_missing('Rack1') 11 | end 12 | 13 | it 'rack already exists' do 14 | allow_any_instance_of(OneviewSDK::Rack).to receive(:exists?).and_return(true) 15 | allow_any_instance_of(OneviewSDK::Rack).to receive(:retrieve!).and_return(true) 16 | expect_any_instance_of(OneviewSDK::Rack).to_not receive(:add) 17 | expect(real_chef_run).to add_oneview_rack_if_missing('Rack1') 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /spec/unit/resources/rack/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::rack_remove' do 4 | let(:resource_name) { 'rack' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | allow_any_instance_of(OneviewSDK::Rack).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::Rack).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_rack('Rack1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | allow_any_instance_of(OneviewSDK::Rack).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::Rack).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_rack('Rack1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/resource/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::resource_delete' do 4 | let(:resource_name) { 'resource' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_resource('EthernetNetwork3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::EthernetNetwork).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_resource('EthernetNetwork3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/san_manager/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::san_manager_remove' do 4 | let(:resource_name) { 'san_manager' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | allow_any_instance_of(OneviewSDK::SANManager).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::SANManager).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_san_manager('172.18.15.1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | allow_any_instance_of(OneviewSDK::SANManager).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::SANManager).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_san_manager('172.18.15.1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/sas_logical_interconnect/reapply_configuration_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::sas_logical_interconnect_reapply_configuration' do 4 | let(:resource_name) { 'sas_logical_interconnect' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::SASLogicalInterconnect } 8 | let(:target_match_method) { [:reapply_oneview_sas_logical_interconnect_configuration, 'SASLogicalInterconnect-reapply_configuration'] } 9 | it_behaves_like 'action :reapply_configuration' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/sas_logical_interconnect/update_from_group_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::sas_logical_interconnect_update_from_group' do 4 | let(:resource_name) { 'sas_logical_interconnect' } 5 | let(:base_sdk) { OneviewSDK::API300::Synergy } 6 | include_context 'chef context' 7 | 8 | it 'updates the logical interconnect from the logical interconnect group' do 9 | allow_any_instance_of(base_sdk::SASLogicalInterconnect).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(base_sdk::SASLogicalInterconnect).to receive(:compliance).and_return(true) 11 | expect(real_chef_run).to update_oneview_sas_logical_interconnect_from_group('SASLogicalInterconnect-update_from_group') 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /spec/unit/resources/scope/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::scope_delete' do 4 | let(:klass) { OneviewSDK::API300::Synergy::Scope } 5 | let(:resource_name) { 'scope' } 6 | include_context 'chef context' 7 | 8 | it 'deletes it when it exists' do 9 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(klass).to receive(:delete).and_return(true) 11 | expect(real_chef_run).to delete_oneview_scope('Scope3') 12 | end 13 | 14 | it 'does nothing when it does not exist' do 15 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(false) 16 | expect_any_instance_of(klass).to_not receive(:delete) 17 | expect(real_chef_run).to delete_oneview_scope('Scope3') 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /spec/unit/resources/server_certificate/remove_certificate_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api600_c7000::server_certificate_remove_certificate' do 4 | let(:resource_name) { 'server_certificate' } 5 | include_context 'chef context' 6 | 7 | it 'adds it when it does not exist' do 8 | expect_any_instance_of(OneviewSDK::API600::C7000::ServerCertificate).to receive(:remove).and_return(true) 9 | expect(real_chef_run).to remove_certificate_oneview_server_certificate('172.18.13.11') 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/add_multiple_servers_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api600_synergy::server_hardware_add_multiple_servers' do 4 | let(:resource_name) { 'server_hardware' } 5 | let(:base_sdk) { OneviewSDK::API600::C7000 } 6 | include_context 'chef context' 7 | 8 | it 'adds it when it does not exist' do 9 | expect_any_instance_of(base_sdk::ServerHardware).to receive(:add_multiple_servers).and_return(true) 10 | expect(real_chef_run).to add_multiple_servers_oneview_server_hardware('ServerHardware1') 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::server_hardware_add_to_scopes' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::ServerHardware } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:add_oneview_server_hardware_to_scopes, 'ServerHardware1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::server_hardware_patch' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::ServerHardware } 8 | let(:target_match_method) { [:patch_oneview_server_hardware, 'ServerHardware1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/refresh_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::server_hardware_refresh' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::ServerHardware } 8 | let(:target_match_method) { [:refresh_oneview_server_hardware, 'ServerHardware1'] } 9 | it_behaves_like 'action :refresh #set_refresh_state' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::server_hardware_remove_from_scopes' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::ServerHardware } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:remove_oneview_server_hardware_from_scopes, 'ServerHardware1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::server_hardware_remove' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::ServerHardware).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::ServerHardware).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_server_hardware('ServerHardware1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::ServerHardware).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::ServerHardware).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_server_hardware('ServerHardware1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::server_hardware_replace_scopes' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::Synergy::ServerHardware } 8 | let(:scope_class) { OneviewSDK::API300::Synergy::Scope } 9 | let(:target_match_method) { [:replace_oneview_server_hardware_scopes, 'ServerHardware1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/server_hardware/update_ilo_firmware_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::server_hardware_update_ilo_firmware' do 4 | let(:resource_name) { 'server_hardware' } 5 | include_context 'chef context' 6 | 7 | it 'updates ilo firmware' do 8 | expect_any_instance_of(OneviewSDK::ServerHardware).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::ServerHardware).to receive(:update_ilo_firmware) 10 | expect(real_chef_run).to update_oneview_server_hardware_ilo_firmware('ServerHardware1') 11 | end 12 | 13 | it 'fails if the resource is not found' do 14 | expect_any_instance_of(OneviewSDK::ServerHardware).to receive(:retrieve!).and_return(false) 15 | expect { real_chef_run }.to raise_error(RuntimeError, /not found/) 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /spec/unit/resources/server_profile/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::server_profile_delete' do 4 | let(:resource_name) { 'server_profile' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::ServerProfile).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::ServerProfile).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_server_profile('ServerProfile3') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::ServerProfile).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::ServerProfile).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_server_profile('ServerProfile3') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/storage_pool/refresh_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api500_synergy::storage_pool_refresh' do 4 | let(:resource_name) { 'storage_pool' } 5 | include_context 'chef context' 6 | 7 | let(:base_sdk) { OneviewSDK::API500::Synergy } 8 | let(:target_class) { base_sdk::StoragePool } 9 | let(:target_match_method) { [:refresh_oneview_storage_pool, 'StoragePool'] } 10 | it_behaves_like 'action :refresh #request_refresh' do 11 | before do 12 | allow_any_instance_of(base_sdk::StorageSystem).to receive(:retrieve!).and_return(true) 13 | allow_any_instance_of(OneviewCookbook::API500::Synergy::StoragePoolProvider).to receive(:load_resource) 14 | .with(:StorageSystem, anything) 15 | .and_return(base_sdk::StorageSystem.new(client500, uri: '/sotrage-system/1')) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/storage_system/edit_credentials_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::storage_system_edit_credentials' do 4 | let(:resource_name) { 'storage_system' } 5 | include_context 'chef context' 6 | 7 | it 'fails if the resource is not found' do 8 | expect_any_instance_of(OneviewSDK::StorageSystem).to receive(:retrieve!).and_return(false) 9 | expect { real_chef_run }.to raise_error(RuntimeError, /not found/) 10 | end 11 | 12 | it 'edits storage system credentials when it exists' do 13 | allow_any_instance_of(OneviewSDK::StorageSystem).to receive(:retrieve!).and_return(true) 14 | expect_any_instance_of(OneviewSDK::StorageSystem).to receive(:update).and_return(true) 15 | expect(real_chef_run).to edit_oneview_storage_system_credentials('StorageSystem1') 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /spec/unit/resources/storage_system/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::storage_system_remove' do 4 | let(:resource_name) { 'storage_system' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | allow_any_instance_of(OneviewSDK::StorageSystem).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::StorageSystem).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_storage_system('StorageSystem1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | allow_any_instance_of(OneviewSDK::StorageSystem).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::StorageSystem).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_storage_system('StorageSystem1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/switch/add_to_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::switch_add_to_scopes' do 4 | let(:resource_name) { 'switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::Switch } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:add_oneview_switch_to_scopes, 'Switch1'] } 10 | it_behaves_like 'action :add_to_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/switch/none_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::switch_none' do 4 | let(:resource_name) { 'switch' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists and is not in the inventory' do 8 | expect(real_chef_run).to none_oneview_switch('Switch1') 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/switch/patch_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::switch_patch' do 4 | let(:resource_name) { 'switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::Switch } 8 | let(:target_match_method) { [:patch_oneview_switch, 'Switch1'] } 9 | it_behaves_like 'action :patch' 10 | end 11 | -------------------------------------------------------------------------------- /spec/unit/resources/switch/remove_from_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::switch_remove_from_scopes' do 4 | let(:resource_name) { 'switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::Switch } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:remove_oneview_switch_from_scopes, 'Switch1'] } 10 | it_behaves_like 'action :remove_from_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/switch/replace_scopes_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::switch_replace_scopes' do 4 | let(:resource_name) { 'switch' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API300::C7000::Switch } 8 | let(:scope_class) { OneviewSDK::API300::C7000::Scope } 9 | let(:target_match_method) { [:replace_oneview_switch_scopes, 'Switch1'] } 10 | it_behaves_like 'action :replace_scopes' 11 | end 12 | -------------------------------------------------------------------------------- /spec/unit/resources/switch/update_port_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test_api300_synergy::switch_update_port' do 4 | let(:resource_name) { 'switch' } 5 | include_context 'chef context' 6 | include_context 'shared context' 7 | 8 | let(:target_class) { OneviewSDK::API300::C7000::Switch } 9 | let(:target_match_method) { [:update_oneview_switch_port, 'Switch1'] } 10 | it_behaves_like 'action :update_port' 11 | end 12 | 13 | describe 'oneview_test_api300_synergy::switch_update_port_invalid' do 14 | let(:resource_name) { 'switch' } 15 | include_context 'chef context' 16 | 17 | let(:target_class) { OneviewSDK::API300::C7000::Switch } 18 | it_behaves_like 'action :update_port #update_port with an invalid port' 19 | end 20 | -------------------------------------------------------------------------------- /spec/unit/resources/unmanaged_device/remove_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::unmanaged_device_remove' do 4 | let(:resource_name) { 'unmanaged_device' } 5 | include_context 'chef context' 6 | 7 | it 'removes it when it exists' do 8 | allow_any_instance_of(OneviewSDK::UnmanagedDevice).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::UnmanagedDevice).to receive(:remove).and_return(true) 10 | expect(real_chef_run).to remove_oneview_unmanaged_device('UnmanagedDevice1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | allow_any_instance_of(OneviewSDK::UnmanagedDevice).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::UnmanagedDevice).to_not receive(:remove) 16 | expect(real_chef_run).to remove_oneview_unmanaged_device('UnmanagedDevice1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/uplink_set/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::uplink_set_delete' do 4 | let(:resource_name) { 'uplink_set' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::UplinkSet).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::UplinkSet).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_uplink_set('UplinkSet1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::UplinkSet).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::UplinkSet).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_uplink_set('UplinkSet1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources/user/create_if_missing_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | klass = OneviewSDK::API200::User 4 | describe 'oneview_test::user_create_if_missing' do 5 | let(:resource_name) { 'user' } 6 | include_context 'chef context' 7 | 8 | it 'creates it when it does not exist' do 9 | expect_any_instance_of(klass).to receive(:exists?).and_return(false) 10 | expect_any_instance_of(klass).to receive(:create).and_return(true) 11 | expect(real_chef_run).to create_oneview_user_if_missing('User2') 12 | end 13 | 14 | it 'does nothing when it exists' do 15 | expect_any_instance_of(klass).to receive(:exists?).and_return(true) 16 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(true) 17 | expect_any_instance_of(klass).to_not receive(:create) 18 | expect(real_chef_run).to create_oneview_user_if_missing('User2') 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /spec/unit/resources/user/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | klass = OneviewSDK::API200::User 4 | describe 'oneview_test::user_delete' do 5 | let(:resource_name) { 'user' } 6 | include_context 'chef context' 7 | 8 | it 'deletes it when it exists' do 9 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(true) 10 | expect_any_instance_of(klass).to receive(:delete).and_return(true) 11 | expect(real_chef_run).to delete_oneview_user('User3') 12 | end 13 | 14 | it 'does nothing when it does not exist' do 15 | expect_any_instance_of(klass).to receive(:retrieve!).and_return(false) 16 | expect_any_instance_of(klass).to_not receive(:delete) 17 | expect(real_chef_run).to delete_oneview_user('User3') 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /spec/unit/resources/volume/repair_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::volume_repair' do 4 | let(:resource_name) { 'volume' } 5 | include_context 'chef context' 6 | 7 | let(:target_class) { OneviewSDK::API200::Volume } 8 | 9 | it 'removes it if it does exist' do 10 | expect_any_instance_of(target_class).to receive(:retrieve!).and_return(true) 11 | expect_any_instance_of(target_class).to receive(:repair).and_return(true) 12 | expect(real_chef_run).to repair_oneview_volume('VOL1') 13 | end 14 | 15 | it 'does nothing if it does not exist' do 16 | expect_any_instance_of(target_class).to receive(:retrieve!).and_return(false) 17 | expect_any_instance_of(target_class).to_not receive(:repair) 18 | expect(real_chef_run).to repair_oneview_volume('VOL1') 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /spec/unit/resources/volume_template/delete_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'oneview_test::volume_template_delete' do 4 | let(:resource_name) { 'volume_template' } 5 | include_context 'chef context' 6 | 7 | it 'deletes it when it exists' do 8 | expect_any_instance_of(OneviewSDK::VolumeTemplate).to receive(:retrieve!).and_return(true) 9 | expect_any_instance_of(OneviewSDK::VolumeTemplate).to receive(:delete).and_return(true) 10 | expect(real_chef_run).to delete_oneview_volume_template('VolumeTemplate1') 11 | end 12 | 13 | it 'does nothing when it does not exist' do 14 | expect_any_instance_of(OneviewSDK::VolumeTemplate).to receive(:retrieve!).and_return(false) 15 | expect_any_instance_of(OneviewSDK::VolumeTemplate).to_not receive(:delete) 16 | expect(real_chef_run).to delete_oneview_volume_template('VolumeTemplate1') 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /spec/unit/resources_image_streamer/golden_image/download_details_archive_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'image_streamer_test_api300::golden_image_download_details_archive' do 4 | let(:complete_resource_name) { 'image_streamer_golden_image' } 5 | include_context 'chef context' 6 | 7 | let(:base_sdk) { OneviewSDK::ImageStreamer::API300 } 8 | 9 | it 'downloads the details if it exists' do 10 | allow(File).to receive(:exist?).and_call_original 11 | allow(File).to receive(:exist?).with('details.txt').and_return(false) 12 | expect_any_instance_of(base_sdk::GoldenImage).to receive(:retrieve!).and_return(true) 13 | expect_any_instance_of(base_sdk::GoldenImage).to receive(:download_details_archive).with('details.txt').and_return(true) 14 | expect(real_chef_run).to download_image_streamer_golden_image_details_archive('GoldenImage1') 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /spec/unit/resources_image_streamer/golden_image/download_spec.rb: -------------------------------------------------------------------------------- 1 | require_relative './../../../spec_helper' 2 | 3 | describe 'image_streamer_test_api300::golden_image_download' do 4 | let(:complete_resource_name) { 'image_streamer_golden_image' } 5 | include_context 'chef context' 6 | 7 | let(:base_sdk) { OneviewSDK::ImageStreamer::API300 } 8 | 9 | it 'downloads it if it exists' do 10 | allow(File).to receive(:exist?).and_call_original 11 | allow(File).to receive(:exist?).with('golden_image.zip').and_return(false) 12 | expect_any_instance_of(base_sdk::GoldenImage).to receive(:retrieve!).and_return(true) 13 | expect_any_instance_of(base_sdk::GoldenImage).to receive(:download).with('golden_image.zip').and_return(true) 14 | expect(real_chef_run).to download_image_streamer_golden_image('GoldenImage1') 15 | end 16 | end 17 | --------------------------------------------------------------------------------