Commit graph

13 commits

Author SHA1 Message Date
Wainer dos Santos Moschetta
6b282234cb ci: fix run single specs
Some integration spec tests fail to run
individually due missing require modules.

This fix it by ensuring all specs and helpers
require the needed modules.

Fixes #7037

Fixes #7038
2017-05-06 01:30:33 +00:00
Pier-Hugues Pellerin
fdda39964d Add bin/logstash-plugin prepare-offline-pack command
This new command replace the old workflow of `pack`, `unpack` and the `install --local`, and wrap all the logic into one uniform way of installing plugins.
The work is based on the flow developed for installing an x-pack inside Logstash, when you call prepare-offline-pack, the specified plugins and their dependencies will be packaged in a zip.
And this zip can be installed with the same flow as the pack.

Definition:

Source Logstash: Where you run the prepare-offline-pack.
Target Logstash: Where you install the offline package.

PROS:
- If you install a .gem in the source logstash, the .gem and his dependencies will be bundled.
- The install flow doesn't need to have access to the internet.
- Nothing special need to be setup in the target logstash environment.

CONS:
- The is one minor drawback, the plugins need to have their JARS bundled with them for this flow to work, this is currently the case for all the official plugins.
- The source Logstash need to have access to the internet when you install plugins before packaging them.

Usage examples:
bin/logstash-plugin prepare-offline-pack logstash-input-beats
bin/logstash-plugin prepare-offline-pack logstash-filter-jdbc logstash-input-beats
bin/logstash-plugin prepare-offline-pack logstash-filter-*
bin/logstash-plugin prepare-offline-pack logstash-filter-* logstash-input-beats

How to install:
bin/logstash-plugin install file:///tmp/logstash-offline-plugins-XXXX.zip

Fixes #6404
2017-01-03 13:59:49 -05:00
Suyog Rao
f528987cc2 fix failing RATS test 2016-12-01 12:20:41 -08:00
Suyog Rao
0687f6821a Add feature flag support for RATS (#6328)
* Add feature flag support for RATS

Adds feature flag support for RATS integration tests. First feature to use it
is persistent_queues. You can enable a FF in travis by using the travis matrix
and adding a env variable called FEATURE_FLAG=<feature_name>.

To use feature flag, you need a logstash.yml file which has this feature turned on.
Unfortunately --path.settings needs an entire dir where logstash.yml is located, not
just the logstash.yml file, so we need to checkin the fixture which has the feature yml
and log4j.

For example, you can now set FEATURE_FLAG=persistent_queues which means travis will
run tests twice, one with this feature enabled and once without it. When the feature is enaabled
the logstash.yml located in qa/integration/fixtures/persistent_queues is picked up whenever LS is started in tests
2016-12-01 11:29:16 -08:00
Suyog Rao
37800fc653 Use randomized ports
Fixes #6031
2016-10-14 18:27:44 -04:00
Suyog Rao
75d70c6a20 Add new tests and some helpers
Fixes #6031
2016-10-14 18:27:44 -04:00
Suyog Rao
b670c94362 Make changes to test framework for new tests
Fixes #6031
2016-10-14 18:27:44 -04:00
Suyog Rao
be43b4a013 Add new integration tests
Fixes #6031
2016-10-14 18:27:44 -04:00
Suyog Rao
dfd6164edd changes after review
Fixes #5917
2016-09-22 13:43:48 -04:00
Suyog Rao
4008a7ad7e Fixes after @ph review
Fixes #5917
2016-09-22 13:43:48 -04:00
Pier-Hugues Pellerin
3b5ac6008b Adding integration testing for filebeat and make the test a bit more flexible
The test includes theses scenario

- No TLS
- TLS Server Auth
- TLS Mutual Auth

Theses theses test relies on a certicate include in the fixtures to correctly run,
there is also a script to generate them.

Make the ServiceLocator class is now more flexible and use the pattern matching
to create the registry on the fly

Fixes #5887

Fixes #5917
2016-09-22 13:43:48 -04:00
Suyog Rao
d71112da0e Cleanup of print messages
Fixes #5917
2016-09-22 13:43:47 -04:00
Suyog Rao
bb4189cdc8 Add initial round of integration tests
Fixes #5917
2016-09-22 13:43:47 -04:00