Sha256: e1538fcf1b8e6c05312413c809593c118d6b511757cd962954be613d7e264672
Contents?: true
Size: 1.48 KB
Versions: 12
Compression:
Stored size: 1.48 KB
Contents
require "helpers/integration_test_helper" class TestDiskTypes < FogIntegrationTest NAMES = %w(local-ssd pd-ssd pd-standard).freeze 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).freeze def setup @subject = Fog::Compute[:google].disk_types end def test_all assert_operator(@subject.all.size, :>=, 1, "expected multiple disk types") 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
12 entries across 12 versions & 1 rubygems