Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ba1b229

Browse files
committed
update tests
1 parent 9ad564c commit ba1b229

File tree

5 files changed

+9
-19
lines changed

5 files changed

+9
-19
lines changed

libraries/provider_elasticsearch.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Elasticsearch < Chef::Provider::LWRPBase
1010
service_name = 'elasticsearch'
1111

1212
action :install do
13-
1413
home_dir = "#{new_resource.path}/elasticsearch-#{new_resource.version}"
1514

1615
user new_resource.user

test/integration/helpers/serverspec/elasticsearch.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# sshd_service = os[:family] == 'redhat' ? 'sshd' : 'ssh'
22

33
shared_examples 'elasticsearch' do
4-
describe command('sv status elasticsearch') do
5-
its(:stdout) { should match /run: elasticsearch/ }
6-
end
4+
describe command('sv status elasticsearch') do
5+
its(:stdout) { should match 'run: elasticsearch' }
6+
end
77
end
88

99
# curl -X GET http://localhost:9200/

test/integration/helpers/serverspec/kibana.rb

100755100644
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# sshd_service = os[:family] == 'redhat' ? 'sshd' : 'ssh'
22

33
shared_examples 'kibana' do
4-
describe service('kibana') do
5-
it 'is enabled and running' do
6-
expect(subject).to be_enabled
7-
expect(subject).to be_running
8-
end
4+
describe command('sv status kibana') do
5+
its(:stdout) { should match 'run: kibana' }
96
end
107
end

test/integration/helpers/serverspec/logstash.rb

100755100644
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# sshd_service = os[:family] == 'redhat' ? 'sshd' : 'ssh'
22

33
shared_examples 'logstash' do
4-
describe service('logstash') do
5-
it 'is enabled and running' do
6-
expect(subject).to be_enabled
7-
expect(subject).to be_running
8-
end
4+
describe command('sv status logstash') do
5+
its(:stdout) { should match 'run: logstash' }
96
end
107
end
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# sshd_service = os[:family] == 'redhat' ? 'sshd' : 'ssh'
22

33
shared_examples 'logstash_forwarder' do
4-
describe service('logstash-forwarder') do
5-
it 'is enabled and running' do
6-
expect(subject).to be_enabled
7-
expect(subject).to be_running
8-
end
4+
describe command('sv status logstash-forwarder') do
5+
its(:stdout) { should match 'run: logstash-forwarder' }
96
end
107
end

0 commit comments

Comments
 (0)