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 connection templates
- Loading branch information
1 parent
fd41592
commit e721c86
Showing
13 changed files
with
42 additions
and
39 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
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
6 changes: 3 additions & 3 deletions
6
spec/integration/resource/api600/c7000/connection_template/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::ConnectionTemplate | ||
klass = OneviewSDK::API600::C7000::ConnectionTemplate | ||
RSpec.describe klass, integration: true, type: UPDATE do | ||
let(:current_client) { $client_500 } | ||
include_examples 'ConnectionTemplateUpdateExample', 'integration api500 context' | ||
let(:current_client) { $client_600 } | ||
include_examples 'ConnectionTemplateUpdateExample', '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
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
6 changes: 3 additions & 3 deletions
6
spec/integration/resource/api600/synergy/connection_template/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::ConnectionTemplate | ||
klass = OneviewSDK::API600::Synergy::ConnectionTemplate | ||
RSpec.describe klass, integration: true, type: UPDATE do | ||
let(:current_client) { $client_500_synergy } | ||
include_examples 'ConnectionTemplateUpdateExample', 'integration api500 context' | ||
let(:current_client) { $client_600_synergy } | ||
include_examples 'ConnectionTemplateUpdateExample', 'integration api600 context' | ||
end |
12 changes: 6 additions & 6 deletions
12
spec/unit/resource/api600/c7000/connection_template_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,17 +1,17 @@ | ||
require 'spec_helper' | ||
|
||
RSpec.describe OneviewSDK::API500::C7000::ConnectionTemplate do | ||
RSpec.describe OneviewSDK::API600::C7000::ConnectionTemplate do | ||
include_context 'shared context' | ||
|
||
it 'inherits from OneviewSDK::API300::C7000::ConnectionTemplate' do | ||
expect(described_class).to be < OneviewSDK::API300::C7000::ConnectionTemplate | ||
it 'inherits from OneviewSDK::API500::C7000::ConnectionTemplate' do | ||
expect(described_class).to be < OneviewSDK::API500::C7000::ConnectionTemplate | ||
end | ||
|
||
describe '#get_default' do | ||
it 'verify endpoint' do | ||
expect(@client_500).to receive(:rest_get).with('/rest/connection-templates/defaultConnectionTemplate').and_return(FakeResponse.new({})) | ||
connection = described_class.get_default(@client_500) | ||
expect(connection).to be_an_instance_of OneviewSDK::API500::C7000::ConnectionTemplate | ||
expect(@client_600).to receive(:rest_get).with('/rest/connection-templates/defaultConnectionTemplate').and_return(FakeResponse.new({})) | ||
connection = described_class.get_default(@client_600) | ||
expect(connection).to be_an_instance_of OneviewSDK::API600::C7000::ConnectionTemplate | ||
end | ||
end | ||
end |
12 changes: 6 additions & 6 deletions
12
spec/unit/resource/api600/synergy/connection_template_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,17 +1,17 @@ | ||
require 'spec_helper' | ||
|
||
RSpec.describe OneviewSDK::API500::Synergy::ConnectionTemplate do | ||
RSpec.describe OneviewSDK::API600::Synergy::ConnectionTemplate do | ||
include_context 'shared context' | ||
|
||
it 'inherits from OneviewSDK::API300::Synergy::ConnectionTemplate' do | ||
expect(described_class).to be < OneviewSDK::API300::Synergy::ConnectionTemplate | ||
it 'inherits from OneviewSDK::API500::Synergy::ConnectionTemplate' do | ||
expect(described_class).to be < OneviewSDK::API500::Synergy::ConnectionTemplate | ||
end | ||
|
||
describe '#get_default' do | ||
it 'verify endpoint' do | ||
expect(@client_500).to receive(:rest_get).with('/rest/connection-templates/defaultConnectionTemplate').and_return(FakeResponse.new({})) | ||
connection = described_class.get_default(@client_500) | ||
expect(connection).to be_an_instance_of OneviewSDK::API500::Synergy::ConnectionTemplate | ||
expect(@client_600).to receive(:rest_get).with('/rest/connection-templates/defaultConnectionTemplate').and_return(FakeResponse.new({})) | ||
connection = described_class.get_default(@client_600) | ||
expect(connection).to be_an_instance_of OneviewSDK::API600::Synergy::ConnectionTemplate | ||
end | ||
end | ||
end |