Skip to content
Snippets Groups Projects
Commit 1a05cb5d authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[TASK] Initial release

parents
No related branches found
No related tags found
No related merge requests found
require 'serverspec'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS
RSpec.configure do |c|
c.before :all do
c.path = '/sbin:/usr/sbin'
end
end
describe "Solr available" do
it "should list all available cores" do
command('wget -qO- http://localhost:8080/c015/admin/cores?action=STATUS').stdout.should match(/live\-MetallbringtsAt\-1\-0\-de\_AT/)
end
end
describe "TYPO3-specific libraries are downloaded" do
it "downloads typo3 acces-plugin" do
expect(file('/srv/solr/c015/typo3lib/solr-typo3-access-2.0.jar')).to be_file
end
it "downloads typo3 utils-plugin" do
expect(file('/srv/solr/c015/typo3lib/solr-typo3-utils-1.1.jar')).to be_file
end
it "downloads lang-plugin" do
expect(file('/srv/solr/c015/typo3lib/commons-lang3-3.1.jar')).to be_file
end
end
\ No newline at end of file
require 'serverspec'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS
RSpec.configure do |c|
c.before :all do
c.path = '/sbin:/usr/sbin'
end
end
describe "Tomcat available" do
it "should be listening on port 8080" do
expect(port(8080)).to be_listening.with('tcp6')
end
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment