2017-07-06 05:25:40 +02:00
|
|
|
control "glassfish" do
|
|
|
|
title "Check GlassFish"
|
|
|
|
desc "Check if the GlassFish service is correctly installed. Installation script available at /scripts/installs/setup_g"
|
|
|
|
|
|
|
|
describe file("C:\\glassfish") do
|
|
|
|
it { should exist }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe file("C:\\glassfish\\glassfish4\\glassfish\\domains\\domain1\\config\\admin-keyfile") do
|
|
|
|
it { should exist }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe file("C:\\glassfish\\glassfish4\\glassfish\\domains\\domain1\\config\\domain.xml") do
|
|
|
|
it { should exist }
|
|
|
|
end
|
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe service('domain1') do
|
|
|
|
it { should be_installed }
|
|
|
|
it { should be_enabled }
|
|
|
|
it { should be_running }
|
|
|
|
end
|
2017-07-06 05:25:40 +02:00
|
|
|
|
|
|
|
# describe command('icacls "C:\glassfish"') do
|
|
|
|
# its('stdout') { should match "NT AUTHORITY\LOCAL SERVICE:(OI)(CI)(F)" }
|
|
|
|
# end
|
2017-07-07 14:20:21 +02:00
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe port('4848') do
|
|
|
|
it { should be_listening }
|
2017-07-07 14:20:21 +02:00
|
|
|
end
|
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe port('8080') do
|
|
|
|
it { should be_listening }
|
2017-07-07 14:20:21 +02:00
|
|
|
end
|
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe port('8181') do
|
|
|
|
it { should be_listening }
|
2017-07-07 14:20:21 +02:00
|
|
|
end
|
|
|
|
|
2017-07-06 05:25:40 +02:00
|
|
|
end
|