Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Api600 support for Server Hardware ypes
- Loading branch information
1 parent
fd41592
commit 772dff1
Showing
13 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
spec/integration/resource/api600/c7000/server_hardware_type/create_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
require 'spec_helper' | ||
|
||
klass = OneviewSDK::API500::C7000::ServerHardwareType | ||
klass = OneviewSDK::API600::C7000::ServerHardwareType | ||
RSpec.describe klass, integration: true, type: CREATE, sequence: seq(klass) do | ||
let(:current_client) { $client_500 } | ||
let(:server_hardware_class) { OneviewSDK::API500::C7000::ServerHardware } | ||
include_examples 'ServerHardwareTypeCreateExample', 'integration api500 context', true | ||
let(:current_client) { $client_600 } | ||
let(:server_hardware_class) { OneviewSDK::API600::C7000::ServerHardware } | ||
include_examples 'ServerHardwareTypeCreateExample', 'integration api600 context', true | ||
end |
10 changes: 5 additions & 5 deletions
10
spec/integration/resource/api600/c7000/server_hardware_type/delete_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
klass = OneviewSDK::API500::C7000::ServerHardwareType | ||
klass = OneviewSDK::API600::C7000::ServerHardwareType | ||
RSpec.describe klass, integration: true, type: DELETE, sequence: rseq(klass) do | ||
include_context 'integration api500 context' | ||
let(:current_client) { $client_500 } | ||
let(:server_hardware) { OneviewSDK::API500::C7000::ServerHardware.find_by(current_client, name: $secrets['server_hardware2_ip']).first } | ||
include_context 'integration api600 context' | ||
let(:current_client) { $client_600 } | ||
let(:server_hardware) { OneviewSDK::API600::C7000::ServerHardware.find_by(current_client, name: $secrets['server_hardware2_ip']).first } | ||
|
||
include_examples 'ServerHardwareTypeDeleteExample', 'integration api500 context', true | ||
include_examples 'ServerHardwareTypeDeleteExample', 'integration api600 context', true | ||
end |
6 changes: 3 additions & 3 deletions
6
spec/integration/resource/api600/c7000/server_hardware_type/update_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
klass = OneviewSDK::API500::C7000::ServerHardwareType | ||
klass = OneviewSDK::API600::C7000::ServerHardwareType | ||
RSpec.describe klass, integration: true, type: UPDATE do | ||
let(:current_client) { $client_500 } | ||
include_examples 'ServerHardwareTypeUpdateExample', 'integration api500 context' | ||
let(:current_client) { $client_600 } | ||
include_examples 'ServerHardwareTypeUpdateExample', 'integration api600 context' | ||
end |
6 changes: 3 additions & 3 deletions
6
spec/integration/resource/api600/synergy/server_hardware_type/create_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
klass = OneviewSDK::API500::Synergy::ServerHardwareType | ||
klass = OneviewSDK::API600::Synergy::ServerHardwareType | ||
RSpec.describe klass, integration: true, type: CREATE, sequence: seq(klass) do | ||
let(:current_client) { $client_500_synergy } | ||
include_examples 'ServerHardwareTypeCreateExample', 'integration api500 context' | ||
let(:current_client) { $client_600_synergy } | ||
include_examples 'ServerHardwareTypeCreateExample', 'integration api600 context' | ||
end |
10 changes: 5 additions & 5 deletions
10
spec/integration/resource/api600/synergy/server_hardware_type/delete_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
require 'spec_helper' | ||
|
||
klass = OneviewSDK::API500::Synergy::ServerHardwareType | ||
klass = OneviewSDK::API600::Synergy::ServerHardwareType | ||
RSpec.describe klass, integration: true, type: DELETE, sequence: rseq(klass) do | ||
include_context 'integration api500 context' | ||
let(:current_client) { $client_500_synergy } | ||
let(:server_hardware) { OneviewSDK::API500::Synergy::ServerHardware.get_all(current_client).first } | ||
include_context 'integration api600 context' | ||
let(:current_client) { $client_600_synergy } | ||
let(:server_hardware) { OneviewSDK::API600::Synergy::ServerHardware.get_all(current_client).first } | ||
|
||
include_examples 'ServerHardwareTypeDeleteExample', 'integration api500 context' | ||
include_examples 'ServerHardwareTypeDeleteExample', 'integration api600 context' | ||
end |
6 changes: 3 additions & 3 deletions
6
spec/integration/resource/api600/synergy/server_hardware_type/update_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
klass = OneviewSDK::API500::Synergy::ServerHardwareType | ||
klass = OneviewSDK::API600::Synergy::ServerHardwareType | ||
RSpec.describe klass, integration: true, type: UPDATE do | ||
let(:current_client) { $client_500_synergy } | ||
include_examples 'ServerHardwareTypeUpdateExample', 'integration api500 context' | ||
let(:current_client) { $client_600_synergy } | ||
include_examples 'ServerHardwareTypeUpdateExample', 'integration api600 context' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
require 'spec_helper' | ||
|
||
RSpec.describe OneviewSDK::API500::C7000::ServerHardwareType do | ||
RSpec.describe OneviewSDK::API600::C7000::ServerHardwareType do | ||
include_context 'shared context' | ||
|
||
it 'inherits from OneviewSDK::API300::C7000::ServerHardwareType' do | ||
expect(described_class).to be < OneviewSDK::API300::C7000::ServerHardwareType | ||
it 'inherits from OneviewSDK::API500::C7000::ServerHardwareType' do | ||
expect(described_class).to be < OneviewSDK::API500::C7000::ServerHardwareType | ||
end | ||
end |
6 changes: 3 additions & 3 deletions
6
spec/unit/resource/api600/synergy/server_hardware_type_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
require 'spec_helper' | ||
|
||
RSpec.describe OneviewSDK::API500::Synergy::ServerHardwareType do | ||
RSpec.describe OneviewSDK::API600::Synergy::ServerHardwareType do | ||
include_context 'shared context' | ||
|
||
it 'inherits from OneviewSDK::API300::Synergy::ServerHardwareType' do | ||
expect(described_class).to be < OneviewSDK::API300::Synergy::ServerHardwareType | ||
it 'inherits from OneviewSDK::API500::Synergy::ServerHardwareType' do | ||
expect(described_class).to be < OneviewSDK::API500::Synergy::ServerHardwareType | ||
end | ||
end |