Sha256: db40c4aed9749765997565b3da68b48b28583fe31d8c346096ccc197f41ecf64

Contents?: true

Size: 1.19 KB

Versions: 60

Compression:

Stored size: 1.19 KB

Contents

Shindo.tests('AWS::Elasticache | cache clusters', ['aws', 'elasticache']) do
  cluster_params = {
    :id               => "fog-test-cluster-#{rand(999).to_s}",
    :node_type        => 'cache.m1.large',
    :security_groups  => ['default'],
    :engine           => 'memcached',
    :num_nodes        => 1
  }

  pending if Fog.mocking?

  Fog::Formatador.display_line "Creating cluster #{cluster_params[:id]}..."
  model_tests(Fog::AWS[:elasticache].clusters, cluster_params, false) do
    @instance.reload  # Reload to get the cluster info from AWS
    Fog::Formatador.display_line "Waiting for #{@instance.id} "+
      "to become available (#{@instance.status})..."
    @instance.wait_for {ready?}
  end

  # Single model is still deleting, so re-randomize the cluster ID
  cluster_params[:id] = "fog-test-cluster-#{rand(999).to_s}"
  Fog::Formatador.display_line "Creating cluster #{cluster_params[:id]}..."
  collection_tests(Fog::AWS[:elasticache].clusters, cluster_params, false) do
    @instance.reload  # Reload to get the cluster info from AWS
    Fog::Formatador.display_line "Waiting for #{@instance.id} "+
      "to become available (#{@instance.status})..."
    @instance.wait_for {ready?}
  end

end

Version data entries

60 entries across 58 versions & 3 rubygems

Version Path
fog-aws-3.12.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.11.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.10.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.9.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.8.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.7.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.6.7 tests/models/elasticache/cluster_tests.rb
fog-aws-3.6.6 tests/models/elasticache/cluster_tests.rb
fog-aws-3.6.5 tests/models/elasticache/cluster_tests.rb
fog-aws-3.6.4 tests/models/elasticache/cluster_tests.rb
fog-aws-3.6.3 tests/models/elasticache/cluster_tests.rb
fog-aws-3.6.2 tests/models/elasticache/cluster_tests.rb
fog-aws-3.5.2 tests/models/elasticache/cluster_tests.rb
fog-aws-3.5.1 tests/models/elasticache/cluster_tests.rb
fog-aws-3.5.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.4.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.3.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.2.0 tests/models/elasticache/cluster_tests.rb
fog-aws-3.1.0 tests/models/elasticache/cluster_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/models/elasticache/cluster_tests.rb