Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions qa/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ require "rspec/core/runner"
require "rspec/core/rake_task"
require "stud/try"

task :spec => 'spec:all'
task :default => :spec

namespace :qa do
namespace :acceptance do
desc "Run all acceptance tests"
Expand Down
41 changes: 0 additions & 41 deletions rakelib/docs.rake

This file was deleted.

12 changes: 12 additions & 0 deletions rakelib/plugin.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@
require_relative "default_plugins"
require 'rubygems'
require 'shellwords'
require 'yaml'

require 'bootstrap/environment'

VERSION_FILE = "versions.yml"

def get_versions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean that build-fips-validation-plugin rake task wasn't used/called?

yaml_versions = YAML.safe_load(IO.read(VERSION_FILE))
{
"logstash" => yaml_versions["logstash"],
"logstash-core" => yaml_versions["logstash-core"],
"logstash-core-plugin-api" => yaml_versions["logstash-core-plugin-api"],
}
end

namespace "plugin" do
def install_plugins(*args)
require_relative "../lib/pluginmanager/main"
Expand Down
54 changes: 0 additions & 54 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,60 +15,6 @@
# specific language governing permissions and limitations
# under the License.

# we need to call exit explicitly in order to set the proper exit code, otherwise
# most common CI systems can not know whats up with this tests.

require 'pathname'

namespace "test" do
desc "run the ruby unit tests"
task "core-ruby" => "compliance" do
exit 1 unless system(*default_spec_command)
end

desc 'run the ruby compliance tests'
task 'compliance' do
exit 1 unless system('bin/rspec', '-fd', '--patern', 'spec/compliance/**/*_spec.rb')
end

def default_spec_command
["bin/rspec", "-fd", "--pattern", "spec/unit/**/*_spec.rb,logstash-core/spec/**/*_spec.rb"]
end

desc "run core specs excluding slower tests like stress tests"
task "core-fast" do
exit 1 unless system(*(default_spec_command.concat(["--tag", "~stress_test"])))
end

desc "run all installed plugins specs"
task "plugins" => "bootstrap" do
plugins_to_exclude = ENV.fetch("EXCLUDE_PLUGIN", "").split(",")
# the module LogStash::PluginManager requires the file `lib/pluginmanager/plugin_aliases.yml`,
# that file is created during the bootstrap task
require "pluginmanager/util"

# grab all spec files using the live plugins gem specs. this allows correctly also running the specs
# of a local plugin dir added using the Gemfile :path option. before this, any local plugin spec would
# not be run because they were not under the vendor/bundle/jruby/2.0/gems path
test_files = LogStash::PluginManager.find_plugins_gem_specs.map do |spec|
if plugins_to_exclude.size > 0
if !plugins_to_exclude.include?(Pathname.new(spec.gem_dir).basename.to_s)
Rake::FileList[File.join(spec.gem_dir, "spec/{input,filter,codec,output}s/*_spec.rb")]
end
else
Rake::FileList[File.join(spec.gem_dir, "spec/{input,filter,codec,output}s/*_spec.rb")]
end
end.flatten.compact

# "--format=documentation"
exit 1 unless system(*(["bin/rspec", "-fd", "--order", "rand"].concat(test_files)))
end

desc "install dev dependencies"
task "install-core" => ["bootstrap", "plugin:install-development-dependencies"]

desc "install default plugins and dev dependencies"
task "install-default" => ["bootstrap", "plugin:install-default", "plugin:install-development-dependencies"]
end

task "test" => ["test:core-ruby"]
9 changes: 0 additions & 9 deletions rakelib/vendor.rake
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
# under the License.

namespace "vendor" do
namespace "force" do
task "gems" => ["vendor:gems"]
end

task "gems", [:bundle] do |task, args|
require "bootstrap/environment"

Expand All @@ -33,9 +29,4 @@ namespace "vendor" do
end
end # task gems
task "all" => "gems"

desc "Clean the vendored files"
task :clean do
rm_rf('vendor')
end
end
124 changes: 0 additions & 124 deletions rakelib/version.rake

This file was deleted.