elastomer-cli 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f328a782ba08c595c135c9cd83fcb4e731e9e07e
4
- data.tar.gz: fc1e5586bfe819fd7f77fe0a1e5dd076196782d0
3
+ metadata.gz: ea34604ccd371321f9065ebfa8cf9d6da429e171
4
+ data.tar.gz: 1ca391fea09cad5b4e548c1e6209dbc3672f2385
5
5
  SHA512:
6
- metadata.gz: fd31f955bbb5c0fdd1b5440aa2c43501ffafa4fc678fce7674eed8616c906714f51f807285a862995e4f47cab9602e16b429123db234fa2c4d357ad9e0aff172
7
- data.tar.gz: 1434e4bf4b9e04e2f8abc2e883a4dcf5b3b6b079ec9ab4771940358fd9bf97ca15f256a31d030820250360172e0e1c090d97a3872bf20e3e7e186f6c67357d51
6
+ metadata.gz: f19a455a6214b34ee3314636f04c71007268d4ce36e22d924694541aef9817069efbe8ff7888250da517bdeb8684f36b7d4f447a4448444a6a652f52abfe2394
7
+ data.tar.gz: 519d3486d37b3328c79cde37a4e1181d099d56499b945ed4f646dc073c9b90eef4ec0d4e6f70a65a957d5028f1e548c82e929d003965c3e9a7c5542e9eb92021
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.3.1 (2014-12-18)
2
+ - Updated output format for cluster settings
3
+ - New command `cluster update` for updating
4
+ cluster settings
5
+ - Corrected Elastomer::CLI::VERSION module name
6
+
1
7
  ## 0.3.0 (2014-12-12)
2
8
  - New repository commands:
3
9
  - `repository create`
@@ -5,7 +5,7 @@ require 'elastomer/cli/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "elastomer-cli"
8
- spec.version = Elastomer::Cli::VERSION
8
+ spec.version = Elastomer::CLI::VERSION
9
9
  spec.authors = ["Grant Rodgers"]
10
10
  spec.email = ["grant.rodgers@github.com"]
11
11
  spec.summary = %q{Command line interface for elastomer}
@@ -25,25 +25,37 @@ module Elastomer
25
25
  def settings
26
26
  response = cluster.get_settings(:flat_settings => true)
27
27
 
28
- persistent_settings = response["persistent"].collect do |key, value|
29
- [key, value]
30
- end
31
- transient_settings = response["transient"].collect do |key, value|
32
- [key, value]
33
- end
28
+ print_settings(response)
29
+ end
34
30
 
35
- puts Terminal::Table.new(
36
- :headings => ['SETTING NAME', "VALUE"],
37
- :rows => [
38
- ['PERSISTENT', '']
39
- ] + persistent_settings + [
40
- ['TRANSIENT', '']
41
- ] + transient_settings
42
- )
31
+ desc "update ...SETTINGS", "update cluster settings"
32
+ option :persistent, :type => :boolean, :default => false
33
+ long_desc <<-LONGDESC
34
+ Update cluster settings. Settings may be given in key=value form.
35
+
36
+ cluster update cluster.routing.allocation.enable=all
37
+
38
+ Transient settings are used by default. To use persistent settings,
39
+ enable the --persistent flag.
40
+ LONGDESC
41
+ def update(*args)
42
+ updated_settings = {}
43
+ args.each do |arg|
44
+ if match = arg.match(/\A([^=]+)=([^=]*)\Z/)
45
+ updated_settings[match.captures[0]] = match.captures[1]
46
+ end
47
+ end
43
48
 
49
+ scope = options[:persistent] ? "persistent" : "transient"
50
+ updated_settings.each do |key, value|
51
+ puts "Setting #{scope} #{key}=#{value}"
52
+ end
53
+ response = cluster.update_settings({scope => updated_settings}, {:flat_settings => true})
54
+ print_settings(response)
44
55
  end
45
56
 
46
57
  desc "allocation COMMAND", "set shard allocation to COMMAND"
58
+ option :persistent, :type => :boolean, :default => false
47
59
  long_desc <<-LONGDESC
48
60
  Manage cluster allocation settings.
49
61
 
@@ -56,6 +68,9 @@ module Elastomer
56
68
  - primaries
57
69
  - new_primaries
58
70
  - none (alias: disable)
71
+
72
+ Transient settings are used by default. To use persistent settings,
73
+ enable the --persistent flag.
59
74
  LONGDESC
60
75
  def allocation(command)
61
76
  if client.version =~ /^0.90/
@@ -84,14 +99,36 @@ module Elastomer
84
99
  raise Thor::Error, "ERROR: Unknown Elasticsearch version: #{client.version}"
85
100
  return
86
101
  end
87
- cluster.update_settings("persistent" => {setting => value})
88
- puts "Successfully set #{setting}=#{value}"
102
+
103
+ scope = options[:persistent] ? "persistent" : "transient"
104
+ puts "Setting #{setting}=#{value}"
105
+ response = cluster.update_settings({scope => { setting => value }}, {:flat_settings => true})
106
+ print_settings(response)
89
107
  end
90
108
 
91
109
  private
92
110
  def cluster
93
111
  client.cluster
94
112
  end
