2017-07-06 05:25:40 +02:00
|
|
|
control "apache-struts" do
|
|
|
|
title "Check if apache struts is running"
|
|
|
|
desc "Check if the service is running. Installation script available at /scripts/installs/setup_apache_struts.bat"
|
|
|
|
|
|
|
|
describe file('C:\\Program Files\\Apache Software Foundation\\tomcat\\apache-tomcat-8.5.12\\conf\\tomcat-users.xml') do
|
|
|
|
it { should exist }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe file('C:\\Program Files\\Apache Software Foundation\\tomcat\\apache-tomcat-8.5.12\\conf\\server.xml') do
|
|
|
|
it { should exist }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe file('C:\\Program Files\\Apache Software Foundation\\tomcat\\apache-tomcat-8.5.12\\webapps\\struts2-rest-showcase.war') do
|
|
|
|
it { should exist }
|
|
|
|
end
|
2017-07-07 14:20:21 +02:00
|
|
|
|
2017-07-19 14:52:41 +02:00
|
|
|
describe port('8282') do
|
|
|
|
it { should be_listening }
|
2017-07-07 14:20:21 +02:00
|
|
|
end
|
|
|
|
|
2017-07-06 05:25:40 +02:00
|
|
|
end
|