Sha256: 3dfaf0bdc76d6fbc78f3c49f78f47576a8fbc47021798308fad3befcc88f85cc

Contents?: true

Size: 672 Bytes

Versions: 8

Compression:

Stored size: 672 Bytes

Contents

Shindo.tests('Bluebox::Compute | product requests', ['bluebox']) do

  tests('success') do

    @product_id   = '94fd37a7-2606-47f7-84d5-9000deda52ae' # 1 GB

    tests("get_product('#{@product_id}')").formats(Bluebox::Compute::Formats::PRODUCT) do
      Bluebox[:compute].get_product(@product_id).body
    end

    tests("get_products").formats([Bluebox::Compute::Formats::PRODUCT]) do
      Bluebox[:compute].get_products.body
    end

  end

  tests('failure') do

    tests("get_product('00000000-0000-0000-0000-000000000000')").raises(Fog::Bluebox::Compute::NotFound) do
      Bluebox[:compute].get_product('00000000-0000-0000-0000-000000000000')
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.3.7 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.6 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.5 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.4 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.3 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.2 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.1 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.0 tests/bluebox/requests/compute/product_tests.rb