I might be running these incorrectly but I am getting a few failures and a few errors:
(pyes) ± nosetests **/*py --failed on master
..EE.......F.FFF..............F....E...................E
======================================================================
ERROR: test_TermQuery (pyes.tests.attachments.QueryAttachmentTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/attachments.py", line 73, in setUp
self.conn.put_mapping("test-type", {"test-type":{'properties':mapping}}, ["test-index"])
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 529, in put_mapping
return self._send_request('PUT', path, mapping)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 220, in _send_request
raise_if_error(response.status, decoded)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/convert_errors.py", line 67, in raise_if_error
raise excClass(msg, status, result)
MapperParsingException: No handler for type [attachment] declared on field [attachment]
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index/test-type/_mapping HTTP/1.1" 500 99
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_filesave (pyes.tests.attachments.TestFileSaveTestCase)
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/attachments.py", line 22, in test_filesave
self.conn.put_mapping("test-type", {"test-type":{'properties':mapping}}, ["test-index"])
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 529, in put_mapping
return self._send_request('PUT', path, mapping)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 220, in _send_request
raise_if_error(response.status, decoded)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/convert_errors.py", line 67, in raise_if_error
raise excClass(msg, status, result)
MapperParsingException: No handler for type [attachment] declared on field [my_attachment]
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index/test-type/_mapping HTTP/1.1" 500 102
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_CustomScoreQueryJS (pyes.tests.queries.QuerySearchTestCase)
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/queries.py", line 122, in test_CustomScoreQueryJS
result = self.conn.search(query=q, indexes=["test-pindex"])
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 735, in search
return self._query_call("_search", body, indexes, doc_types, query_params)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 248, in _query_call
response = self._send_request('GET', path, body, querystring_args)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/es.py", line 220, in _send_request
raise_if_error(response.status, decoded)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/convert_errors.py", line 67, in raise_if_error
raise excClass(msg, status, result)
SearchPhaseExecutionException: Failed to execute phase [query], total failure; shardFailures {[l1nyp5FgSp6swhnBhIx_Dw][test-pindex][0]: SearchParseException[[test-pindex][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"custom_score": {"lang": "js", "query": {"match_all": {}}, "script": "parseFloat(_score(5+doc.position.value))"}}}]]]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [js]]; }{[l1nyp5FgSp6swhnBhIx_Dw][test-pindex][1]: SearchParseException[[test-pindex][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"custom_score": {"lang": "js", "query": {"match_all": {}}, "script": "parseFloat(_score(5+doc.position.value))"}}}]]]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [js]]; }{[l1nyp5FgSp6swhnBhIx_Dw][test-pindex][2]: SearchParseException[[test-pindex][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"custom_score": {"lang": "js", "query": {"match_all": {}}, "script": "parseFloat(_score*(5+doc.position.value))"}}}]]]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [js]]; }{[l1nyp5FgSp6swhnBhIx_Dw][test-pindex][3]: SearchParseException[[test-pindex][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"custom_score": {"lang": "js", "query": {"match_all": {}}, "script": "parseFloat(_score*(5+doc.position.value))"}}}]]]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [js]]; }{[l1nyp5FgSp6swhnBhIx_Dw][test-pindex][4]: SearchParseException[[test-pindex][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"custom_score": {"lang": "js", "query": {"match_all": {}}, "script": "parseFloat(_score*(5+doc.position.value))"}}}]]]; nested: ElasticSearchIllegalArgumentException[script_lang not supported [js]]; }
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "GET /test-pindex/_search HTTP/1.1" 500 1940
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Failure: ImportError (No module named mock)
Traceback (most recent call last):
File "/Users/dash/.virtualenvs/pyes/lib/python2.6/site-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/Users/dash/.virtualenvs/pyes/lib/python2.6/site-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/dash/.virtualenvs/pyes/lib/python2.6/site-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/tests_extra.py", line 8, in
from tests import ESTestCase
File "/Users/dash/.virtualenvs/pyes/src/check/tests.py", line 6, in
from mock import patch, Mock
ImportError: No module named mock
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-pindex HTTP/1.1" 200 31
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: Test error reported by deleting a missing document.
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/errors.py", line 71, in testDelete
"asdf")
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/pyestest.py", line 37, in checkRaises
"Expected exception %s not raised" % excClass
AssertionError: Expected exception <class 'pyes.exceptions.NotFoundException'> not raised
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index/flibble/asdf HTTP/1.1" 200 64
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_GeoBoundingBoxFilter (pyes.tests.geoloc.GeoQuerySearchTestCase)
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/geoloc.py", line 70, in test_GeoBoundingBoxFilter
self.assertEquals(result2['hits']['total'], 1)
AssertionError: 0 != 1
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-mindex HTTP/1.1" 400 33
pyes.urllib3.connectionpool: DEBUG: "PUT /test-mindex HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-mindex/test-type/_mapping HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-mindex/test-type/1 HTTP/1.1" 200 64
pyes.urllib3.connectionpool: DEBUG: "PUT /test-mindex/test-type/2 HTTP/1.1" 200 64
pyes.urllib3.connectionpool: DEBUG: "POST /test-mindex/_refresh HTTP/1.1" 200 60
pyes.urllib3.connectionpool: DEBUG: "GET /_cluster/health HTTP/1.1" 200 228
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "GET /test-mindex/_search HTTP/1.1" 200 262
pyes.urllib3.connectionpool: DEBUG: "GET /test-mindex/_search HTTP/1.1" 200 104
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_GeoDistanceFilter (pyes.tests.geoloc.GeoQuerySearchTestCase)
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/geoloc.py", line 59, in test_GeoDistanceFilter
self.assertEquals(result['hits']['total'], 1)
AssertionError: 0 != 1
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "GET /test-mindex/_search HTTP/1.1" 200 263
pyes.urllib3.connectionpool: DEBUG: "GET /test-mindex/_search HTTP/1.1" 200 104
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_GeoPolygonFilter (pyes.tests.geoloc.GeoQuerySearchTestCase)
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/geoloc.py", line 90, in test_GeoPolygonFilter
self.assertEquals(result['hits']['total'], 1)
AssertionError: 0 != 1
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "GET /test-mindex/_search HTTP/1.1" 200 262
pyes.urllib3.connectionpool: DEBUG: "GET /test-mindex/_search HTTP/1.1" 200 104
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: testMLT (pyes.tests.indexing.IndexingTestCase)
Traceback (most recent call last):
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/indexing.py", line 145, in testMLT
], u'total': 2, u'max_score': 0.19178301})
File "/Users/dash/Projects/fd/the_code/vendor/src/pyes/pyes/tests/pyestest.py", line 24, in assertResultContains
self.assertEquals(value, result[key])
AssertionError: [{u'_type': u'test-type', u'_index': u'test-index', u'_score': 0.19178301, u'_source': {u'name': u'Joe Tested'}, u'_version': 1, u'_id': u'3'}, {u'_type': u'test-type', u'_index': u'test-index', u'_score': 0.19178301, u'_source': {u'name': u'Joe Tester'}, u'_version': 1, u'_id': u'2'}] != [{u'_score': 0.19178301, u'_type': u'test-type', u'_id': u'3', u'_source': {u'name': u'Joe Tested'}, u'_index': u'test-index'}, {u'_score': 0.19178301, u'_type': u'test-type', u'_id': u'2', u'_source': {u'name': u'Joe Tester'}, u'_index': u'test-index'}]
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to 127.0.0.1:9200
pyes: INFO: Starting new HTTP connection (1): 127.0.0.1
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index HTTP/1.1" 400 32
pyes.urllib3.connectionpool: DEBUG: "DELETE /test-index2 HTTP/1.1" 400 33
pyes.urllib3.connectionpool: DEBUG: "DELETE /another-index HTTP/1.1" 400 35
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index2 HTTP/1.1" 200 31
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index/test-type/1 HTTP/1.1" 200 63
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index/test-type/2 HTTP/1.1" 200 63
pyes.urllib3.connectionpool: DEBUG: "PUT /test-index/test-type/3 HTTP/1.1" 200 63
pyes.urllib3.connectionpool: DEBUG: "POST /test-index/_refresh HTTP/1.1" 200 60
pyes.urllib3.connectionpool: DEBUG: "GET /_cluster/health HTTP/1.1" 200 228
pyes.urllib3.connectionpool: DEBUG: "GET /test-index/test-type/1/_mlt?min_doc_freq=1&fields=name&min_term_freq=1 HTTP/1.1" 200 330
--------------------- >> end captured logging << ---------------------
Ran 56 tests in 41.128s
FAILED (errors=4, failures=5)