forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce the concept of a single spec for the tests, we removed the …
…platform depant test as they where mostly similar, but only used with small platform dependant metadata, this all has been moved to factory methods. make sure platforms uses canonicals "former" names, so no "ubuntu" platfrom as is debian based, and no "centos" as is redhat based. Also: * Refactored the specs organization to make the resoning behind simplier, introducing the idea of an artifact subject that it wraps the interactions with the platform. * Add methods to destroy, bootstrap and halt a list of machines either all of them or the ones listed under a given platform name. * Introduced more clear namespacing in the rakefile. * Updated the list of available platforms for acceptance testing, including latest ubuntu, oel, fedora, debian and suse versions Fixes elastic#5350
- Loading branch information
Pere Urbon-Bayes
committed
Jun 2, 2016
1 parent
f74e339
commit 1be0d27
Showing
26 changed files
with
348 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# encoding: utf-8 | ||
require_relative '../spec_helper' | ||
require_relative '../shared_examples/installed' | ||
require_relative '../shared_examples/running' | ||
|
||
describe "artifacts operation" do | ||
config = ServiceTester.configuration | ||
config.servers.each do |address| | ||
logstash = ServiceTester::Artifact.new(address, config.lookup[address]) | ||
it_behaves_like "installable", logstash | ||
it_behaves_like "runnable", logstash | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require_relative '../spec_helper' | ||
require 'logstash/version' | ||
|
||
RSpec.shared_examples "installable" do |logstash| | ||
|
||
before(:each) do | ||
logstash.install(LOGSTASH_VERSION) | ||
end | ||
|
||
it "is installed on #{logstash.host}" do | ||
expect(logstash).to be_installed | ||
end | ||
|
||
it "is running on #{logstash.host}" do | ||
logstash.start_service | ||
expect(logstash).to be_running | ||
logstash.stop_service | ||
end | ||
|
||
it "is removable on #{logstash.host}" do | ||
logstash.uninstall | ||
expect(logstash).to be_removed | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require_relative '../spec_helper' | ||
require 'logstash/version' | ||
|
||
RSpec.shared_examples "runnable" do |logstash| | ||
|
||
before(:each) do | ||
logstash.install(LOGSTASH_VERSION) | ||
end | ||
|
||
it "is running on #{logstash.host}" do | ||
logstash.start_service | ||
expect(logstash).to be_running | ||
logstash.stop_service | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
{ | ||
"ubuntu-1204": { "box": "elastic/ubuntu-12.04-x86_64", "type": "debian" }, | ||
"ubuntu-1404": { "box": "elastic/ubuntu-14.04-x86_64", "type": "debian" }, | ||
"centos-6": { "box": "elastic/centos-6-x86_64", "type": "centos" }, | ||
"centos-7": { "box": "elastic/centos-7-x86_64", "type": "centos" } | ||
"ubuntu-1504": { "box": "elastic/ubuntu-15.04-x86_64", "type": "debian" }, | ||
"centos-6": { "box": "elastic/centos-6-x86_64", "type": "redhat" }, | ||
"centos-7": { "box": "elastic/centos-7-x86_64", "type": "redhat" }, | ||
"oel-6": { "box": "elastic/oraclelinux-6-x86_64", "type": "redhat" }, | ||
"oel-7": { "box": "elastic/oraclelinux-7-x86_64", "type": "redhat" }, | ||
"fedora-22": { "box": "elastic/fedora-22-x86_64", "type": "redhat" }, | ||
"debian-8": { "box": "elastic/debian-8-x86_64", "type": "debian" }, | ||
"opensuse-13": { "box": "elastic/opensuse-13-x86_64", "type": "suse" }, | ||
"sles-12": { "box": "elastic/sles-12-x86_64", "type": "suse" } | ||
} |
Oops, something went wrong.