113
+
114
+ def print_settings(scoped_settings)
115
+ out = Terminal::Table.new do |table|
116
+ unless scoped_settings["persistent"].empty?
117
+ table << ['PERSISTENT', ""]
118
+ table << :separator
119
+ scoped_settings["persistent"].each { |row| table << row }
120
+ table << :separator
121
+ table << :separator
122
+ end
123
+
124
+ unless scoped_settings["transient"].empty?
125
+ table << ['TRANSIENT', ""]
126
+ table << :separator
127
+ scoped_settings["transient"].each { |row| table << row }
128
+ end
129
+ end
130
+ puts out
131
+ end
95
132
  end
96
133
  end
97
134
  end
@@ -1,5 +1,5 @@
1
1
  module Elastomer
2
- module Cli
3
- VERSION = "0.3.0"
2
+ module CLI
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
data/test/cluster_test.rb CHANGED
@@ -24,8 +24,56 @@ describe Elastomer::CLI::Cluster do
24
24
  it 'should get persistent and transient cluster settings' do
25
25
  VCR.use_cassette('default') do
26
26
  elastomer 'cluster settings'
27
- @out.must_match /PERSISTENT.*indices.ttl.interval\s+|\s*50/m
28
- @out.must_match /TRANSIENT.*indices.ttl.interval\s+|\s*60/m
27
+ @out.must_match /PERSISTENT/
28
+ @out.must_match /indices\.ttl\.interval\s+\|\s+50/
29
+ @out.must_match /TRANSIENT/
30
+ @out.must_match /indices\.ttl\.interval\s+\|\s+60/
31
+ end
32
+ end
33
+ end
34
+
35
+ describe 'update' do
36
+ it 'should allow updating transient settings' do
37
+ VCR.use_cassette('default') do
38
+ elastomer 'cluster update indices.ttl.interval=70'
39
+ @out.wont_match /PERSISTENT/
40
+ @out.must_match /TRANSIENT/
41
+ @out.must_match /indices\.ttl\.interval=70/
42
+ @out.must_match /indices\.ttl\.interval\s+\|\s+70/
43
+ end
44
+ end
45
+
46
+ it 'should allow updating multiple transient settings' do
47
+ VCR.use_cassette('default') do
48
+ elastomer 'cluster update indices.ttl.interval=70 cluster.routing.allocation.enable=all'
49
+ @out.wont_match /PERSISTENT/
50
+ @out.must_match /TRANSIENT/
51
+ @out.must_match /indices\.ttl\.interval=70/
52
+ @out.must_match /cluster\.routing\.allocation\.enable=all/
53
+ @out.must_match /indices\.ttl\.interval\s+\|\s+70/
54
+ @out.must_match /cluster\.routing\.allocation\.enable\s+\|\s+all/
55
+ end
56
+ end
57
+
58
+ it 'should allow updating persistent settings' do
59
+ VCR.use_cassette('default') do
60
+ elastomer 'cluster update indices.ttl.interval=70 --persistent'
61
+ @out.must_match /PERSISTENT/
62
+ @out.wont_match /TRANSIENT/
63
+ @out.must_match /indices\.ttl\.interval=70/
64
+ @out.must_match /indices\.ttl\.interval\s+\|\s+70/
65
+ end
66
+ end
67
+
68
+ it 'should allow updating multiple persistent settings' do
69
+ VCR.use_cassette('default') do
70
+ elastomer 'cluster update indices.ttl.interval=70 cluster.routing.allocation.enable=all --persistent'
71
+ @out.must_match /PERSISTENT/
72
+ @out.wont_match /TRANSIENT/
73
+ @out.must_match /indices\.ttl\.interval=70/
74
+ @out.must_match /cluster\.routing\.allocation\.enable=all/
75
+ @out.must_match /indices\.ttl\.interval\s+\|\s+70/
76
+ @out.must_match /cluster\.routing\.allocation\.enable\s+\|\s+all/
29
77
  end
30
78
  end
31
79
  end
@@ -50,14 +98,20 @@ describe Elastomer::CLI::Cluster do
50
98
  it 'should disable allocation' do
51
99
  VCR.use_cassette('0.90') do
52
100
  elastomer 'cluster allocation disable'
53
- @out.must_match /cluster.routing.allocation.disable_allocation=true/
101
+ @out.wont_match /PERSISTENT/
102
+ @out.must_match /TRANSIENT/
103
+ @out.must_match /cluster\.routing\.allocation\.disable_allocation=true/
104
+ @out.must_match /cluster\.routing\.allocation.disable_allocation\s+\|\s+true/
54
105
  end
55
106
  end
56
107
 
57
108
  it 'should enable allocation' do
58
109
  VCR.use_cassette('0.90') do
59
110
  elastomer 'cluster allocation enable'
60
- @out.must_match /cluster.routing.allocation.disable_allocation=false/
111
+ @out.wont_match /PERSISTENT/
112
+ @out.must_match /TRANSIENT/
113
+ @out.must_match /cluster\.routing\.allocation\.disable_allocation=false/
114
+ @out.must_match /cluster\.routing\.allocation.disable_allocation\s+\|\s+false/
61
115
  end
62
116
  end
63
117
  end
@@ -66,22 +120,31 @@ describe Elastomer::CLI::Cluster do
66
120
  it 'should disable allocation' do
67
121
  VCR.use_cassette('1.x') do
68
122
  elastomer 'cluster allocation disable'
69
- @out.must_match /PERSISTENT.*cluster.routing.allocation.enable\s+|\s*none/m
123
+ @out.wont_match /PERSISTENT/
124
+ @out.must_match /TRANSIENT/
125
+ @out.must_match /cluster\.routing\.allocation\.enable=none/
126
+ @out.must_match /cluster\.routing\.allocation\.enable\s+\|\s+none/
70
127
  end
71
128
  end
72
129
 
73
130
  it 'should enable allocation' do
74
131
  VCR.use_cassette('1.x') do
75
132
  elastomer 'cluster allocation enable'
76
- @out.must_match /PERSISTENT.*cluster.routing.allocation.enable\s+|\s*all/m
133
+ @out.wont_match /PERSISTENT/
134
+ @out.must_match /TRANSIENT/
135
+ @out.must_match /cluster\.routing\.allocation\.enable=all/
136
+ @out.must_match /cluster\.routing\.allocation\.enable\s+\|\s+all/
77
137
  end
78
138
  end
79
139
 
80
- it 'should allow new allocation states' do
140
+ it 'should allow all allocation states' do
81
141
  VCR.use_cassette('1.x') do
82
142
  %w{ all primaries new_primaries none }.each do |state|
83
143
  elastomer "cluster allocation #{state}"
84
- @out.must_match /PERSISTENT.*cluster.routing.allocation.enable\s+|\s*#{state}/m
144
+ @out.wont_match /PERSISTENT/
145
+ @out.must_match /TRANSIENT/
146
+ @out.must_match /cluster\.routing\.allocation\.enable=#{state}/
147
+ @out.must_match /cluster\.routing\.allocation\.enable\s+\|\s+#{state}/
85
148
  end
86
149
  end
87
150
  end
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept-Encoding:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
14
  Accept:
15
- - '*/*'
15
+ - "*/*"
16
16
  response:
17
17
  status:
18
18
  code: 200
@@ -38,14 +38,14 @@ http_interactions:
38
38
  },
39
39
  "tagline" : "You Know, for Search"
40
40
  }
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Wed, 18 Jun 2014 02:12:50 GMT
43
43
  - request:
44
44
  method: put
45
45
  uri: http://localhost:9200/_cluster/settings
46
46
  body:
47
47
  encoding: UTF-8
48
- string: '{"persistent":{"cluster.routing.allocation.disable_allocation":true}}'
48
+ string: "{\"persistent\":{\"cluster.routing.allocation.disable_allocation\":true}}"
49
49
  headers:
50
50
  User-Agent:
51
51
  - Faraday v0.9.0
@@ -54,7 +54,7 @@ http_interactions:
54
54
  Accept-Encoding:
55
55
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
56
56
  Accept:
57
- - '*/*'
57
+ - "*/*"
58
58
  response:
59
59
  status:
60
60
  code: 200
@@ -66,8 +66,8 @@ http_interactions:
66
66
  - '86'
67
67
  body:
68
68
  encoding: UTF-8
69
- string: '{"persistent":{"cluster.routing.allocation.disable_allocation":"true"},"transient":{}}'
70
- http_version:
69
+ string: "{\"persistent\":{\"cluster.routing.allocation.disable_allocation\":\"true\"},\"transient\":{}}"
70
+ http_version:
71
71
  recorded_at: Wed, 18 Jun 2014 02:12:50 GMT
72
72
  - request:
73
73
  method: get
@@ -81,7 +81,7 @@ http_interactions:
81
81
  Accept-Encoding:
82
82
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
83
  Accept:
84
- - '*/*'
84
+ - "*/*"
85
85
  response:
86
86
  status:
87
87
  code: 200
@@ -93,7 +93,65 @@ http_interactions:
93
93
  - '86'
94
94
  body:
95
95
  encoding: UTF-8
96
- string: '{"persistent":{"cluster.routing.allocation.disable_allocation":"true"},"transient":{}}'
97
- http_version:
96
+ string: "{\"persistent\":{\"cluster.routing.allocation.disable_allocation\":\"true\"},\"transient\":{}}"
97
+ http_version:
98
98
  recorded_at: Wed, 18 Jun 2014 02:12:50 GMT
99
+ - request:
100
+ method: put
101
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
102
+ body:
103
+ encoding: UTF-8
104
+ string: "{\"transient\":{\"cluster.routing.allocation.disable_allocation\":true}}"
105
+ headers:
106
+ User-Agent:
107
+ - Faraday v0.9.0
108
+ Content-Type:
109
+ - application/json
110
+ Accept-Encoding:
111
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
+ Accept:
113
+ - "*/*"
114
+ response:
115
+ status:
116
+ code: 200
117
+ message: OK
118
+ headers:
119
+ Content-Type:
120
+ - application/json; charset=UTF-8
121
+ Content-Length:
122
+ - '106'
123
+ body:
124
+ encoding: UTF-8
125
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.disable_allocation\":\"true\"}}"
126
+ http_version:
127
+ recorded_at: Wed, 17 Dec 2014 21:39:45 GMT
128
+ - request:
129
+ method: put
130
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
131
+ body:
132
+ encoding: UTF-8
133
+ string: "{\"transient\":{\"cluster.routing.allocation.disable_allocation\":false}}"
134
+ headers:
135
+ User-Agent:
136
+ - Faraday v0.9.0
137
+ Content-Type:
138
+ - application/json
139
+ Accept-Encoding:
140
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
141
+ Accept:
142
+ - "*/*"
143
+ response:
144
+ status:
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ Content-Type:
149
+ - application/json; charset=UTF-8
150
+ Content-Length:
151
+ - '107'
152
+ body:
153
+ encoding: UTF-8
154
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.disable_allocation\":\"false\"}}"
155
+ http_version:
156
+ recorded_at: Wed, 17 Dec 2014 21:39:45 GMT
99
157
  recorded_with: VCR 2.9.2
