Sha256: dda856000a0196c81249ab46a76185078f352c81df9b9d4f753c459b77a4c5a4

Contents?: true

Size: 834 Bytes

Versions: 21

Compression:

Stored size: 834 Bytes

Contents

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

  tests('success') do

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

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

  end

  tests('failure') do

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

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

end

Version data entries

21 entries across 21 versions & 9 rubygems

Version Path
fog-parser-fix-1.6.1 tests/brightbox/requests/compute/interface_tests.rb
fog-test-again-1.6.0 tests/brightbox/requests/compute/interface_tests.rb
fog-parser-fix-1.6.0 tests/brightbox/requests/compute/interface_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/brightbox/requests/compute/interface_tests.rb
fog-1.7.0 tests/brightbox/requests/compute/interface_tests.rb
fog-1.6.0 tests/brightbox/requests/compute/interface_tests.rb
fog-1.5.0 tests/brightbox/requests/compute/interface_tests.rb
rackspace-fog-1.4.2 tests/brightbox/requests/compute/interface_tests.rb
fog-1.4.0 tests/brightbox/requests/compute/interface_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb
michiels-fog-1.3.1 tests/brightbox/requests/compute/interface_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/brightbox/requests/compute/interface_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb
fog-1.3.1 tests/brightbox/requests/compute/interface_tests.rb
fog-1.3.0 tests/brightbox/requests/compute/interface_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb
fog-1.2.0 tests/brightbox/requests/compute/interface_tests.rb
ktheory-fog-1.1.2 tests/brightbox/requests/compute/interface_tests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/interface_tests.rb