Sha256: 5274a536de411bb7f3a5662676b37452efc931c45487d53b217a15f521fb0390

Contents?: true

Size: 893 Bytes

Versions: 17

Compression:

Stored size: 893 Bytes

Contents

Shindo.tests('Brightbox::Compute | server type requests', ['brightbox']) do

  tests('success') do

    tests("#list_server_types").formats(Brightbox::Compute::Formats::Collection::SERVER_TYPES) do
      pending if Fog.mocking?
      data = Brightbox[:compute].list_server_types
      @server_type_id = data.first["id"]
      data
    end

    tests("#get_server_type('#{@server_type_id}')").formats(Brightbox::Compute::Formats::Full::SERVER_TYPE) do
      pending if Fog.mocking?
      Brightbox[:compute].get_server_type(@server_type_id)
    end

  end

  tests('failure') do

    tests("#get_server_type('typ-00000')").raises(Excon::Errors::NotFound) do
      pending if Fog.mocking?
      Brightbox[:compute].get_server_type('typ-00000')
    end

    tests("#get_server").raises(ArgumentError) do
      pending if Fog.mocking?
      Brightbox[:compute].get_server_type
    end

  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
fog-0.8.2 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.8.1 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.8.0 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.7.2 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.7.1 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.7.0 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.6.0 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.5.3 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.5.2 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.5.1 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.5.0 tests/compute/requests/brightbox/server_type_tests.rb
phpfog-fog-0.4.1.3 tests/compute/requests/brightbox/server_type_tests.rb
phpfog-fog-0.4.1.2 tests/compute/requests/brightbox/server_type_tests.rb
phpfog-fog-0.4.1.1 tests/compute/requests/brightbox/server_type_tests.rb
phpfog-fog-0.4.1 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.4.1 tests/compute/requests/brightbox/server_type_tests.rb
fog-0.4.0 tests/compute/requests/brightbox/server_type_tests.rb