File tree Expand file tree Collapse file tree 1 file changed +27
-21
lines changed
spec/unit/provider/elasticsearch_keystore Expand file tree Collapse file tree 1 file changed +27
-21
lines changed Original file line number Diff line number Diff line change 54
54
to receive ( :execute ) .
55
55
with (
56
56
[ executable , 'list' ] ,
57
- custom_environment : {
58
- 'ES_INCLUDE' => defaults_file ,
59
- 'ES_PATH_CONF' => "/etc/elasticsearch/#{ instance } "
60
- } ,
61
- uid : 'elasticsearch' ,
62
- gid : 'elasticsearch' ,
63
- failonfail : true
57
+ {
58
+ custom_environment : {
59
+ 'ES_INCLUDE' => defaults_file ,
60
+ 'ES_PATH_CONF' => "/etc/elasticsearch/#{ instance } "
61
+ } ,
62
+ uid : 'elasticsearch' ,
63
+ gid : 'elasticsearch' ,
64
+ failonfail : true
65
+ }
64
66
) .
65
67
and_return (
66
68
Puppet ::Util ::Execution ::ProcessOutput . new (
118
120
receive ( :execute ) .
119
121
with (
120
122
[ executable , 'create' ] ,
121
- custom_environment : {
122
- 'ES_INCLUDE' => '/etc/default/elasticsearch-es-03' ,
123
- 'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
124
- } ,
125
- uid : 'elasticsearch' ,
126
- gid : 'elasticsearch' ,
127
- failonfail : true
123
+ {
124
+ custom_environment : {
125
+ 'ES_INCLUDE' => '/etc/default/elasticsearch-es-03' ,
126
+ 'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
127
+ } ,
128
+ uid : 'elasticsearch' ,
129
+ gid : 'elasticsearch' ,
130
+ failonfail : true
131
+ }
128
132
) .
129
133
and_return ( Puppet ::Util ::Execution ::ProcessOutput . new ( '' , 0 ) )
130
134
)
135
139
have_received ( :execute ) .
136
140
with (
137
141
[ executable , 'create' ] ,
138
- custom_environment : {
139
- 'ES_INCLUDE' => '/etc/default/elasticsearch-es-03' ,
140
- 'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
141
- } ,
142
- uid : 'elasticsearch' ,
143
- gid : 'elasticsearch' ,
144
- failonfail : true
142
+ {
143
+ custom_environment : {
144
+ 'ES_INCLUDE' => '/etc/default/elasticsearch-es-03' ,
145
+ 'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
146
+ } ,
147
+ uid : 'elasticsearch' ,
148
+ gid : 'elasticsearch' ,
149
+ failonfail : true
150
+ }
145
151
)
146
152
)
147
153
end
You can’t perform that action at this time.
0 commit comments