Boaz Leskes
39f86a1abe
Test: move LongGCDisruption from Thread.getAllStackTraces() to Thread.enumerate()
...
To allow it to run without the "modifyThreadGroup" permission.
2015-09-17 14:23:57 +02:00
Christoph Büscher
887399eebf
Query Refactoring: moving validation to constructors and setters
...
This PR is an initial step to move the query validation we started
to collect in the validate() method to the corresponding setters
and constructors.
2015-09-17 13:57:34 +02:00
Martijn van Groningen
1a8495d1d6
tests: Add to ability for a integration test to prevent specific templates from being wiped between tests.
2015-09-17 12:34:46 +02:00
Tanguy Leroux
5b0ad2272e
[test] Fix search context check in DeleteByQueryTests
...
Closes #13580
2015-09-17 12:17:40 +02:00
Simon Willnauer
e9713cbb7b
Append new exceptions to the end otherwise backporting won't work
2015-09-17 11:14:59 +02:00
Simon Willnauer
af9166d84d
Use a dedicated id to serialize EsExceptions instead of it's class name.
...
Classnames change quickly due to refactorings etc. If that happens in a minor release
we loose the ability to deserialize the exceptoin coming from another node sicne we today
look it up by classname. This change uses a dedicated static id instead of the classname
to lookup the actual class.
2015-09-17 11:08:09 +02:00
Britta Weber
07de30272b
Merge pull request #13617 from brwe/plugin-list-vagrant-test
...
[test] add test for 'plugin list'
2015-09-17 10:26:35 +02:00
Britta Weber
d4161ff938
[test] add test for 'plugin list'
...
Tests that the plugins that are reported with 'plugin list' are the
same as in the plugins pom.
2015-09-17 10:25:35 +02:00
Robert Muir
a307d3b021
Merge pull request #13628 from rmuir/insecure_plugin_tests_with_multiple_roots
...
Insecure plugin tests with multiple roots
2015-09-17 02:52:05 -04:00
Robert Muir
6cfbf9cf54
Revert "quiet flakey gce tests"
...
This reverts commit 7eef7e42d4
.
2015-09-17 02:32:51 -04:00
Robert Muir
5e15ba90bb
Revert "disable unit tests until they work"
...
This reverts commit 606cc456d2
.
2015-09-17 02:32:33 -04:00
Robert Muir
dc0bebada1
Support tests for insecure plugins on systems with multiple fs roots.
2015-09-17 02:30:45 -04:00
Robert Muir
d4e53d8393
fix compilation with ECJ (eclipse IDE etc)
2015-09-16 14:33:39 -04:00
Ryan Ernst
b14326d494
Merge pull request #13611 from rjernst/spec_in_resources
...
Move rest-api-spec for plugins into test resources
2015-09-16 11:15:35 -07:00
Ryan Ernst
606cc456d2
disable unit tests until they work
2015-09-16 10:26:01 -07:00
Ryan Ernst
7eef7e42d4
quiet flakey gce tests
2015-09-16 09:59:38 -07:00
Robert Muir
a0eabda020
Merge pull request #13620 from rmuir/kill_more_bogus_permissions
...
Remove some bogus permissions only needed for tests.
2015-09-16 12:18:20 -04:00
Robert Muir
09d2188869
Merge branch 'master' into kill_more_bogus_permissions
2015-09-16 12:17:43 -04:00
Christoph Büscher
125be0a05f
Tests: Fix HighlighterSearchIT#testMultiMatchQueryHighlight, dont use null type
2015-09-16 18:14:53 +02:00
Lee Hinman
37ba02ab21
[TEST] Fix incorrect location for greaterThanOrEqual fix
2015-09-16 10:10:42 -06:00
Robert Muir
ba934c6bee
Remove some bogus permissions only needed for tests.
...
Especially the worst of the worst with thread permissions: for example,
this prevents some code from starting daemon thread that will outlive
the elasticsearch process and hang around doing evil shit.
2015-09-16 12:07:18 -04:00
Nik Everett
037a7583af
Merge pull request #13262 from nik9000/package_test_for_script_and_template
...
Packaging test for filesystem scripts
2015-09-16 10:45:40 -04:00
Nik Everett
8d02efd088
[test] Packaging test for filesystem scripts
...
Adds a tests for loading scripts from the filesystem for search templates
and for search filters.
Closes #13184
2015-09-16 10:44:21 -04:00
Shaunak Kashyap
29165c59f5
Merge pull request #13598 from ycombinator/cloud-gce-doc-update
...
Cloud GCE documentation update
2015-09-16 07:26:56 -07:00
Nik Everett
9257478b47
Merge pull request #13593 from nik9000/sles_vagrant
...
Add opensuse-13 to packaging tests
2015-09-16 10:12:31 -04:00
Nik Everett
058d385942
[test] Add opensuse-13 to packaging tests
...
This gets opensuse-13 working with vagrant and the packaging tests. They pass
with some minor tweaks.
Closes #13507
2015-09-16 10:09:39 -04:00
Nik Everett
26dfe311ec
Merge pull request #13594 from nik9000/fix_centos_6
...
Fix centos-6 tests
2015-09-16 10:00:31 -04:00
Shaunak Kashyap
516ba6c8f6
Using gcloud CLI as gcutil CLI has been deprecated
2015-09-16 06:43:47 -07:00
Alex Ksikes
a3c68f690b
Refactors MultiMatchQueryBuilder and Parser
...
Relates to #10217
This PR is against the query-refactoring branch.
Closes #13405
2015-09-16 13:41:22 +02:00
Christoph Büscher
c5a7fedb23
TermsQueryBuilder: removing guava Longs
2015-09-16 13:16:59 +02:00
Christoph Büscher
ff74e94260
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/common/unit/Fuzziness.java
core/src/main/java/org/elasticsearch/index/mapper/internal/IdFieldMapper.java
core/src/main/java/org/elasticsearch/index/query/IdsQueryParser.java
core/src/main/java/org/elasticsearch/index/query/functionscore/random/RandomScoreFunctionParser.java
core/src/test/java/org/elasticsearch/search/highlight/HighlighterSearchIT.java
2015-09-16 13:04:18 +02:00
Ryan Ernst
45f757de6d
Test: Move rest-api-spec for plugins into test resources
...
Plugin tests require having rest-api tests, and currently copy that spec
from a directory in the root of the plugin source into the test
resources. This change moves the rest-api-spec dir into test resources
so it is like any other test resources. It also removes unnecessary
configuration for resources from the shared plugin pom.
2015-09-16 03:04:53 -07:00
Britta Weber
d498006525
Merge pull request #13124 from brwe/check-java-home
...
make sure JAVA_HOME is set before tests are run
2015-09-16 11:55:10 +02:00
Britta Weber
3f40e1ca3c
make sure JAVA_HOME is set before tests are run
...
relates to #12961
2015-09-16 11:54:08 +02:00
Christoph Büscher
8fb1aa9781
Refactors GeoDistanceQueryBuilder/-Parser
...
Splits parsing and Lucene query generation. Switches from storing lat/lon
separately to using GeoPoint instead.
Relates to #10217
2015-09-16 11:15:32 +02:00
Alex Ksikes
65139ee40a
Removes unused empty parser's constructors
2015-09-16 11:03:34 +02:00
Michael McCandless
0060a749ca
Fix test case to verify the AssertionError did in fact come from IndexWriter.filesExist
2015-09-16 04:59:36 -04:00
Jason Tedor
30a7795119
Remove unused import in o.e.c.u.i.Iterables
2015-09-16 04:51:06 -04:00
Michael McCandless
69199ffb6f
Merge pull request #13609 from mikemccand/iw_fne_init
...
Fix InternalEngineTests.testTranslogReplayWithFailure to expect AssertionError as well
2015-09-16 04:49:11 -04:00
Michael McCandless
51773f2a66
fix test to expect AssertionError as well
2015-09-16 04:31:27 -04:00
Robert Muir
01e6d8e3dc
Remove java.lang.reflect.ReflectPermission "suppressAccessChecks"
...
Closes #13603
Squashed commit of the following:
commit 8799fb42d80297a79285beaf407b1bbecdb5854d
Author: Robert Muir <rmuir@apache.org>
Date: Wed Sep 16 03:32:29 2015 -0400
Add randomizedtesting snapshot note
commit 0d874d9f0f5fddaeab8f48f9816a052dcaa691be
Author: Robert Muir <rmuir@apache.org>
Date: Wed Sep 16 03:11:01 2015 -0400
Add a mechanism for insecure plugins and get all tests passing
commit 80540aeb9a264f6f299aaa3bc89df7f9b7923a60
Author: Robert Muir <rmuir@apache.org>
Date: Tue Sep 15 22:59:29 2015 -0400
Really remove, we are killing this
commit 884818c1ad44ca2e7572a6998c086580be919657
Author: Robert Muir <rmuir@apache.org>
Date: Tue Sep 15 22:57:22 2015 -0400
fill in TODOs
commit 34f4cb81f249edfec4d8d211da892f8c987e5948
Author: Robert Muir <rmuir@apache.org>
Date: Tue Sep 15 22:31:43 2015 -0400
Publish snapshots of RR and lucene and cutover
commit d68eb9d66ce059761805c64d67e41a29098c9afa
Merge: f27e208 f62da59
Author: Robert Muir <rmuir@apache.org>
Date: Tue Sep 15 12:32:41 2015 -0400
Merge branch 'master' into kill-setaccessible
commit f27e20855216dab6a6ad035d41018d8c67f3144c
Author: Robert Muir <rmuir@apache.org>
Date: Tue Sep 15 12:32:21 2015 -0400
make a real lucene snapshot
2015-09-16 04:08:31 -04:00
Simon Willnauer
76b027a979
[TEST] Only assert on a generic AssertionError
...
The specific error might be lost on the transport layer and turned into a generic
AssertionError instead.
Closes #13599
2015-09-16 09:21:13 +02:00
Igor Motov
8d542da89d
Test: await fix on GroovyScriptIT.testGroovyExceptionSerialization
2015-09-15 22:54:29 -04:00
Alex Ksikes
a13336da54
Refactors MoreLikeThisQueryBuilder and Parser
...
Relates to #10217
This PR is against the query-refactoring branch.
Closes #13486
2015-09-16 02:09:38 +02:00
Igor Motov
d6f9fe96af
Tests: Make sure that the cluster state came from the same master before checking for discrepancies
...
If nodes don't agree on the master, the cluster state doesn't have to match even if they have the same version
2015-09-15 19:34:48 -04:00
Alex Ksikes
4096244ec2
Also adds tests for date fields for match query builder
...
PR is against the query refactoring branch.
Closes #13585
2015-09-16 00:26:18 +02:00
Nik Everett
bfc5f47fe2
[test] Fix centos-6 tests
...
Right now we execute some debian-isms in the init.d tests. This switches to
trying both the debian and centos ways to stop services from starting
automatically.
2015-09-15 17:55:12 -04:00
Simon Willnauer
bfa984e1c2
Prevent losing stacktraces when exceptions occur
...
This commit removes unnecesssary use of ExceptionHelpers where we actually
should serialize / deserialize the actual exception. This commit also
fixes one of the oddest problems where the actual exception was never
rendered / printed if `all shards failed` due to a missing cause.
This commit unfortunately doesn't fix Snapshot/Restore which is almost
unfixable since it has to serialize XContent and read from it which can't
transport exceptions.
2015-09-15 23:20:54 +02:00
xuzha
c6da8d5e13
IndexNameExpressionResolver should not ignore any wildcards that occur
...
elsewhere in the expression,
closes #13334
2015-09-15 10:54:33 -07:00
Nicholas Knize
589fb9674f
Relax geopoint comparison tolerance
...
Weighted centroid, morton hash, and geohash can be imprecise (computation error) to 1e-5. The previous compareTo set this tolerance too strict (1e-6) causing a reproducible comparison error on weighted centroid (#13558 ). This change relaxes the tolerance to the acceptable computation error of 1e-5
closes #13558
2015-09-15 12:35:10 -05:00