On Mon, Jun 28, 2010 at 07:19:12PM +0100, [email protected] wrote:
> From: martyntaylor <[email protected]>
> 
> ---
>  src/features/pool.feature                   |   14 +++++++-------
>  src/features/step_definitions/pool_steps.rb |   11 ++++++++++-
>  2 files changed, 17 insertions(+), 8 deletions(-)
> 
> diff --git a/src/features/pool.feature b/src/features/pool.feature
> index 22a7b33..9e27499 100644
> --- a/src/features/pool.feature
> +++ b/src/features/pool.feature
> @@ -23,18 +23,18 @@ Feature: Manage Pools
>    Scenario: View Pool's Hardware Profiles
>         Given I own a pool named "mockpool"
>         And the Pool has the following Hardware Profiles:
> -       | name      | memory | storage | architecture |
> -       | m1-small  | 1.7    | 160.0   | i386         |
> -       | m1-large  | 7.5    | 850.0   | x86_64       |
> -       | m1-xlarge | 15.0   | 1690.0  | x86_64       |
> +       | name      | memory | cpu |storage  | architecture |
> +       | m1-small  | 1740   | 2   | 160.0   | i386         |
> +       | m1-large  | 4096   | 4   | 850.0   | x86_64       |
> +       | m1-xlarge | 8192   | 8   | 1690.0  | x86_64       |
>         And I am on the homepage
>         When I follow "mockpool"
>         Then I should be on the show pool page
>         When I follow "Hardware Profiles"
>         Then I should see the following:
> -       | m1-small  | 1.7  | 160.0   | i386   |
> -       | m1-large  | 7.5  | 850.0   | x86_64 |
> -       | m1-xlarge | 15.0 | 1690.0  | x86_64 |
> +       | m1-small  | 1740 | 2 | 160.0  | i386   |
> +       | m1-large  | 4096 | 4 | 850.0  | x86_64 |
> +       | m1-xlarge | 8192 | 8 | 1690.0 | x86_64 |
>  
>    Scenario: View Pool's Realms
>         Given I own a pool named "mockpool"
> diff --git a/src/features/step_definitions/pool_steps.rb 
> b/src/features/step_definitions/pool_steps.rb
> index c58fe73..af0cba1 100644
> --- a/src/features/step_definitions/pool_steps.rb
> +++ b/src/features/step_definitions/pool_steps.rb
> @@ -10,7 +10,16 @@ end
>  
>  Given /^the Pool has the following Hardware Profiles:$/ do |table|
>    table.hashes.each do |hash|
> -    @pool.hardware_profiles << Factory(:hardware_profile_auto, hash)
> +    memory = Factory(:mock_hwp1_memory, :value => hash[:memory])
> +    storage = Factory(:mock_hwp1_storage, :value => hash[:storage])
> +    cpu = Factory(:mock_hwp1_cpu, :value => hash[:cpu])
> +    arch = Factory(:mock_hwp1_arch, :value => hash[:architecture])
> +    @pool.hardware_profiles << Factory(:mock_hwp1,
> +                                       :name => hash[:name],
> +                                       :memory => memory,
> +                                       :cpu => cpu,
> +                                       :storage => storage,
> +                                       :architecture => arch)
>    end
>  end
>  
> -- 
> 1.6.6.1
> 
> _______________________________________________
> deltacloud-devel mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Works for me, ACK.

Steve
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to