Sha256: d11b88230bf9791f645550e3e8228f2ae0338d50e23dcf2c729d016aec10d21e
Contents?: true
Size: 678 Bytes
Versions: 23
Compression:
Stored size: 678 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 { :name => resource_name, :region => TEST_REGION, :instances => [@servers.create.self_link], :healthChecks => [@http_health_checks.create.self_link] } end end
Version data entries
23 entries across 23 versions & 1 rubygems