Sha256: dab9a241376afc85a4b9a6ee1ed04dc8f08351fecbeddf9324f9cf8d181dda2b

Contents?: true

Size: 678 Bytes

Versions: 27

Compression:

Stored size: 678 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 = sakuracloud_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

27 entries across 25 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-sakuracloud-1.7.5/tests/sakuracloud/requests/compute/zones_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-sakuracloud-1.7.5/tests/sakuracloud/requests/compute/zones_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-sakuracloud-1.7.5/tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.7.5 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.7.4 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.7.3 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.7.2 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.7.1 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.7.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.6.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.5.2 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.5.1 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.5.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.4.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.3.3 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.3.2 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.3.1 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.3.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.2.0 tests/sakuracloud/requests/compute/zones_tests.rb
fog-sakuracloud-1.1.1 tests/sakuracloud/requests/compute/zones_tests.rb