@@ -1,8 +1,37 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:9200/_cluster/settings
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"none\"}}"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=UTF-8
25
+ Content-Length:
26
+ - '106'
27
+ body:
28
+ encoding: UTF-8
29
+ string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"none\"}}}},\"transient\":{}}"
30
+ http_version:
31
+ recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
3
32
  - request:
4
33
  method: get
5
- uri: http://localhost:9200/
34
+ uri: http://localhost:9200/_cluster/settings?flat_settings=true
6
35
  body:
7
36
  encoding: US-ASCII
8
37
  string: ''
@@ -21,27 +50,44 @@ http_interactions:
21
50
  Content-Type:
22
51
  - application/json; charset=UTF-8
23
52
  Content-Length:
24
- - '292'
53
+ - '172'
25
54
  body:
26
55
  encoding: UTF-8
27
- string: |
28
- {
29
- "status" : 200,
30
- "name" : "Bug",
31
- "version" : {
32
- "number" : "1.2.1",
33
- "build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
34
- "build_timestamp" : "2014-06-03T15:02:52Z",
35
- "build_snapshot" : false,
36
- "lucene_version" : "4.8"
37
- },
38
- "tagline" : "You Know, for Search"
39
- }
56
+ string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"none\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
40
57
  http_version:
41
58
  recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
59
+ - request:
60
+ method: put
61
+ uri: http://localhost:9200/_cluster/settings
62
+ body:
63
+ encoding: UTF-8
64
+ string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"primaries\"}}"
65
+ headers:
66
+ User-Agent:
67
+ - Faraday v0.9.0
68
+ Content-Type:
69
+ - application/json
70
+ Accept-Encoding:
71
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
+ Accept:
73
+ - "*/*"
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ Content-Type:
80
+ - application/json; charset=UTF-8
81
+ Content-Length:
82
+ - '111'
83
+ body:
84
+ encoding: UTF-8
85
+ string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"primaries\"}}}},\"transient\":{}}"
86
+ http_version:
87
+ recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
42
88
  - request:
43
89
  method: get
44
- uri: http://localhost:9200/
90
+ uri: http://localhost:9200/_cluster/settings?flat_settings=true
45
91
  body:
46
92
  encoding: US-ASCII
47
93
  string: ''
@@ -60,30 +106,18 @@ http_interactions:
60
106
  Content-Type:
61
107
  - application/json; charset=UTF-8
62
108
  Content-Length:
63
- - '292'
109
+ - '177'
64
110
  body:
65
111
  encoding: UTF-8
66
- string: |
67
- {
68
- "status" : 200,
69
- "name" : "Bug",
70
- "version" : {
71
- "number" : "1.2.1",
72
- "build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
73
- "build_timestamp" : "2014-06-03T15:02:52Z",
74
- "build_snapshot" : false,
75
- "lucene_version" : "4.8"
76
- },
77
- "tagline" : "You Know, for Search"
78
- }
112
+ string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"primaries\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
79
113
  http_version:
80
- recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
114
+ recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
81
115
  - request:
82
116
  method: put
83
117
  uri: http://localhost:9200/_cluster/settings
84
118
  body:
85
119
  encoding: UTF-8
86
- string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"none\"}}"
120
+ string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"new_primaries\"}}"
87
121
  headers:
88
122
  User-Agent:
89
123
  - Faraday v0.9.0
@@ -101,12 +135,12 @@ http_interactions:
101
135
  Content-Type:
102
136
  - application/json; charset=UTF-8
103
137
  Content-Length:
104
- - '106'
138
+ - '115'
105
139
  body:
106
140
  encoding: UTF-8
107
- string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"none\"}}}},\"transient\":{}}"
141
+ string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"new_primaries\"}}}},\"transient\":{}}"
108
142
  http_version:
109
- recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
143
+ recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
110
144
  - request:
111
145
  method: get
112
146
  uri: http://localhost:9200/_cluster/settings?flat_settings=true
@@ -128,12 +162,12 @@ http_interactions:
128
162
  Content-Type:
129
163
  - application/json; charset=UTF-8
130
164
  Content-Length:
131
- - '172'
165
+ - '181'
132
166
  body:
133
167
  encoding: UTF-8
134
- string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"none\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
168
+ string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"new_primaries\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
135
169
  http_version:
136
- recorded_at: Wed, 18 Jun 2014 02:15:18 GMT
170
+ recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
137
171
  - request:
138
172
  method: get
139
173
  uri: http://localhost:9200/
@@ -217,7 +251,7 @@ http_interactions:
217
251
  uri: http://localhost:9200/_cluster/settings
218
252
  body:
219
253
  encoding: UTF-8
220
- string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"primaries\"}}"
254
+ string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"none\"}}"
221
255
  headers:
222
256
  User-Agent:
223
257
  - Faraday v0.9.0
@@ -235,10 +269,10 @@ http_interactions:
235
269
  Content-Type:
236
270
  - application/json; charset=UTF-8
237
271
  Content-Length:
238
- - '111'
272
+ - '106'
239
273
  body:
240
274
  encoding: UTF-8
241
- string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"primaries\"}}}},\"transient\":{}}"
275
+ string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"none\"}}}},\"transient\":{}}"
242
276
  http_version:
