Sha256: 01e04e04bcfc3d9ba7fa5c81cf0576a07871f1651913a919b147288e13e67c52

Contents?: true

Size: 761 Bytes

Versions: 26

Compression:

Stored size: 761 Bytes

Contents

require "integration/factories/collection_factory"
require "integration/factories/servers_factory"
require "integration/factories/http_health_checks_factory"

class TargetPoolsFactory < CollectionFactory
  def initialize(example)
    @http_health_checks = HttpHealthChecksFactory.new(example)
    @servers = ServersFactory.new(example)
    super(Fog::Compute[:google].target_pools, example)
  end

  def cleanup
    super
    @servers.cleanup
    @http_health_checks.cleanup
  end

  def all
    @subject.all(region: TEST_REGION)
  end

  def params
    { :name => resource_name,
      :region => TEST_REGION,
      :instances => [@servers.create.self_link, @servers.create.self_link],
      :health_checks => [@http_health_checks.create.self_link] }
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

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