From c7216c41b1275ce92d27a4a27ce019befd1d45c8 Mon Sep 17 00:00:00 2001 From: yuvirani Date: Wed, 15 Jul 2020 16:15:49 +0530 Subject: [PATCH] API1800 support for Enclosure and EG --- CHANGELOG.md | 2 + endpoints-support.md | 44 +++++++++---------- examples/shared_samples/enclosure.rb | 22 ++-------- examples/shared_samples/enclosure_group.rb | 36 +++++++-------- .../resource/api1800/c7000/enclosure.rb | 22 ++++++++++ .../resource/api1800/c7000/enclosure_group.rb | 22 ++++++++++ .../resource/api1800/synergy/enclosure.rb | 22 ++++++++++ .../api1800/synergy/enclosure_group.rb | 22 ++++++++++ .../api1800/c7000/enclosure_group_spec.rb | 10 +++++ .../resource/api1800/c7000/enclosure_spec.rb | 9 ++++ .../api1800/synergy/enclosure_group_spec.rb | 10 +++++ .../api1800/synergy/enclosure_spec.rb | 9 ++++ 12 files changed, 171 insertions(+), 59 deletions(-) create mode 100644 lib/oneview-sdk/resource/api1800/c7000/enclosure.rb create mode 100644 lib/oneview-sdk/resource/api1800/c7000/enclosure_group.rb create mode 100644 lib/oneview-sdk/resource/api1800/synergy/enclosure.rb create mode 100644 lib/oneview-sdk/resource/api1800/synergy/enclosure_group.rb create mode 100644 spec/unit/resource/api1800/c7000/enclosure_group_spec.rb create mode 100644 spec/unit/resource/api1800/c7000/enclosure_spec.rb create mode 100644 spec/unit/resource/api1800/synergy/enclosure_group_spec.rb create mode 100644 spec/unit/resource/api1800/synergy/enclosure_spec.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bf7c18cf..b46eda46b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This release extends support to OneView Rest API version 1800 (OneView v5.30) fo #### Features supported - Ethernet Network +- Enclosure +- Enclosure Group ## v5.13.0 diff --git a/endpoints-support.md b/endpoints-support.md index 2f966f1da..34f40922c 100644 --- a/endpoints-support.md +++ b/endpoints-support.md @@ -50,29 +50,29 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove) |/rest/drive-enclosures/{id}/port-map | GET | :white_check_mark: | :white_check_mark: | |/rest/drive-enclosures/{id}/refreshState | PUT | :white_check_mark: | :white_check_mark: | | **Enclosure Groups** | -|/rest/enclosure-groups | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosure-groups | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosure-groups/{id} | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosure-groups/{id} | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosure-groups/{id} | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosure-groups/{id}/script | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosure-groups/{id}/script | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosure-groups | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosure-groups | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosure-groups/{id} | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosure-groups/{id} | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosure-groups/{id} | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosure-groups/{id}/script | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | +|/rest/enclosure-groups/{id}/script | PUT | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | | **Enclosures** | -|/rest/enclosures | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id} | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id} | PATCH | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id} | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/configuration | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/environmentalConfiguration | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/environmentalConfiguration | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/refreshState | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/script | GET | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: | -|/rest/enclosures/{id}/sso | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/utilization | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/https/certificaterequest | POST | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/https/certificaterequest | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | -|/rest/enclosures/{id}/https/certificaterequest | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id} | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id} | PATCH | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id} | DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/configuration | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/environmentalConfiguration | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/environmentalConfiguration | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/refreshState | PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/script | GET | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: | :heavy_minus_sign: | +|/rest/enclosures/{id}/sso | GET | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | +|/rest/enclosures/{id}/utilization | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/https/certificaterequest | POST | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/https/certificaterequest | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | +|/rest/enclosures/{id}/https/certificaterequest | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: | | **Ethernet Networks** | |/rest/ethernet-networks | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |/rest/ethernet-networks | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | diff --git a/examples/shared_samples/enclosure.rb b/examples/shared_samples/enclosure.rb index 267d8d496..ad09c1de9 100644 --- a/examples/shared_samples/enclosure.rb +++ b/examples/shared_samples/enclosure.rb @@ -16,25 +16,11 @@ # It will create a bulk of ethernet networks and then delete them. # # Supported APIs: -# - 200, 300, 500, 600 - -# Resources that can be created according to parameters: -# api_version = 200 & variant = any to OneviewSDK::API200::Enclosure -# api_version = 300 & variant = C7000 to enclosure_class -# api_version = 300 & variant = Synergy to OneviewSDK::API300::Synergy::Enclosure -# api_version = 500 & variant = C7000 to OneviewSDK::API500::C7000::Enclosure -# api_version = 500 & variant = Synergy to OneviewSDK::API500::Synergy::Enclosure -# api_version = 600 & variant = C7000 to OneviewSDK::API600::C7000::Enclosure -# api_version = 600 & variant = Synergy to OneviewSDK::API600::Synergy::Enclosure -# api_version = 800 & variant = C7000 to OneviewSDK::API800::C7000::Enclosure -# api_version = 800 & variant = Synergy to OneviewSDK::API800::Synergy::Enclosure -# api_version = 1000 & variant = C7000 to OneviewSDK::API1000::C7000::Enclosure -# api_version = 1000 & variant = Synergy to OneviewSDK::API1000::Synergy::Enclosure -# api_version = 1200 & variant = C7000 to OneviewSDK::API1200::C7000::Enclosure -# api_version = 1200 & variant = Synergy to OneviewSDK::API1200::Synergy::Enclosure -# api_version = 1600 & variant = C7000 to OneviewSDK::API1600::C7000::Enclosure -# api_version = 1600 & variant = Synergy to OneviewSDK::API1600::Synergy::Enclosure +# - 200, 300, 500, 600, 800, 1000, 1200, 1600 and 1800 +# Supported Variants: +# C7000 and Synergy for all API versions +# # Resource Class used in this sample enclosure_class = OneviewSDK.resource_named('Enclosure', @client.api_version) diff --git a/examples/shared_samples/enclosure_group.rb b/examples/shared_samples/enclosure_group.rb index cf3e3e60b..b94e81ba7 100644 --- a/examples/shared_samples/enclosure_group.rb +++ b/examples/shared_samples/enclosure_group.rb @@ -15,24 +15,10 @@ # NOTE: This will create an enclosure group named 'OneViewSDK Test Enclosure Group', then delete it. # # Supported APIs: -# - 200, 300, 500, 600, 800, 1200, and 1600. - -# Resources that can be created according to parameters: -# api_version = 200 & variant = any to OneviewSDK::API200::EnclosureGroup -# api_version = 300 & variant = C7000 to encl_group_class -# api_version = 300 & variant = Synergy to OneviewSDK::API300::Synergy::EnclosureGroup -# api_version = 500 & variant = C7000 to OneviewSDK::API500::C7000::EnclosureGroup -# api_version = 500 & variant = Synergy to OneviewSDK::API500::Synergy::EnclosureGroup -# api_version = 600 & variant = C7000 to OneviewSDK::API600::C7000::EnclosureGroup -# api_version = 600 & variant = Synergy to OneviewSDK::API600::Synergy::EnclosureGroup -# api_version = 800 & variant = C7000 to OneviewSDK::API800::C7000::EnclosureGroup -# api_version = 800 & variant = Synergy to OneviewSDK::API800::Synergy::EnclosureGroup -# api_version = 1000 & variant = C7000 to OneviewSDK::API1000::C7000::EnclosureGroup -# api_version = 1000 & variant = Synergy to OneviewSDK::API1000::Synergy::EnclosureGroup -# api_version = 1200 & variant = C7000 to OneviewSDK::API1200::C7000::EnclosureGroup -# api_version = 1200 & variant = Synergy to OneviewSDK::API1200::Synergy::EnclosureGroup -# api_version = 1600 & variant = C7000 to OneviewSDK::API1600::C7000::EnclosureGroup -# api_version = 1600 & variant = Synergy to OneviewSDK::API1600::Synergy::EnclosureGroup +# - 200, 300, 500, 600, 800, 1200, 1600 and 1800. + +# Supported Variants: +# C7000 and Synergy for all API versions # Resource Class used in this sample encl_group_class = OneviewSDK.resource_named('EnclosureGroup', @client.api_version) @@ -43,7 +29,19 @@ type = 'enclosure group' encl_group_name = 'OneViewSDK Test Enclosure Group' -item = encl_group_class.new(@client, name: encl_group_name) +interconnect_bay_mapping = [ + { interconnectBay: 3, logicalInterconnectGroupUri: '/rest/logical-interconnect-groups/6aabd433-7ed0-4c59-963c-c3f36bbd4f85' }, + { interconnectBay: 6, logicalInterconnectGroupUri: '/rest/logical-interconnect-groups/6aabd433-7ed0-4c59-963c-c3f36bbd4f85' } +] + +options = { + name: encl_group_name, + ipAddressingMode: 'External', + enclosureCount: 1, + interconnectBayMappings: interconnect_bay_mapping +} + +item = encl_group_class.new(@client, options) lig = lig_class.get_all(@client).first item.add_logical_interconnect_group(lig) diff --git a/lib/oneview-sdk/resource/api1800/c7000/enclosure.rb b/lib/oneview-sdk/resource/api1800/c7000/enclosure.rb new file mode 100644 index 000000000..b2a2a50ce --- /dev/null +++ b/lib/oneview-sdk/resource/api1800/c7000/enclosure.rb @@ -0,0 +1,22 @@ +# (c) Copyright 2020 Hewlett Packard Enterprise Development LP +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed +# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +# language governing permissions and limitations under the License. + +require_relative '../../api1600/c7000/enclosure' + +module OneviewSDK + module API1800 + module C7000 + # Enclosure resource implementation for API1800 C7000 + class Enclosure < OneviewSDK::API1600::C7000::Enclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api1800/c7000/enclosure_group.rb b/lib/oneview-sdk/resource/api1800/c7000/enclosure_group.rb new file mode 100644 index 000000000..afb64808f --- /dev/null +++ b/lib/oneview-sdk/resource/api1800/c7000/enclosure_group.rb @@ -0,0 +1,22 @@ +# (C) Copyright 2020 Hewlett Packard Enterprise Development LP +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# You may not use this file except in compliance with the License. +# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed +# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +# language governing permissions and limitations under the License. + +require_relative '../../api1600/c7000/enclosure_group' + +module OneviewSDK + module API1800 + module C7000 + # Enclosure group resource implementation on API1800 C7000 + class EnclosureGroup < OneviewSDK::API1600::C7000::EnclosureGroup + end + end + end +end diff --git a/lib/oneview-sdk/resource/api1800/synergy/enclosure.rb b/lib/oneview-sdk/resource/api1800/synergy/enclosure.rb new file mode 100644 index 000000000..6b5f3d572 --- /dev/null +++ b/lib/oneview-sdk/resource/api1800/synergy/enclosure.rb @@ -0,0 +1,22 @@ +# (c) Copyright 2020 Hewlett Packard Enterprise Development LP +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed +# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +# language governing permissions and limitations under the License. + +require_relative '../../api1600/synergy/enclosure' + +module OneviewSDK + module API1800 + module Synergy + # Enclosure resource implementation for API1800 Synergy + class Enclosure < OneviewSDK::API1600::Synergy::Enclosure + end + end + end +end diff --git a/lib/oneview-sdk/resource/api1800/synergy/enclosure_group.rb b/lib/oneview-sdk/resource/api1800/synergy/enclosure_group.rb new file mode 100644 index 000000000..c8ed8576d --- /dev/null +++ b/lib/oneview-sdk/resource/api1800/synergy/enclosure_group.rb @@ -0,0 +1,22 @@ +# (C) Copyright 2020 Hewlett Packard Enterprise Development LP +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# You may not use this file except in compliance with the License. +# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed +# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific +# language governing permissions and limitations under the License. + +require_relative '../../api1600/synergy/enclosure_group' + +module OneviewSDK + module API1800 + module Synergy + # Enclosure group resource implementation on API1800 Synergy + class EnclosureGroup < OneviewSDK::API1600::Synergy::EnclosureGroup + end + end + end +end diff --git a/spec/unit/resource/api1800/c7000/enclosure_group_spec.rb b/spec/unit/resource/api1800/c7000/enclosure_group_spec.rb new file mode 100644 index 000000000..1a6d6186e --- /dev/null +++ b/spec/unit/resource/api1800/c7000/enclosure_group_spec.rb @@ -0,0 +1,10 @@ +require 'spec_helper' + +klass = OneviewSDK::API1800::C7000::EnclosureGroup +RSpec.describe klass do + include_context 'shared context' + + it 'inherits from API1600' do + expect(described_class).to be < OneviewSDK::API1600::C7000::EnclosureGroup + end +end diff --git a/spec/unit/resource/api1800/c7000/enclosure_spec.rb b/spec/unit/resource/api1800/c7000/enclosure_spec.rb new file mode 100644 index 000000000..c78b063c2 --- /dev/null +++ b/spec/unit/resource/api1800/c7000/enclosure_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API1600::C7000::Enclosure do + include_context 'shared context' + + it 'inherits from OneviewSDK::API1200::C7000::Enclosure' do + expect(described_class).to be < OneviewSDK::API1200::C7000::Enclosure + end +end diff --git a/spec/unit/resource/api1800/synergy/enclosure_group_spec.rb b/spec/unit/resource/api1800/synergy/enclosure_group_spec.rb new file mode 100644 index 000000000..77d7909a4 --- /dev/null +++ b/spec/unit/resource/api1800/synergy/enclosure_group_spec.rb @@ -0,0 +1,10 @@ +require 'spec_helper' + +klass = OneviewSDK::API1800::Synergy::EnclosureGroup +RSpec.describe klass do + include_context 'shared context' + + it 'inherits from API1600' do + expect(described_class).to be < OneviewSDK::API1600::Synergy::EnclosureGroup + end +end diff --git a/spec/unit/resource/api1800/synergy/enclosure_spec.rb b/spec/unit/resource/api1800/synergy/enclosure_spec.rb new file mode 100644 index 000000000..d3a8b8de6 --- /dev/null +++ b/spec/unit/resource/api1800/synergy/enclosure_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +RSpec.describe OneviewSDK::API1600::Synergy::Enclosure do + include_context 'shared context' + + it 'inherits from OneviewSDK::API1200::Synergy::Enclosure' do + expect(described_class).to be < OneviewSDK::API1200::Synergy::Enclosure + end +end