243
277
  recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
244
278
  - request:
@@ -262,15 +296,15 @@ http_interactions:
262
296
  Content-Type:
263
297
  - application/json; charset=UTF-8
264
298
  Content-Length:
265
- - '177'
299
+ - '172'
266
300
  body:
267
301
  encoding: UTF-8
268
- string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"primaries\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
302
+ string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"none\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
269
303
  http_version:
270
304
  recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
271
305
  - request:
272
306
  method: get
273
- uri: http://localhost:9200/
307
+ uri: http://localhost:9200/_cat/indices?v=true
274
308
  body:
275
309
  encoding: US-ASCII
276
310
  string: ''
@@ -287,29 +321,19 @@ http_interactions:
287
321
  message: OK
288
322
  headers:
289
323
  Content-Type:
290
- - application/json; charset=UTF-8
324
+ - text/plain; charset=UTF-8
291
325
  Content-Length:
292
- - '292'
326
+ - '216'
293
327
  body:
294
328
  encoding: UTF-8
295
- string: |
296
- {
297
- "status" : 200,
298
- "name" : "Bug",
299
- "version" : {
300
- "number" : "1.2.1",
301
- "build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
302
- "build_timestamp" : "2014-06-03T15:02:52Z",
303
- "build_snapshot" : false,
304
- "lucene_version" : "4.8"
305
- },
306
- "tagline" : "You Know, for Search"
307
- }
329
+ string: "health index pri rep docs.count docs.deleted store.size pri.store.size
330
+ \nyellow test2 5 1 0 0 575b 575b \nyellow
331
+ test1 5 1 0 0 575b 575b \n"
308
332
  http_version:
309
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
333
+ recorded_at: Wed, 13 Aug 2014 18:25:55 GMT
310
334
  - request:
311
335
  method: get
312
- uri: http://localhost:9200/
336
+ uri: http://localhost:9200/_cat/indices/test1?v=true
313
337
  body:
314
338
  encoding: US-ASCII
315
339
  string: ''
@@ -326,32 +350,21 @@ http_interactions:
326
350
  message: OK
327
351
  headers:
328
352
  Content-Type:
329
- - application/json; charset=UTF-8
353
+ - text/plain; charset=UTF-8
330
354
  Content-Length:
331
- - '292'
355
+ - '144'
332
356
  body:
333
357
  encoding: UTF-8
334
- string: |
335
- {
336
- "status" : 200,
337
- "name" : "Bug",
338
- "version" : {
339
- "number" : "1.2.1",
340
- "build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
341
- "build_timestamp" : "2014-06-03T15:02:52Z",
342
- "build_snapshot" : false,
343
- "lucene_version" : "4.8"
344
- },
345
- "tagline" : "You Know, for Search"
346
- }
358
+ string: "health index pri rep docs.count docs.deleted store.size pri.store.size
359
+ \nyellow test1 5 1 0 0 575b 575b \n"
347
360
  http_version:
348
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
361
+ recorded_at: Wed, 13 Aug 2014 22:23:10 GMT
349
362
  - request:
350
363
  method: put
351
- uri: http://localhost:9200/_cluster/settings
364
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
352
365
  body:
353
366
  encoding: UTF-8
354
- string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"new_primaries\"}}"
367
+ string: "{\"transient\":null}"
355
368
  headers:
356
369
  User-Agent:
357
370
  - Faraday v0.9.0
@@ -369,15 +382,15 @@ http_interactions:
369
382
  Content-Type:
370
383
  - application/json; charset=UTF-8
371
384
  Content-Length:
372
- - '115'
385
+ - '52'
373
386
  body:
374
387
  encoding: UTF-8
375
- string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"new_primaries\"}}}},\"transient\":{}}"
388
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{}}"
376
389
  http_version:
377
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
390
+ recorded_at: Wed, 17 Dec 2014 21:05:08 GMT
378
391
  - request:
379
392
  method: get
380
- uri: http://localhost:9200/_cluster/settings?flat_settings=true
393
+ uri: http://127.0.0.1:19200/
381
394
  body:
382
395
  encoding: US-ASCII
383
396
  string: ''
@@ -396,15 +409,27 @@ http_interactions:
396
409
  Content-Type:
397
410
  - application/json; charset=UTF-8
398
411
  Content-Length:
399
- - '181'
412
+ - '294'
400
413
  body:
401
414
  encoding: UTF-8
402
- string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"new_primaries\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
415
+ string: |
416
+ {
417
+ "status" : 200,
418
+ "name" : "boxen",
419
+ "version" : {
420
+ "number" : "1.2.3",
421
+ "build_hash" : "4596e81285d3c1a1609c8382b1e804115ef610fb",
422
+ "build_timestamp" : "2014-07-23T13:16:05Z",
423
+ "build_snapshot" : false,
424
+ "lucene_version" : "4.8"
425
+ },
426
+ "tagline" : "You Know, for Search"
427
+ }
403
428
  http_version:
404
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
429
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
405
430
  - request:
406
431
  method: get
407
- uri: http://localhost:9200/
432
+ uri: http://127.0.0.1:19200/
408
433
  body:
409
434
  encoding: US-ASCII
410
435
  string: ''
@@ -423,27 +448,27 @@ http_interactions:
423
448
  Content-Type:
424
449
  - application/json; charset=UTF-8
425
450
  Content-Length:
