spec/lib/odania/config/global_config_spec.rb in odania-0.0.35 vs spec/lib/odania/config/global_config_spec.rb in odania-0.0.36
- old
+ new
@@ -40,26 +40,26 @@
$consul_mock.config.set("plugins_config/#{cfg_name}", cfg1)
$consul_mock.service.services = {
cfg_name => [
OpenStruct.new({
- 'Node' => 'agent-one',
- 'Address' => '172.20.20.1',
- 'ServiceID' => "#{cfg_name}_1",
- 'ServiceName' => cfg_name,
- 'ServiceTags' => [],
- 'ServicePort' => 80,
- 'ServiceAddress' => '172.20.20.1'
- }),
+ 'Node' => 'agent-one',
+ 'Address' => '172.20.20.1',
+ 'ServiceID' => "#{cfg_name}_1",
+ 'ServiceName' => cfg_name,
+ 'ServiceTags' => [],
+ 'ServicePort' => 80,
+ 'ServiceAddress' => '172.20.20.1'
+ }),
OpenStruct.new({
- 'Node' => 'agent-two',
- 'Address' => '172.20.20.2',
- 'ServiceID' => "#{cfg_name}_2",
- 'ServiceName' => cfg_name,
- 'ServiceTags' => [],
- 'ServicePort' => 80,
- 'ServiceAddress' => '172.20.20.1'
- })
+ 'Node' => 'agent-two',
+ 'Address' => '172.20.20.2',
+ 'ServiceID' => "#{cfg_name}_2",
+ 'ServiceName' => cfg_name,
+ 'ServiceTags' => [],
+ 'ServicePort' => 80,
+ 'ServiceAddress' => '172.20.20.1'
+ })
]
}
global_config = subject.generate_global_config
expect(global_config).not_to be_empty