Sha256: 47ddb90adc0aed6431b967f5cab4ca6e50c2fcad691ef4b8c42f7d0339e61fac

Contents?: true

Size: 776 Bytes

Versions: 20

Compression:

Stored size: 776 Bytes

Contents

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

  tests('success') do

    unless Fog.mocking?
      server = Brightbox[:compute].servers.first
      @interface_id = server.interfaces.first["id"]
    end

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

  end

  tests('failure') do

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

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

end

Version data entries

20 entries across 20 versions & 2 rubygems

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