426
- - '292'
451
+ - '294'
427
452
  body:
428
453
  encoding: UTF-8
429
454
  string: |
430
455
  {
431
456
  "status" : 200,
432
- "name" : "Bug",
457
+ "name" : "boxen",
433
458
  "version" : {
434
- "number" : "1.2.1",
435
- "build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
436
- "build_timestamp" : "2014-06-03T15:02:52Z",
459
+ "number" : "1.2.3",
460
+ "build_hash" : "4596e81285d3c1a1609c8382b1e804115ef610fb",
461
+ "build_timestamp" : "2014-07-23T13:16:05Z",
437
462
  "build_snapshot" : false,
438
463
  "lucene_version" : "4.8"
439
464
  },
440
465
  "tagline" : "You Know, for Search"
441
466
  }
442
467
  http_version:
443
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
468
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
444
469
  - request:
445
470
  method: get
446
- uri: http://localhost:9200/
471
+ uri: http://127.0.0.1:19200/
447
472
  body:
448
473
  encoding: US-ASCII
449
474
  string: ''
@@ -462,30 +487,30 @@ http_interactions:
462
487
  Content-Type:
463
488
  - application/json; charset=UTF-8
464
489
  Content-Length:
465
- - '292'
490
+ - '294'
466
491
  body:
467
492
  encoding: UTF-8
468
493
  string: |
469
494
  {
470
495
  "status" : 200,
471
- "name" : "Bug",
496
+ "name" : "boxen",
472
497
  "version" : {
473
- "number" : "1.2.1",
474
- "build_hash" : "6c95b759f9e7ef0f8e17f77d850da43ce8a4b364",
475
- "build_timestamp" : "2014-06-03T15:02:52Z",
498
+ "number" : "1.2.3",
499
+ "build_hash" : "4596e81285d3c1a1609c8382b1e804115ef610fb",
500
+ "build_timestamp" : "2014-07-23T13:16:05Z",
476
501
  "build_snapshot" : false,
477
502
  "lucene_version" : "4.8"
478
503
  },
479
504
  "tagline" : "You Know, for Search"
480
505
  }
481
506
  http_version:
482
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
507
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
483
508
  - request:
484
509
  method: put
485
- uri: http://localhost:9200/_cluster/settings
510
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
486
511
  body:
487
512
  encoding: UTF-8
488
- string: "{\"persistent\":{\"cluster.routing.allocation.enable\":\"none\"}}"
513
+ string: "{\"transient\":{\"cluster.routing.allocation.enable\":\"primaries\"}}"
489
514
  headers:
490
515
  User-Agent:
491
516
  - Faraday v0.9.0
@@ -503,15 +528,15 @@ http_interactions:
503
528
  Content-Type:
504
529
  - application/json; charset=UTF-8
505
530
  Content-Length:
506
- - '106'
531
+ - '99'
507
532
  body:
508
533
  encoding: UTF-8
509
- string: "{\"acknowledged\":true,\"persistent\":{\"cluster\":{\"routing\":{\"allocation\":{\"enable\":\"none\"}}}},\"transient\":{}}"
534
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.enable\":\"primaries\"}}"
510
535
  http_version:
511
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
536
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
512
537
  - request:
513
538
  method: get
514
- uri: http://localhost:9200/_cluster/settings?flat_settings=true
539
+ uri: http://127.0.0.1:19200/
515
540
  body:
516
541
  encoding: US-ASCII
517
542
  string: ''
@@ -530,15 +555,56 @@ http_interactions:
530
555
  Content-Type:
531
556
  - application/json; charset=UTF-8
532
557
  Content-Length:
533
- - '172'
558
+ - '294'
534
559
  body:
535
560
  encoding: UTF-8
536
- string: "{\"persistent\":{\"indices.ttl.interval\":\"50\",\"cluster.routing.allocation.enable\":\"none\"},\"transient\":{\"indices.ttl.interval\":\"60\",\"cluster.routing.allocation.enable\":\"true\"}}"
561
+ string: |
562
+ {
563
+ "status" : 200,
564
+ "name" : "boxen",
565
+ "version" : {
566
+ "number" : "1.2.3",
567
+ "build_hash" : "4596e81285d3c1a1609c8382b1e804115ef610fb",
568
+ "build_timestamp" : "2014-07-23T13:16:05Z",
569
+ "build_snapshot" : false,
570
+ "lucene_version" : "4.8"
571
+ },
572
+ "tagline" : "You Know, for Search"
573
+ }
537
574
  http_version:
538
- recorded_at: Wed, 18 Jun 2014 02:17:19 GMT
575
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
576
+ - request:
577
+ method: put
578
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
579
+ body:
580
+ encoding: UTF-8
581
+ string: "{\"transient\":{\"cluster.routing.allocation.enable\":\"new_primaries\"}}"
582
+ headers:
583
+ User-Agent:
584
+ - Faraday v0.9.0
585
+ Content-Type:
586
+ - application/json
587
+ Accept-Encoding:
588
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
589
+ Accept:
590
+ - "*/*"
591
+ response:
592
+ status:
593
+ code: 200
594
+ message: OK
595
+ headers:
596
+ Content-Type:
597
+ - application/json; charset=UTF-8
598
+ Content-Length:
599
+ - '103'
600
+ body:
601
+ encoding: UTF-8
602
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.enable\":\"new_primaries\"}}"
603
+ http_version:
604
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
539
605
  - request:
