Sha256: 3a4b6350efc9ec2d4836b0c536e2dc06f61c70817ad9beb88e7b1d6e2f9691ec

Contents?: true

Size: 929 Bytes

Versions: 36

Compression:

Stored size: 929 Bytes

Contents

Shindo.tests("Fog::Compute[:brightbox] | interface requests", ["brightbox"]) do
  @test_service = Fog::Compute[:brightbox]

  tests("success") do
    unless Fog.mocking?
      @test_server = Brightbox::Compute::TestSupport.get_test_server
      @interface_id = @test_server.interfaces.first["id"]

      tests("#get_interface('#{@interface_id}')") do
        pending if Fog.mocking?
        result = @test_service.get_interface(@interface_id)
        data_matches_schema(Brightbox::Compute::Formats::Full::INTERFACE, :allow_extra_keys => true) { result }
      end

      @test_server.destroy
    end
  end

  tests("failure") do
    tests("#get_interface('int-00000')").raises(Excon::Errors::NotFound) do
      pending if Fog.mocking?
      @test_service.get_interface("int-00000")
    end

    tests("#get_interface()").raises(ArgumentError) do
      pending if Fog.mocking?
      @test_service.get_interface
    end
  end
end

Version data entries

36 entries across 34 versions & 3 rubygems

Version Path
fog-brightbox-1.10.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.9.1 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.9.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.8.2 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.8.1 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.8.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.7.3 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.7.2 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.7.1 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.7.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.6.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.5.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.5.0.rc1 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.4.2 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.4.1 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.4.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.3.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.2.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.1.0 tests/brightbox/requests/compute/interface_tests.rb
fog-brightbox-1.0.0 tests/brightbox/requests/compute/interface_tests.rb