Sha256: 01b3c4687ff0f0dab2b70bcb981b62c1741b48e4a74b6c3aca402c4cadab27aa

Contents?: true

Size: 709 Bytes

Versions: 11

Compression:

Stored size: 709 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 params
    params = {:name => resource_name,
              :region => TEST_REGION,
              :instances => [@servers.create.self_link],
              :healthChecks => [@http_health_checks.create.self_link]}
  end
end

Version data entries

11 entries across 9 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/test/integration/factories/target_pools_factory.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/test/integration/factories/target_pools_factory.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/test/integration/factories/target_pools_factory.rb
fog-google-0.1.3 test/integration/factories/target_pools_factory.rb
fog-google-0.1.2 test/integration/factories/target_pools_factory.rb
fog-google-0.1.1 test/integration/factories/target_pools_factory.rb
fog-google-0.1.0 test/integration/factories/target_pools_factory.rb
fog-google-0.0.9 test/integration/factories/target_pools_factory.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/test/integration/factories/target_pools_factory.rb
fog-google-0.0.7 test/integration/factories/target_pools_factory.rb
fog-google-0.0.6 test/integration/factories/target_pools_factory.rb