Sha256: 5554cdfa2d848bbf76b2850357099c5e50f087c5bc092c3b12c7ed9c90272500

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

require "integration/factories/collection_factory"

class SqlV2InstancesFactory < CollectionFactory
  def initialize(example)
    super(Fog::Google[:sql].instances, example)
  end

  def cleanup
    super
  end

  def params
    # Name has a time suffix due to SQL resources API objects having
    # a _very_ long life on the backend (n(days)) after deletion.
    { :name => "#{resource_name}-#{Time.now.to_i}",
      :region => TEST_SQL_REGION_SECOND,
      :tier => TEST_SQL_TIER_SECOND }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-google-1.9.1 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.9.0 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.8.2 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.8.1 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.8.0 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.7.1 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.7.0 test/integration/factories/sql_v2_instances_factory.rb
fog-google-1.6.0 test/integration/factories/sql_v2_instances_factory.rb