Skip to content

Commit

Permalink
Fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
h-haaks committed Feb 20, 2024
1 parent 1be7a40 commit 3e6af08
Showing 1 changed file with 27 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@
to receive(:execute).
with(
[executable, 'list'],
custom_environment: {
'ES_INCLUDE' => defaults_file,
'ES_PATH_CONF' => "/etc/elasticsearch/#{instance}"
},
uid: 'elasticsearch',
gid: 'elasticsearch',
failonfail: true
{
custom_environment: {
'ES_INCLUDE' => defaults_file,
'ES_PATH_CONF' => "/etc/elasticsearch/#{instance}"
},
uid: 'elasticsearch',
gid: 'elasticsearch',
failonfail: true
}
).
and_return(
Puppet::Util::Execution::ProcessOutput.new(
Expand Down Expand Up @@ -118,13 +120,15 @@
receive(:execute).
with(
[executable, 'create'],
custom_environment: {
'ES_INCLUDE' => '/etc/default/elasticsearch-es-03',
'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
},
uid: 'elasticsearch',
gid: 'elasticsearch',
failonfail: true
{
custom_environment: {
'ES_INCLUDE' => '/etc/default/elasticsearch-es-03',
'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
},
uid: 'elasticsearch',
gid: 'elasticsearch',
failonfail: true
}
).
and_return(Puppet::Util::Execution::ProcessOutput.new('', 0))
)
Expand All @@ -135,13 +139,15 @@
have_received(:execute).
with(
[executable, 'create'],
custom_environment: {
'ES_INCLUDE' => '/etc/default/elasticsearch-es-03',
'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
},
uid: 'elasticsearch',
gid: 'elasticsearch',
failonfail: true
{
custom_environment: {
'ES_INCLUDE' => '/etc/default/elasticsearch-es-03',
'ES_PATH_CONF' => '/etc/elasticsearch/es-03'
},
uid: 'elasticsearch',
gid: 'elasticsearch',
failonfail: true
}
)
)
end
Expand Down

0 comments on commit 3e6af08

Please sign in to comment.