Sha256: 669ee218c7a21f4f2018413be85ad6997b2956be7218aa1e0551a5490b569218

Contents?: true

Size: 562 Bytes

Versions: 14

Compression:

Stored size: 562 Bytes

Contents

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

  @flavor_format = {
    'zoneName'    => String,
    'hosts'       => Fog::Nullable::Hash,
    'zoneState'   => Hash,
  }

  tests('success') do
    tests('#list_zones').data_matches_schema({'availabilityZoneInfo' => [@flavor_format]}) do
      Fog::Compute[:openstack].list_zones.body
    end

    tests('#list_zones_detailed').data_matches_schema({'availabilityZoneInfo' => [@flavor_format]}) do
      Fog::Compute[:openstack].list_zones_detailed.body
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
fog-openstack-0.1.7 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.6 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.5 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.4 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.3 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.2 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.1 tests/openstack/requests/compute/availability_zone_tests.rb
fog-openstack-0.1.0 tests/openstack/requests/compute/availability_zone_tests.rb
fog-1.37.0 tests/openstack/requests/compute/availability_zone_tests.rb
fog-1.36.0 tests/openstack/requests/compute/availability_zone_tests.rb
fog-1.35.0 tests/openstack/requests/compute/availability_zone_tests.rb
fog-2.0.0.pre.0 tests/openstack/requests/compute/availability_zone_tests.rb
fog-1.34.0 tests/openstack/requests/compute/availability_zone_tests.rb
fog-1.33.0 tests/openstack/requests/compute/availability_zone_tests.rb