Sha256: b04220bcc764bfe4d24e1f645879de519a78552bc5a8f703c64abe9521e5ea86

Contents?: true

Size: 762 Bytes

Versions: 44

Compression:

Stored size: 762 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
      pending if Fog.mocking?
      Bluebox[:compute].get_product(@product_id).body
    end

    tests("get_products").formats([Bluebox::Compute::Formats::PRODUCT]) do
      pending if Fog.mocking?
      Bluebox[:compute].get_products.body
    end

  end

  tests('failure') do

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

  end

end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
fog-0.8.2 tests/compute/requests/bluebox/product_tests.rb
fog-0.8.1 tests/compute/requests/bluebox/product_tests.rb
fog-0.8.0 tests/compute/requests/bluebox/product_tests.rb
fog-0.7.2 tests/compute/requests/bluebox/product_tests.rb
fog-0.7.1 tests/compute/requests/bluebox/product_tests.rb
fog-0.7.0 tests/compute/requests/bluebox/product_tests.rb
fog-0.6.0 tests/compute/requests/bluebox/product_tests.rb
fog-0.5.3 tests/compute/requests/bluebox/product_tests.rb
fog-0.5.2 tests/compute/requests/bluebox/product_tests.rb
fog-0.5.1 tests/compute/requests/bluebox/product_tests.rb
fog-0.5.0 tests/compute/requests/bluebox/product_tests.rb
phpfog-fog-0.4.1.3 tests/compute/requests/bluebox/product_tests.rb
phpfog-fog-0.4.1.2 tests/compute/requests/bluebox/product_tests.rb
phpfog-fog-0.4.1.1 tests/compute/requests/bluebox/product_tests.rb
phpfog-fog-0.4.1 tests/compute/requests/bluebox/product_tests.rb
fog-0.4.1 tests/compute/requests/bluebox/product_tests.rb
fog-0.4.0 tests/compute/requests/bluebox/product_tests.rb
fog-0.3.34 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.33 tests/bluebox/requests/compute/product_tests.rb
fog-0.3.32 tests/bluebox/requests/compute/product_tests.rb