rabbitmq-cluster 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ module RabbitMQ::Cluster
43
43
  end
44
44
 
45
45
  def name
46
- @_name ||= client.overview["cluster_name"]
46
+ @_name ||= client.overview["node"]
47
47
  end
48
48
 
49
49
  def up?
@@ -1,5 +1,5 @@
1
1
  module RabbitMQ
2
2
  module Cluster
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ describe RabbitMQ::Cluster::Server do
22
22
  let(:client) do
23
23
  double(
24
24
  :rmq,
25
- overview: { 'cluster_name' => 'rabbit@awesome-node' }
25
+ overview: { 'node' => 'rabbit@awesome-node' }
26
26
  )
27
27
  end
28
28
 
@@ -129,13 +129,13 @@ describe RabbitMQ::Cluster::Server do
129
129
  end
130
130
 
131
131
  it 'does not try to cluster with itself' do
132
- allow(client).to receive(:overview).and_return('cluster_name' => 'rabbit@node1')
132
+ allow(client).to receive(:overview).and_return('node' => 'rabbit@node1')
133
133
  expect(subject).to receive(:system).with("rabbitmqctl join_cluster rabbit@node2")
134
134
  subject.start
135
135
  end
136
136
 
137
137
  it 'registers itself' do
138
- allow(client).to receive(:overview).and_return('cluster_name' => 'rabbit@this_node')
138
+ allow(client).to receive(:overview).and_return('node' => 'rabbit@this_node')
139
139
  subject.start
140
140
  expect(etcd.nodes).to include('rabbit@this_node')
141
141
  end
@@ -186,7 +186,7 @@ describe RabbitMQ::Cluster::Server do
186
186
  ])
187
187
  allow(subject).to receive(:system)
188
188
  allow(client).to receive(:aliveness_test).and_return("status" => "ok")
189
- allow(client).to receive(:overview).and_return("cluster_name" => "rabbit@this_node")
189
+ allow(client).to receive(:overview).and_return("node" => "rabbit@this_node")
190
190
  end
191
191
 
192
192
  context 'the node is not up' do
@@ -231,7 +231,7 @@ describe RabbitMQ::Cluster::Server do
231
231
  context 'the node is up' do
232
232
  before do
233
233
  allow(client).to receive(:aliveness_test).and_return("status" => "ok")
234
- allow(client).to receive(:overview).and_return("cluster_name" => "rabbit@this_node")
234
+ allow(client).to receive(:overview).and_return("node" => "rabbit@this_node")
235
235
  end
236
236
 
237
237
  it 'registers the node' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitmq-cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: 770618519308933099
149
+ hash: -2679174376872424793
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 770618519308933099
158
+ hash: -2679174376872424793
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 1.8.25