Skip to content

Commit

Permalink
Adding api600 support to SAS-LI
Browse files Browse the repository at this point in the history
  • Loading branch information
soodpr committed Mar 16, 2018
1 parent 3142436 commit febbb41
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@ This release adds support to OneView Rest API version 600 for the hardware varia
- Logical Interconnect
- SAS Interconnect
- SAS Interconnect Type
- SAS Logical Interconnect
- Server Hardware

## v5.3.0
Expand Down
16 changes: 8 additions & 8 deletions endpoints-support.md
Expand Up @@ -389,14 +389,14 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|<sub>/rest/sas-logical-interconnect-groups/{id}</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnect-groups/{id}</sub> | DELETE | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
| **SAS Logical Interconnects** |
|<sub>/rest/sas-logical-interconnects</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/firmware</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/firmware</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/compliance</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/compliance</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{lsId}/configuration</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/replaceDriveEnclosure</sub> | POST | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/firmware</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/firmware</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/compliance</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/compliance</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{lsId}/configuration</sub> | PUT | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-interconnects/{id}/replaceDriveEnclosure</sub> | POST | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| **SAS Logical JBOD Attachments** |
|<sub>/rest/sas-logical-jbod-attachments</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
|<sub>/rest/sas-logical-jbod-attachments/{id}</sub> | GET | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: |
Expand Down
3 changes: 2 additions & 1 deletion examples/shared_samples/sas_logical_interconnect.rb
Expand Up @@ -12,11 +12,12 @@
require_relative '../_client' # Gives access to @client

# Supported APIs:
# - 300, 500 both api versions only for Synergy
# - 300, 500, 600 both api versions only for Synergy

# Resources that can be created according to parameters:
# api_version = 300 & variant = Synergy to OneviewSDK::API300::Synergy::SASLogicalInterconnect
# api_version = 500 & variant = Synergy to OneviewSDK::API500::Synergy::SASLogicalInterconnect
# api_version = 600 & variant = Synergy to OneviewSDK::API600::Synergy::SASLogicalInterconnect

# Resource Class used in this sample
sas_log_int_class = OneviewSDK.resource_named('SASLogicalInterconnect', @client.api_version)
Expand Down
Expand Up @@ -9,13 +9,13 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require_relative '../../api300/synergy/sas_logical_interconnect'
require_relative '../../api500/synergy/sas_logical_interconnect'

module OneviewSDK
module API600
module Synergy
# SAS Logical interconnect group resource implementation for API600 Synergy
class SASLogicalInterconnect < OneviewSDK::API300::Synergy::SASLogicalInterconnect
class SASLogicalInterconnect < OneviewSDK::API500::Synergy::SASLogicalInterconnect
end
end
end
Expand Down
@@ -1,7 +1,7 @@
require 'spec_helper'

klass = OneviewSDK::API500::Synergy::SASLogicalInterconnect
klass = OneviewSDK::API600::Synergy::SASLogicalInterconnect
RSpec.describe klass, integration: true, type: CREATE, sequence: seq(klass) do
let(:current_client) { $client_500_synergy }
include_examples 'SASLogicalInterconnectCreateExample', 'integration api500 context'
let(:current_client) { $client_600_synergy }
include_examples 'SASLogicalInterconnectCreateExample', 'integration api600 context'
end
@@ -1,7 +1,7 @@
require 'spec_helper'

klass = OneviewSDK::API500::Synergy::SASLogicalInterconnect
klass = OneviewSDK::API600::Synergy::SASLogicalInterconnect
RSpec.describe klass, integration: true, type: DELETE, sequence: rseq(klass) do
let(:current_client) { $client_500_synergy }
include_examples 'SASLogicalInterconnectDeleteExample', 'integration api500 context'
let(:current_client) { $client_600_synergy }
include_examples 'SASLogicalInterconnectDeleteExample', 'integration api600 context'
end
@@ -1,9 +1,9 @@
require 'spec_helper'

klass = OneviewSDK::API500::Synergy::SASLogicalInterconnect
klass = OneviewSDK::API600::Synergy::SASLogicalInterconnect
RSpec.describe klass, integration: true, type: UPDATE do
let(:current_client) { $client_500_synergy }
let(:firmware_driver_class) { OneviewSDK::API500::Synergy::FirmwareDriver }
let(:current_client) { $client_600_synergy }
let(:firmware_driver_class) { OneviewSDK::API600::Synergy::FirmwareDriver }

include_examples 'SASLogicalInterconnectUpdateExample', 'integration api500 context'
include_examples 'SASLogicalInterconnectUpdateExample', 'integration api600 context'
end
@@ -1,9 +1,9 @@
require 'spec_helper'

RSpec.describe OneviewSDK::API500::Synergy::SASLogicalInterconnect do
RSpec.describe OneviewSDK::API600::Synergy::SASLogicalInterconnect do
include_context 'shared context'

it 'inherits from OneviewSDK::API300::Synergy::SASLogicalInterconnect' do
expect(described_class).to be < OneviewSDK::API300::Synergy::SASLogicalInterconnect
it 'inherits from OneviewSDK::API500::Synergy::SASLogicalInterconnect' do
expect(described_class).to be < OneviewSDK::API500::Synergy::SASLogicalInterconnect
end
end

0 comments on commit febbb41

Please sign in to comment.