Sha256: 9ce8c588c9651bf8ef648cbea7fb5f54f66f2011836c6adbaf0a7d4a3cb7c554

Contents?: true

Size: 783 Bytes

Versions: 23

Compression:

Stored size: 783 Bytes

Contents

Shindo.tests('Fog::Compute[:bluebox] | 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?
      Fog::Compute[:bluebox].get_product(@product_id).body
    end

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

  end

  tests('failure') do

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

  end

end

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
fog-1.1.2 tests/bluebox/requests/compute/product_tests.rb
fog_tractical-1.1.4 tests/bluebox/requests/compute/product_tests.rb
fog_tractical-1.1.3 tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
fog-1.1.1 tests/bluebox/requests/compute/product_tests.rb
fog-1.1.0 tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
tag-fog-1.0.1 tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/tests/bluebox/requests/compute/product_tests.rb
fog-1.0.0 tests/bluebox/requests/compute/product_tests.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/tests/compute/requests/bluebox/product_tests.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/tests/compute/requests/bluebox/product_tests.rb
fog-0.11.0 tests/compute/requests/bluebox/product_tests.rb
fog-0.10.0 tests/compute/requests/bluebox/product_tests.rb