This file shows a sample very basic test which mainly confirms that the rspec testframework works as expected.
Get Logstash and the developer plugins e.g. with:
wget https://download.elastic.co/logstash/logstash/logstash-2.0.0.tar.gz
tar -xzf logstash-2.0.0.tar.gz
cd logstash-2.0.0
bin/plugin install --development
export PATH=`pwd`/bin:$PATH
Then run:
rspec a_spec.rb
The output should look like:
Using Accessor#strict_set for specs
Run options: exclude {:redis=>true, :socket=>true, :performance=>true, :couchdb=>true, :elasticsearch=>true, :elasticsearch_secure=>true, :export_cypher=>true, :integration=>true, :windows=>true}
.
Finished in 0.172 seconds (files took 1.35 seconds to load)
1 example, 0 failures
Randomized with seed 54437