Skip to content

Commit

Permalink
Merge pull request #457 from HewlettPackard/API1800_osdp
Browse files Browse the repository at this point in the history
Release PR with fixes for issues 454, 455
  • Loading branch information
VenkateshRavula authored Aug 4, 2020
2 parents a1f2818 + 4b45b6c commit d3706de
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## v5.15.0

#### Notes
This release extends support to OneView Rest API version 1800 (OneView v5.30) for the Synergy hardware variant to the following features:

#### Features supported
- OS Deployment Plan

#### Bug fixes & Enhancements
- [#454](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/454)OSDP resource is missing in API1800
- [#455](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/455)sasjbod helper function is missing in API1800 server profile resource

## v5.14.0

#### Notes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ The Docker Store image tag consist of two sections: <sdk_version-OV_version>
```bash
# Download and store a local copy of oneview-sdk-ruby and
# use it as a Docker image.
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.14.0-OV5.3
$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.15.0-OV5.3
# Run docker commands below given, which will in turn create
# a sh session where you can create files, issue commands and execute the examples.
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.14.0-OV5.3 /bin/sh
$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-ruby:v5.15.0-OV5.3 /bin/sh
```

### Local Setup
Expand Down
4 changes: 2 additions & 2 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ OneviewSDK::Datacenter.find_by(@client, width: 11000).map(&:remove)
|<sub>/rest/network-sets/{id}/withoutEthernet</sub> | 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: |
|<sub>/rest/network-sets/{id}</sub> | PATCH | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: |:heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |
| **OS Deployment Plans** |
|<sub>/rest/os-deployment-plans/</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/os-deployment-plans/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/os-deployment-plans/</sub> | 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: |
|<sub>/rest/os-deployment-plans/{id}</sub> | 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: |
| **Power Devices** |
|<sub>/rest/power-devices</sub> | GET | :white_check_mark: | :white_check_mark: |
|<sub>/rest/power-devices</sub> | POST | :white_check_mark: | :white_check_mark: |
Expand Down
22 changes: 22 additions & 0 deletions lib/oneview-sdk/resource/api1800/synergy/os_deployment_plan.rb
Original file line number Diff line number Diff line change
@@ -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/os_deployment_plan'

module OneviewSDK
module API1800
module Synergy
# OS Deployment Plan resource implementation for API1800 Synergy
class OSDeploymentPlan < OneviewSDK::API1600::Synergy::OSDeploymentPlan
end
end
end
end
3 changes: 3 additions & 0 deletions lib/oneview-sdk/resource/api1800/synergy/server_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
# 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/server_profile'
require_relative '../c7000/server_profile'

module OneviewSDK
module API1800
module Synergy
# Server profile resource implementation for API1800 Synergy
class ServerProfile < OneviewSDK::API1800::C7000::ServerProfile
extend OneviewSDK::API300::Synergy::SASLogicalJBODHelper
include OneviewSDK::API300::Synergy::ServerProfileHelper
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/oneview-sdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

# Gem version defined here
module OneviewSDK
VERSION = '5.14.0'.freeze
VERSION = '5.15.0'.freeze
end
20 changes: 20 additions & 0 deletions spec/unit/resource/api1800/synergy/os_deployment_plan_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# (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 'spec_helper'

RSpec.describe OneviewSDK::API1800::Synergy::OSDeploymentPlan do
include_context 'shared context'

it 'inherits from OneviewSDK::API1600::Synergy::OSDeploymentPlan' do
expect(described_class).to be < OneviewSDK::API1600::Synergy::OSDeploymentPlan
end
end

0 comments on commit d3706de

Please sign in to comment.