Sha256: c5242562086389520c5ee32e60179b7181f76d63c3d3667b2180bfb2437bcea7

Contents?: true

Size: 1.45 KB

Versions: 25

Compression:

Stored size: 1.45 KB

Contents

require "helpers/integration_test_helper"

class TestDiskTypes < FogIntegrationTest
  NAMES = %w(local-ssd pd-ssd pd-standard)
  ZONES = %w(https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/us-central1-a
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/us-central1-b
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/us-central1-c
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/us-central1-f
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/europe-west1-b
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/europe-west1-c
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/europe-west1-d
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/asia-east1-a
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/asia-east1-b
             https://www.googleapis.com/compute/v1/projects/graphite-fog/zones/asia-east1-c)

  def setup
    @subject = Fog::Compute[:google].disk_types
  end

  def test_all
    assert_equal (NAMES.size * ZONES.size), @subject.all.size
  end

  def test_get
    NAMES.each do |name|
      ZONES.each do |zone|
        refute_nil @subject.get(name, zone)
      end
    end
  end

  def test_bad_get
    assert_nil @subject.get("bad-name")
  end

  def test_enumerable
    assert_respond_to @subject, :each
  end
end

Version data entries

25 entries across 23 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/test/integration/compute/test_disk_types.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/test/integration/compute/test_disk_types.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/test/integration/compute/test_disk_types.rb
fog-google-0.1.3 test/integration/compute/test_disk_types.rb
fog-google-0.1.2 test/integration/compute/test_disk_types.rb
fog-google-0.6.0 test/integration/compute/test_disk_types.rb
fog-google-0.5.5 test/integration/compute/test_disk_types.rb
fog-google-0.5.4 test/integration/compute/test_disk_types.rb
fog-google-0.5.3 test/integration/compute/test_disk_types.rb
fog-google-0.5.2 test/integration/compute/test_disk_types.rb
fog-google-0.5.1 test/integration/compute/test_disk_types.rb
fog-google-0.5.0 test/integration/compute/test_disk_types.rb
fog-google-0.4.2 test/integration/compute/test_disk_types.rb
fog-google-0.4.1 test/integration/compute/test_disk_types.rb
fog-google-0.4.0 test/integration/compute/test_disk_types.rb
fog-google-0.3.2 test/integration/compute/test_disk_types.rb
fog-google-0.3.1 test/integration/compute/test_disk_types.rb
fog-google-0.3.0 test/integration/compute/test_disk_types.rb
fog-google-0.2.0 test/integration/compute/test_disk_types.rb
fog-google-0.1.1 test/integration/compute/test_disk_types.rb