Sha256: 7cb9892f4fc937d61e9dd9d6604f99a5edb2cf9c9d9f05ca3db92fe3e54129a6

Contents?: true

Size: 499 Bytes

Versions: 8

Compression:

Stored size: 499 Bytes

Contents

require "integration/factories/collection_factory"

class SqlV1InstancesFactory < 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_FIRST,
      :tier => TEST_SQL_TIER_FIRST }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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