540
606
  method: get
541
- uri: http://localhost:9200/_cat/indices?v=true
607
+ uri: http://127.0.0.1:19200/
542
608
  body:
543
609
  encoding: US-ASCII
544
610
  string: ''
@@ -555,19 +621,58 @@ http_interactions:
555
621
  message: OK
556
622
  headers:
557
623
  Content-Type:
558
- - text/plain; charset=UTF-8
624
+ - application/json; charset=UTF-8
559
625
  Content-Length:
560
- - '216'
626
+ - '294'
561
627
  body:
562
628
  encoding: UTF-8
563
- string: "health index pri rep docs.count docs.deleted store.size pri.store.size
564
- \nyellow test2 5 1 0 0 575b 575b \nyellow
565
- test1 5 1 0 0 575b 575b \n"
629
+ string: |
630
+ {
631
+ "status" : 200,
632
+ "name" : "boxen",
633
+ "version" : {
634
+ "number" : "1.2.3",
635
+ "build_hash" : "4596e81285d3c1a1609c8382b1e804115ef610fb",
636
+ "build_timestamp" : "2014-07-23T13:16:05Z",
637
+ "build_snapshot" : false,
638
+ "lucene_version" : "4.8"
639
+ },
640
+ "tagline" : "You Know, for Search"
641
+ }
566
642
  http_version:
567
- recorded_at: Wed, 13 Aug 2014 18:25:55 GMT
643
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
644
+ - request:
645
+ method: put
646
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
647
+ body:
648
+ encoding: UTF-8
649
+ string: "{\"transient\":{\"cluster.routing.allocation.enable\":\"none\"}}"
650
+ headers:
651
+ User-Agent:
652
+ - Faraday v0.9.0
653
+ Content-Type:
654
+ - application/json
655
+ Accept-Encoding:
656
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
657
+ Accept:
658
+ - "*/*"
659
+ response:
660
+ status:
661
+ code: 200
662
+ message: OK
663
+ headers:
664
+ Content-Type:
665
+ - application/json; charset=UTF-8
666
+ Content-Length:
667
+ - '94'
668
+ body:
669
+ encoding: UTF-8
670
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.enable\":\"none\"}}"
671
+ http_version:
672
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
568
673
  - request:
569
674
  method: get
570
- uri: http://localhost:9200/_cat/indices/test1?v=true
675
+ uri: http://127.0.0.1:19200/
571
676
  body:
572
677
  encoding: US-ASCII
573
678
  string: ''
@@ -584,13 +689,53 @@ http_interactions:
584
689
  message: OK
585
690
  headers:
586
691
  Content-Type:
587
- - text/plain; charset=UTF-8
692
+ - application/json; charset=UTF-8
588
693
  Content-Length:
589
- - '144'
694
+ - '294'
590
695
  body:
591
696
  encoding: UTF-8
592
- string: "health index pri rep docs.count docs.deleted store.size pri.store.size
593
- \nyellow test1 5 1 0 0 575b 575b \n"
697
+ string: |
698
+ {
699
+ "status" : 200,
700
+ "name" : "boxen",
701
+ "version" : {
702
+ "number" : "1.2.3",
703
+ "build_hash" : "4596e81285d3c1a1609c8382b1e804115ef610fb",
704
+ "build_timestamp" : "2014-07-23T13:16:05Z",
705
+ "build_snapshot" : false,
706
+ "lucene_version" : "4.8"
707
+ },
708
+ "tagline" : "You Know, for Search"
709
+ }
594
710
  http_version:
595
- recorded_at: Wed, 13 Aug 2014 22:23:10 GMT
711
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
712
+ - request:
713
+ method: put
714
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
715
+ body:
716
+ encoding: UTF-8
717
+ string: "{\"transient\":{\"cluster.routing.allocation.enable\":\"all\"}}"
718
+ headers:
719
+ User-Agent:
720
+ - Faraday v0.9.0
721
+ Content-Type:
722
+ - application/json
723
+ Accept-Encoding:
724
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
725
+ Accept:
726
+ - "*/*"
727
+ response:
728
+ status:
729
+ code: 200
730
+ message: OK
731
+ headers:
732
+ Content-Type:
733
+ - application/json; charset=UTF-8
734
+ Content-Length:
735
+ - '93'
736
+ body:
737
+ encoding: UTF-8
738
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.enable\":\"all\"}}"
739
+ http_version:
740
+ recorded_at: Wed, 17 Dec 2014 21:55:06 GMT
596
741
  recorded_with: VCR 2.9.2
@@ -385,4 +385,149 @@ http_interactions:
385
385
  string: "{\"cluster_name\":\"elasticsearch\",\"metadata\":{\"templates\":{},\"indices\":{\"test2\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"zwbWk_BfRDKa6vUOTsIJ_g\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1020199\"}}},\"mappings\":{},\"aliases\":[]},\"test1\":{\"state\":\"open\",\"settings\":{\"index\":{\"uuid\":\"_ULwHACTRlK6HhcBjaIyBQ\",\"number_of_replicas\":\"1\",\"number_of_shards\":\"5\",\"version\":{\"created\":\"1020199\"}}},\"mappings\":{},\"aliases\":[]}},\"repositories\":{}}}"
386
386
  http_version:
387
387
  recorded_at: Wed, 08 Oct 2014 22:56:07 GMT
