Sha256: 32c45902c0b69ee7ab2fcf66ea58f0318bdaea8ded3f50ee45e8cb1ddd69d134

Contents?: true

Size: 876 Bytes

Versions: 50

Compression:

Stored size: 876 Bytes

Contents

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

  tests('success') do

    tests("#list_zones") do
      pending if Fog.mocking?
      result = Fog::Compute[:brightbox].list_zones
      @zone_id = result.first["id"]
      formats(Brightbox::Compute::Formats::Collection::ZONES, false) { result }
    end

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

  end

  tests('failure') do

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

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

  end

end

Version data entries

50 entries across 50 versions & 15 rubygems

Version Path
fog-1.10.1 tests/brightbox/requests/compute/zone_tests.rb
fog-parser-fix-1.6.1 tests/brightbox/requests/compute/zone_tests.rb
fog-test-again-1.6.0 tests/brightbox/requests/compute/zone_tests.rb
fog-test-me-1.10.0 tests/brightbox/requests/compute/zone_tests.rb
fog-parser-fix-1.6.0 tests/brightbox/requests/compute/zone_tests.rb
fog-1.10.0 tests/brightbox/requests/compute/zone_tests.rb
fog-1.9.0 tests/brightbox/requests/compute/zone_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/brightbox/requests/compute/zone_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/brightbox/requests/compute/zone_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/brightbox/requests/compute/zone_tests.rb
fog-sgonyea-1.8.1 tests/brightbox/requests/compute/zone_tests.rb
fog-1.8.0 tests/brightbox/requests/compute/zone_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/brightbox/requests/compute/zone_tests.rb
fog-1.7.0 tests/brightbox/requests/compute/zone_tests.rb
fog-1.6.0 tests/brightbox/requests/compute/zone_tests.rb
fog-1.5.0 tests/brightbox/requests/compute/zone_tests.rb
rackspace-fog-1.4.2 tests/brightbox/requests/compute/zone_tests.rb
fog-1.4.0 tests/brightbox/requests/compute/zone_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/zone_tests.rb
michiels-fog-1.3.1 tests/brightbox/requests/compute/zone_tests.rb