Sha256: 8f97d1615b8473e987064ff2961611a4bed8d6468ab82a5ee1bece70ccc21b47

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

Aws.config[:elasticsearchservice] = {
  stub_responses: {
    list_domain_names: {
      domain_names: [
        {
          domain_name: 'my-elasticsearch'
        }
      ]
    },
    describe_elasticsearch_domain: {
      domain_status: {
        domain_id: '123456789012/streaming-logs',
        domain_name: 'my-elasticsearch',
        arn: 'arn:aws:es:us-east-1:123456789012:domain/streaming-logs',
        created: true,
        deleted: false,
        endpoint: 'search-streaming-logs-okga24ftzsbz2a2hzhsqw73jpy.us-east-1.es.a9.com',
        processing: false,
        elasticsearch_version: '2.3',
        elasticsearch_cluster_config: {
          instance_type: 't2.micro.elasticsearch',
          instance_count: 3,
          dedicated_master_enabled: true,
          zone_awareness_enabled: false,
          dedicated_master_type: 'm3.medium.elasticsearch',
          dedicated_master_count: 3
        },
        ebs_options: {
          ebs_enabled: true,
          volume_size: 10,
          volume_type: 'gp2'
        },
        access_policies: <<-EOS.gsub(/\n/, '').gsub(/ /, '')
{
  "version": "2012-10-17",
  "statement": [
    {
      "effect": "allow",
      "principal": "*",
      "action": [
        "es:*"
      ],
      "resource": "arn:aws:es:ap-northeast-1:1234567890:domain/my-elasticsearch/*"
    }
  ]
}
EOS
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awspec-1.25.1 lib/awspec/stub/elasticsearch.rb
awspec-1.25.0 lib/awspec/stub/elasticsearch.rb
awspec-1.24.4 lib/awspec/stub/elasticsearch.rb