logstash/spec
Colin Surprenant 21dbde2567 fixes for Windows platform tests/specs
use rm_rf to delete dir and shutdown pipeline after run

avoid the use of rescue nil, bad practice

do not mock close as it prevents closing the file an prevents removing it on Windows

cleanup temporary files and relax file name check for Windows

fix paths handling for Windows

flag the read file string as UTF-8 which is what we expect

fix Windows issues

ignore load_average on windows

windows safe URI

cleanup and fix file handling for windows

wait for pipeline shutdown to complete

revert to original puts

cleanups

use environment for windows platform check

fix hash path

wait for pipeline thread to complete after shutdown
2017-08-31 19:42:49 -04:00
..
bootstrap introduce yaml settings file and cli long switches 2016-05-19 18:15:12 +00:00
fixtures Logstash-docgen tool v2 2016-11-30 19:57:40 -05:00
support Refactor API specs to play well with others 2017-05-18 13:45:27 +00:00
unit fixes for Windows platform tests/specs 2017-08-31 19:42:49 -04:00
coverage_helper.rb fix coverage paths for new structure by #4123 2015-11-16 19:34:45 -05:00
README.md Using already existing LOGSTASH_DEBUG env variable to debug + update README 2012-09-14 12:28:29 +02:00
spec_helper.rb use jruby 9.1.9.0 2017-06-12 12:35:10 -04:00

How to run these tests

Run one:

rspec spec/the/test.rb

Run them all:

rspec spec/**/*.rb

Debug one test:

LOGSTASH_DEBUG=y rspec spec/the/test.rb