Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
refactor integration test to be inside the specs directory and not in…
Browse files Browse the repository at this point in the history
… the main level

Fixes elastic#5268
  • Loading branch information
Pere Urbon-Bayes committed May 12, 2016
1 parent 3dd0a2e commit bf12902
Show file tree
Hide file tree
Showing 18 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace "test" do
# logstash-core-event specs since currently this is the most complete Event and Timestamp specs
# which actually defines the Event contract and should pass regardless of the actuall underlying
# implementation.
specs = ["spec/**/*_spec.rb", "logstash-core/spec/**/*_spec.rb", "logstash-core-event/spec/**/*_spec.rb"]
specs = ["spec/unit/**/*_spec.rb", "logstash-core/spec/**/*_spec.rb", "logstash-core-event/spec/**/*_spec.rb"]

# figure if the logstash-core-event-java gem is loaded and if so add its specific specs in the core specs to run
begin
Expand Down Expand Up @@ -112,7 +112,7 @@ namespace "test" do
integration_path = File.join(source, "integration_run")
FileUtils.rm_rf(integration_path)

exit(RSpec::Core::Runner.run([Rake::FileList["integration/**/*_spec.rb"]]))
exit(RSpec::Core::Runner.run([Rake::FileList["spec/integration/**/*_spec.rb"]]))
end

namespace "integration" do
Expand All @@ -124,7 +124,7 @@ namespace "test" do
FileUtils.mkdir_p(integration_path)

puts "[integration_spec] configuring local environment for running test in #{integration_path}, if you want to change this behavior delete the directory."
exit(RSpec::Core::Runner.run([Rake::FileList["integration/**/*_spec.rb"]]))
exit(RSpec::Core::Runner.run([Rake::FileList["spec/integration/**/*_spec.rb"]]))
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Encoding: utf-8
require_relative "../spec_helper"
require_relative "../../logstash-core/lib/logstash/version"
require_relative "../../../logstash-core/lib/logstash/version"

describe "bin/logstash" do
it "returns the logstash version" do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
require_relative "support/integration_test_helpers"
require_relative "../logstash-core/lib/logstash/environment"
require_relative "../../logstash-core/lib/logstash/environment"
require "fileutils"

if LogStash::Environment.windows?
Expand All @@ -9,7 +9,7 @@
end

# Configure the test environment
source = File.expand_path(File.join(File.dirname(__FILE__), ".."))
source = File.expand_path(File.join(File.dirname(__FILE__), "..", ".."))
integration_path = File.join(source, "integration_run")

puts "[integration_spec] configure environment"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bf12902

Please sign in to comment.