Sha256: 4d7de8f61117be649a5d1a5c974bd94257c3b0959bb42eef85234cdc3ba0986e

Contents?: true

Size: 1.06 KB

Versions: 26

Compression:

Stored size: 1.06 KB

Contents

require "helpers/integration_test_helper"
require "integration/factories/images_factory"

class TestImages < FogIntegrationTest
  include TestCollection

  def setup
    @subject = Fog::Compute[:google].images
    @factory = ImagesFactory.new(namespaced_name)
  end

  def test_get_specific_image
    image = @subject.get(TEST_IMAGE)
    refute_nil(image, "Images.get(#{TEST_IMAGE}) should not return nil")
    assert_equal(image.family, TEST_IMAGE_FAMILY)
    assert_equal(image.project, TEST_IMAGE_PROJECT)
  end

  def test_get_specific_image_from_project
    image = @subject.get(TEST_IMAGE,TEST_IMAGE_PROJECT)
    refute_nil(image, "Images.get(#{TEST_IMAGE}) should not return nil")
    assert_equal(image.family, TEST_IMAGE_FAMILY)
    assert_equal(image.project, TEST_IMAGE_PROJECT)
  end

  def test_get_from_family
    image = @subject.get_from_family(TEST_IMAGE_FAMILY)
    refute_nil(image,"Images.get_from_family(#{TEST_IMAGE_FAMILY}) should not return nil")
    assert_equal(image.family, TEST_IMAGE_FAMILY)
    assert_equal(image.project, TEST_IMAGE_PROJECT)
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
fog-google-1.24.1 test/integration/compute/core_compute/test_images.rb
fog-google-1.24.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.23.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.22.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.21.1 test/integration/compute/core_compute/test_images.rb
fog-google-1.21.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.20.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.19.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.18.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.17.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.16.1 test/integration/compute/core_compute/test_images.rb
fog-google-1.16.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.15.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.14.0 test/integration/compute/core_compute/test_images.rb
gitlab-fog-google-1.14.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.13.0 test/integration/compute/core_compute/test_images.rb
gitlab-fog-google-1.13.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.12.1 test/integration/compute/core_compute/test_images.rb
fog-google-1.12.0 test/integration/compute/core_compute/test_images.rb
fog-google-1.11.0 test/integration/compute/core_compute/test_images.rb