From: martyntaylor <[email protected]>
---
src/features/pool.feature | 11 +++++------
src/features/step_definitions/pool_steps.rb | 5 +++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/features/pool.feature b/src/features/pool.feature
index 7308dd4..22a7b33 100644
--- a/src/features/pool.feature
+++ b/src/features/pool.feature
@@ -66,9 +66,8 @@ Feature: Manage Pools
Then I should be on the show pool page
When I follow "Quota"
Then I should see the following:
- | Resource | Max Capacity | Used Capacity | Free Capacity | %
Used |
- | Running Instances | 10 | 8 | 2 | 80.00
|
- | Running Memory | 10240 | 9240 | 1000 | 90.23
|
- | Running CPUs | 20 | 16 | 4 | 80.00
|
- | Total Instances | 15 | 15 | 0 |
100.00 |
- | Total Storage | 8500 | 8400 | 100 | 98.82
|
\ No newline at end of file
+ | Running Instances | 10 | 8 | 2 |
+ | Running Memory | 10240 | 9240 | 1000 |
+ | Running CPUs | 20 | 16 | 4 |
+ | Total Instances | 15 | 15 | 0 |
+ | Total Storage | 8500 | 8400 | 100 |
\ No newline at end of file
diff --git a/src/features/step_definitions/pool_steps.rb
b/src/features/step_definitions/pool_steps.rb
index 3be5808..c58fe73 100644
--- a/src/features/step_definitions/pool_steps.rb
+++ b/src/features/step_definitions/pool_steps.rb
@@ -50,11 +50,12 @@ Then /^I should see the following:$/ do |table|
end
Given /^the Pool has a quota with following capacities:$/ do |table|
- quota_hash = { "pool_id" => @pool, "pool" => @pool}
+ quota_hash = {}
table.hashes.each do |hash|
quota_hash[hash["resource"]] = hash["capacity"]
end
@quota = Factory(:quota, quota_hash)
- puts @quota.pool_id
+ @pool.quota_id = @quota.id
+ @pool.save
end
\ No newline at end of file
--
1.6.6.1
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel