Commit graph

30 commits

Author SHA1 Message Date
Andres Rodriguez
4255a8fd1c
Rubocop: Enable SpaceAround cops (#15196)
* Enable SpaceARoundBlockParameters
* Enable SpaceAroundEqualsInParameterDefault
* Enable SpaceAroundKeyword
* Enable SpaceAroundOperators
* Enable SpaceBeforeBlockBraces, which yields no changes
2023-07-18 21:11:57 -04:00
Andres Rodriguez
acd87a69e7
Rubocop: Enable various EmptyLine cops (#15194)
Disabled:
 * EmptyLineAfterGuardClause
 * EmptyLineAfterMultilineCondition
 * EmptyLinesAroundAccessModifier

Enabled:
 * Layout/EmptyLineAfterMagicComment
 * Layout/EmptyLineBetweenDefs
 * Layout/EmptyLines
 * Layout/EmptyLinesAroundArguments
 * Layout/EmptyLinesAroundAttributeAccessor
 * Layout/EmptyLinesAroundBeginBody
 * Layout/EmptyLinesAroundBlockBody
 * Layout/EmptyLinesAroundExceptionHandlingKeywords
 * Layout/EmptyLinesAroundMethodBody
 * Layout/EmptyLinesAroundModuleBody
2023-07-18 16:49:16 -04:00
Andres Rodriguez
b63ffea472
Enable SpaceAfterColon, SpaceAfterComma, SpaceAfterSemicolon (#15180)
Enable SpaceAfterColon, SpaceAfterComma, SpaceAfterSemicolon and fix occurrences.
2023-07-14 16:46:35 -04:00
Rob Bavey
aceb682f18
Unpin bundler, fix gem installer tests (#13762)
Fix gem installer tests to enable unpinning the version of bundler

This commit removes changes the gem installer to use real gems, rather than
use `allow_instance_of` during testing, which appears to be problematic with the
latest version of bundler
2022-02-11 09:13:11 -05:00
João Duarte
e9c9865f40
Add apache and elastic license headers to source code files (#11673)
* add license header to ruby and java files
* add license header to erb and rake files
* add license headers to gradle files
2020-03-11 11:53:38 +00:00
João Duarte
cbfc945d74 Disable flaky test "should include the http address"
follow up at https://github.com/elastic/logstash/issues/11385

Fixes #11386
2019-12-04 10:13:43 +00:00
Andrew Cholakian
78f70634ed Refactor API specs to play well with others
This is a big chang, it:

1. Moves API specs out of their special hierarchy
2. Removes the API spec spec_helper
3. Reactivates that stats command spec (that was accidentally not being
run before due to it not having _spec as a suffix

This was required to fix the preceeding commit, where we added a
before(:each) hook to the spec_helper that wasn't being picked up in
some cases due to the existence of two spec helpers and a $LOAD_PATH
that could change.

Fixes #7132
2017-05-18 13:45:27 +00:00
Andrew Cholakian
76711a4785 LIR UI (Read Only) (#6241)
* Read-only Java IR
* Consistent ID generation as opposed to UUIDs

Fixes #6708
2017-04-03 08:49:00 -04:00
Pier-Hugues Pellerin
12cfa69215 Feature: A way to install/remove a plugin pack
A pack in this context is a *bundle* of plugins that can be distributed outside of rubygems; it is similar to what ES and kibana are doing, and
the user interface is modeled after them. See https://www.elastic.co/downloads/x-pack

**Do not mix it with the `bin/logstash-plugin pack/unpack` command.**

- it contains one or more plugins that need to be installed
- it is self-contains with the gems and the needed jars
- it is distributed as a zip file
- the file structure needs to follow some rules.

- As a reserved name name on elastic.co download http server
    - `bin/plugin install logstash-mypack` will check on the download server if a pack for the current specific logstash version exist and it will be downloaded, if it doesn't exist we fallback on rubygems.
    - The file on the server will follow this convention `logstash-mypack-{LOGSTASH_VERSION}.zip`

- As a fully qualified url
    - `bin/plugin install http://test.abc/logstash-mypack.zip`, if it exists it will be downloaded and installed if it does not we raise an error.

- As a local file
    - `bin/plugin install file:///tmp/logstash-mypack.zip`, if it exists it will be installed

Fixes #6168
2016-11-17 14:00:02 -05:00
Richard Pijnenburg
f472d4af24 Cleanup plugins to move to plugin system
Plugins have moved to https://github.com/logstash-plugins/... into
individual repositories. One plugin per repo.

* Add plugin install task and add required plugins for testing
* Adding a plugin task to install plugins
* Added required plugins to a prep task for the test part.

Fixes #1984
2014-11-04 23:24:59 +00:00
Richard Pijnenburg
51b3bf46c4 [RSPEC] Refactoring step 1
- Move helper functions in own modules and extend Rspec
- Refactor files into correct naming and paths
- Modify files to use new spec_helper and helpers
- Pin rspec to 2.14.x

Fixes #1758
2014-09-30 16:06:46 +00:00
Colin Surprenant
e03b67dc7d replace json parsers with JrJackson and Oj
refactored timestamps with new Timestamp class
closes #1434
2014-06-12 17:53:30 -04:00
Colin Surprenant
5d5d8e2235 proper utf8 support in plugins which assigned non utf8 event field values 2014-03-14 21:33:51 -04:00
Jordan Sissel
c9f44ef5e5 Remove old test that uses features that are deprecated now (grep,
'filter tags' setting, etc)
2014-02-14 13:58:33 -08:00
Pit Kleyersburg
6bb8a6b52b The spec "support/date-http" can fail on a non-english machine because
of the month name, added `locale => "en"` to fix it.
2013-12-30 19:52:14 +01:00
Jordan Sissel
a98ba35f98 - skip tests that use jruby-specific features (with an obvious TODO item
implied that we'll make it work under MRI/RBX eventually)
2013-09-02 20:17:20 +00:00
Jordan Sissel
cd20021156 Remove prints from tests 2013-08-13 21:57:05 -07:00
Jordan Sissel
b2e243f95f - fix spec now that type isn't required 2013-06-15 22:46:44 -07:00
Jordan Sissel
1536eeb442 - remove test that uses multiline filter 2013-06-15 22:46:27 -07:00
Jordan Sissel
2ceba13540 Add an older support-originating test I forgot to commit 2013-06-04 13:29:13 -07:00
Jordan Sissel
128c350edf Fix some support-originating specs 2013-06-03 12:52:50 -07:00
Wiibaa
cb3d326395 correct tests with deprecated config 2013-05-16 14:48:30 +02:00
Jordan Sissel
e1245e28d8 - another example 2013-04-01 15:45:02 -07:00
Jordan Sissel
4db0dab846 - add example from the mailling list 2013-03-30 13:40:09 -07:00
Jordan Sissel
4d8df5667d - Add coverage for the problem reported in pull #375 2013-02-27 08:25:29 -08:00
Jordan Sissel
a3c976346a - 2013-01-08 14:10:31 -08:00
Jordan Sissel
e1c9a78c59 Add test for LOGSTASH-820 support 2013-01-04 15:05:57 -08:00
Jordan Sissel
e299025b9c Add test case covering LOGSTASH-733 2012-11-28 23:50:57 -08:00
Jordan Sissel
7effd7d6a8 - no pry 2012-11-13 15:02:24 -08:00
Jordan Sissel
6b177461c8 - improve test flushing
- Add example for groups posting Ec8ISgamIfo
2012-11-13 15:01:40 -08:00