You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/11/06 18:04:47 UTC
git commit: Fix failing openstack hw_profile server tests (.name vs
.id)
Updated Branches:
refs/heads/master cf5a3ae7b -> 1a2f1b64e
Fix failing openstack hw_profile server tests (.name vs .id)
was broken with commit cf5a3ae7b2e27b1e28d1e9cb33629e6ae8a9a824
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/1a2f1b64
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/1a2f1b64
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/1a2f1b64
Branch: refs/heads/master
Commit: 1a2f1b64e45ba58e9d3af2fd662896d3df41ece1
Parents: cf5a3ae
Author: marios <ma...@redhat.com>
Authored: Tue Nov 6 18:41:13 2012 +0200
Committer: marios <ma...@redhat.com>
Committed: Tue Nov 6 18:41:13 2012 +0200
----------------------------------------------------------------------
.../drivers/openstack/hardware_profiles_test.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1a2f1b64/server/tests/drivers/openstack/hardware_profiles_test.rb
----------------------------------------------------------------------
diff --git a/server/tests/drivers/openstack/hardware_profiles_test.rb b/server/tests/drivers/openstack/hardware_profiles_test.rb
index ffee21a..b35cadb 100644
--- a/server/tests/drivers/openstack/hardware_profiles_test.rb
+++ b/server/tests/drivers/openstack/hardware_profiles_test.rb
@@ -30,14 +30,14 @@ describe 'OpenStackDriver HardwareProfiles' do
hardware_profiles.wont_be_empty
hardware_profiles.must_be_kind_of Array
hardware_profiles.size.must_equal 1
- hardware_profiles.first.name.must_equal '1'
+ hardware_profiles.first.id.must_equal '1'
@driver.hardware_profiles(:id => 'unknown').must_be_empty
end
it 'must allow to retrieve single hardware_profile' do
hardware_profile = @driver.hardware_profile :id => '1'
hardware_profile.wont_be_nil
- hardware_profile.name.must_equal '1'
+ hardware_profile.id.must_equal '1'
hardware_profile.properties.must_be_kind_of Array
hardware_profile.properties.wont_be_empty
@driver.hardware_profile(:id => 'unknown').must_be_nil