Sha256: 0e26eab1854cbbac3696ca7aa2f79178374faa153fde839d165cb84728a9b9a6

Contents?: true

Size: 666 Bytes

Versions: 17

Compression:

Stored size: 666 Bytes

Contents

# coding: utf-8
Shindo.tests('Fog::Compute[:sakuracloud] | list_zones request', ['sakuracloud', 'compute']) do

  @zone_format = {
    'Index'        => Integer,
    'ID'           => Integer,
    'Name'         => String,
    'Description'  => String
  }

  tests('success') do

    tests('#list_zones') do
      zones = compute_service.list_zones
      test 'returns a Hash' do
        zones.body.is_a? Hash
      end
      if Fog.mock?
        tests('Zones').formats(@zone_format, false) do
          zones.body['Zones'].first
        end
      else
        returns(200) { zones.status }
        returns(false) { zones.body.empty? }
      end
    end

  end

end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-0.0.4 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-0.0.3 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-0.0.1 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.11 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.10 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.9 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.8 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.7 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.6 tests/sakuracloud/requests/compute/zones_tests.rb
fog-1.23.0 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.4 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.3 tests/sakuracloud/requests/compute/zones_tests.rb
ns-fog-1.22.2 tests/sakuracloud/requests/compute/zones_tests.rb
fog-1.22.1 tests/sakuracloud/requests/compute/zones_tests.rb
fog-1.22.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-1.21.0 tests/sakuracloud/requests/compute/zones_tests.rb