388
+ - request:
389
+ method: put
390
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
391
+ body:
392
+ encoding: UTF-8
393
+ string: "{\"transient\":{\"indices.ttl.interval\":\"70\"}}"
394
+ headers:
395
+ User-Agent:
396
+ - Faraday v0.9.0
397
+ Content-Type:
398
+ - application/json
399
+ Accept-Encoding:
400
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
401
+ Accept:
402
+ - "*/*"
403
+ response:
404
+ status:
405
+ code: 200
406
+ message: OK
407
+ headers:
408
+ Content-Type:
409
+ - application/json; charset=UTF-8
410
+ Content-Length:
411
+ - '79'
412
+ body:
413
+ encoding: UTF-8
414
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"indices.ttl.interval\":\"70\"}}"
415
+ http_version:
416
+ recorded_at: Thu, 18 Dec 2014 00:44:28 GMT
417
+ - request:
418
+ method: put
419
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
420
+ body:
421
+ encoding: UTF-8
422
+ string: "{\"transient\":{\"indices.ttl.interval\":\"70\",\"indices.ttl.bulk_size\":\"100\"}}"
423
+ headers:
424
+ User-Agent:
425
+ - Faraday v0.9.0
426
+ Content-Type:
427
+ - application/json
428
+ Accept-Encoding:
429
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
430
+ Accept:
431
+ - "*/*"
432
+ response:
433
+ status:
434
+ code: 200
435
+ message: OK
436
+ headers:
437
+ Content-Type:
438
+ - application/json; charset=UTF-8
439
+ Content-Length:
440
+ - '79'
441
+ body:
442
+ encoding: UTF-8
443
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"indices.ttl.interval\":\"70\"}}"
444
+ http_version:
445
+ recorded_at: Thu, 18 Dec 2014 00:46:04 GMT
446
+ - request:
447
+ method: put
448
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
449
+ body:
450
+ encoding: UTF-8
451
+ string: "{\"transient\":{\"indices.ttl.interval\":\"70\",\"cluster.routing.allocation.enable\":\"all\"}}"
452
+ headers:
453
+ User-Agent:
454
+ - Faraday v0.9.0
455
+ Content-Type:
456
+ - application/json
457
+ Accept-Encoding:
458
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
459
+ Accept:
460
+ - "*/*"
461
+ response:
462
+ status:
463
+ code: 200
464
+ message: OK
465
+ headers:
466
+ Content-Type:
467
+ - application/json; charset=UTF-8
468
+ Content-Length:
469
+ - '121'
470
+ body:
471
+ encoding: UTF-8
472
+ string: "{\"acknowledged\":true,\"persistent\":{},\"transient\":{\"cluster.routing.allocation.enable\":\"all\",\"indices.ttl.interval\":\"70\"}}"
473
+ http_version:
474
+ recorded_at: Thu, 18 Dec 2014 00:47:37 GMT
475
+ - request:
476
+ method: put
477
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
478
+ body:
479
+ encoding: UTF-8
480
+ string: "{\"persistent\":{\"indices.ttl.interval\":\"70\"}}"
481
+ headers:
482
+ User-Agent:
483
+ - Faraday v0.9.0
484
+ Content-Type:
485
+ - application/json
486
+ Accept-Encoding:
487
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
488
+ Accept:
489
+ - "*/*"
490
+ response:
491
+ status:
492
+ code: 200
493
+ message: OK
494
+ headers:
495
+ Content-Type:
496
+ - application/json; charset=UTF-8
497
+ Content-Length:
498
+ - '79'
499
+ body:
500
+ encoding: UTF-8
501
+ string: "{\"acknowledged\":true,\"persistent\":{\"indices.ttl.interval\":\"70\"},\"transient\":{}}"
502
+ http_version:
503
+ recorded_at: Thu, 18 Dec 2014 00:51:29 GMT
504
+ - request:
505
+ method: put
506
+ uri: http://127.0.0.1:19200/_cluster/settings?flat_settings=true
507
+ body:
508
+ encoding: UTF-8
509
+ string: "{\"persistent\":{\"indices.ttl.interval\":\"70\",\"cluster.routing.allocation.enable\":\"all\"}}"
510
+ headers:
511
+ User-Agent:
512
+ - Faraday v0.9.0
513
+ Content-Type:
514
+ - application/json
515
+ Accept-Encoding:
516
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
517
+ Accept:
518
+ - "*/*"
519
+ response:
520
+ status:
521
+ code: 200
522
+ message: OK
523
+ headers:
524
+ Content-Type:
525
+ - application/json; charset=UTF-8
526
+ Content-Length:
527
+ - '121'
528
+ body:
529
+ encoding: UTF-8
530
+ string: "{\"acknowledged\":true,\"persistent\":{\"cluster.routing.allocation.enable\":\"all\",\"indices.ttl.interval\":\"70\"},\"transient\":{}}"
531
+ http_version:
532
+ recorded_at: Thu, 18 Dec 2014 00:51:29 GMT
388
533
  recorded_with: VCR 2.9.2
data/test/test_helper.rb CHANGED
@@ -14,7 +14,7 @@ VCR.configure do |c|
14
14
  c.cassette_library_dir = File.expand_path('../fixtures/vcr_cassettes', __FILE__)
15
15
  c.hook_into :webmock
16
16
  c.default_cassette_options = {
17
- :match_requests_on => [:method, :path],
17
+ :match_requests_on => [:method, :path, :body],
18
18
  }
19
19
  end
20
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastomer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Rodgers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor