Skip to content

Commit

Permalink
Merge pull request #148 from Rainforest/backward_compatibility_compli…
Browse files Browse the repository at this point in the history
…ance

Fixed integration tests - OV3.0 (API200) Compliance
  • Loading branch information
Henrique Diomede committed Jul 29, 2016
2 parents d5eae7e + 332fb54 commit d567820
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion spec/integration/resource/san_manager/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'value' => $secrets['san_manager_password']
},
{
'name' => 'UseSl',
'name' => 'UseSsl',
'value' => true
}
]
Expand Down
23 changes: 10 additions & 13 deletions spec/integration/resource/server_profile/update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@

describe '#self.get_available_servers' do
it 'retrieves available servers without errors' do
expect { OneviewSDK::ServerProfile.get_available_servers($client) }.to raise_error
expect { OneviewSDK::ServerProfile.get_available_servers($client) }.to_not raise_error
end
end

describe '#self.get_available_storage_system' do
it 'is expected to FAIL: Bug in OneView/Documentation'
it 'retrieves available storage system without errors' do
it 'retrieves available storage system without errors. FAIL: Bug in OneView/Documentation' do
query_options = {
'enclosure_group' => @enclosure_group,
'server_hardware_type' => @server_hardware_type,
Expand Down Expand Up @@ -80,23 +79,21 @@
end

describe '#get_compliance_preview' do
it 'is pending: It is needed to associate the Server Profile with a Server Profile Template before trying this operation'
# it 'shows compliance preview' do
# expect { @item3.get_compliance_preview }.to_not raise_error
# end
it 'shows compliance preview' do
expect { @item3.get_compliance_preview }.to_not raise_error
end
end

describe '#update_from_template' do
it 'is pending: It is needed to associate the Server Profile with a Server Profile Template before trying this operation'
# it 'makes the Server Profile compliant with the template' do
# expect { @item3.update_from_template }.to_not raise_error
# end
it 'makes the Server Profile compliant with the template' do
expect { @item3.update_from_template }.to_not raise_error
end
end

describe '#available_networks' do
describe '#get_available_networks' do
it 'Gets available networks' do
item = OneviewSDK::ServerProfile.find_by($client, name: SERVER_PROFILE_NAME).first
expect { item.available_networks }.not_to raise_error
expect { item.get_available_networks }.not_to raise_error
end
end

Expand Down

0 comments on commit d567820

Please sign in to comment.