Sha256: 2c4104a5b5fc03bd03f1a1ed1ab2c94f8095904f44c8066c4bfe76f45227742a

Contents?: true

Size: 1.09 KB

Versions: 23

Compression:

Stored size: 1.09 KB

Contents

Shindo.tests('Fog::Compute[:google] | disk_type requests', ['google']) do
  @google = Fog::Compute[:google]

  @get_disk_type_format = {
    'name' => String,
    'kind' => String,
    'id' => Fog::Nullable::String,
    'creationTimestamp' => String,
    'deprecated' => Fog::Nullable::Array,
    'description' => String,
    'selfLink' => String,
    'validDiskSize' => String,
    'zone' => String,
  }

  @list_disk_types_format = {
    'kind' => String,
    'selfLink' => String,
    'items' => [@get_disk_type_format],
  }

  @list_aggregated_disk_types = {
    'kind' => String,
    'selfLink' => String,
    'items' => Hash,
  }

  tests('success') do

    tests('#list_aggregated_disk_types').formats(@list_aggregated_disk_types) do
      @google.list_aggregated_disk_types.body
    end

    tests('#list_disk_types').formats(@list_disk_types_format) do
      @google.list_disk_types('us-central1-a').body
    end

    tests('#get_disk_type').formats(@get_disk_type_format) do
      disk_type = @google.disk_types.first
      @google.get_disk_type(disk_type.identity, disk_type.zone).body
    end

  end

end

Version data entries

23 entries across 21 versions & 5 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/tests/requests/compute/disk_type_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/tests/requests/compute/disk_type_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/tests/requests/compute/disk_type_tests.rb
fog-google-0.1.3 tests/requests/compute/disk_type_tests.rb
fog-google-0.1.2 tests/requests/compute/disk_type_tests.rb
fog-google-0.1.1 tests/requests/compute/disk_type_tests.rb
fog-google-0.1.0 tests/requests/compute/disk_type_tests.rb
fog-google-0.0.9 tests/requests/compute/disk_type_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/tests/requests/compute/disk_type_tests.rb
fog-google-0.0.7 tests/requests/compute/disk_type_tests.rb
fog-google-0.0.6 tests/requests/compute/disk_type_tests.rb
fog-google-0.0.5 tests/requests/compute/disk_type_tests.rb
fog-google-0.0.4 tests/requests/compute/disk_type_tests.rb
fog-google-0.0.3 tests/requests/compute/disk_type_tests.rb
fog-google-0.0.2 tests/requests/compute/disk_type_tests.rb
fog-1.29.0 tests/google/requests/compute/disk_type_tests.rb
fog-1.28.0 tests/google/requests/compute/disk_type_tests.rb
fog-1.27.0 tests/google/requests/compute/disk_type_tests.rb
fog-1.26.0 tests/google/requests/compute/disk_type_tests.rb
fog-1.25.0 tests/google/requests/compute/disk_type_tests.rb