Sha256: 90bb229b0caae810951a996eb8cb765220bf566377a2019e7e29896be89bd2ac

Contents?: true

Size: 1.16 KB

Versions: 117

Compression:

Stored size: 1.16 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?

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

end

Version data entries

117 entries across 117 versions & 20 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/aws/models/elasticache/cluster_tests.rb
fog-1.26.0 tests/aws/models/elasticache/cluster_tests.rb
fog-1.25.0 tests/aws/models/elasticache/cluster_tests.rb
nsidc-fog-1.24.1 tests/aws/models/elasticache/cluster_tests.rb
fog-1.24.0 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.11 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.10 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.9 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.8 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.7 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.6 tests/aws/models/elasticache/cluster_tests.rb
fog-1.23.0 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.4 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.3 tests/aws/models/elasticache/cluster_tests.rb
ns-fog-1.22.2 tests/aws/models/elasticache/cluster_tests.rb
fog-1.22.1 tests/aws/models/elasticache/cluster_tests.rb
fog-1.22.0 tests/aws/models/elasticache/cluster_tests.rb
fog-1.21.0 tests/aws/models/elasticache/cluster_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/aws/models/elasticache/cluster_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/aws/models/elasticache/cluster_tests.rb