Code Monkey home page Code Monkey logo

Comments (6)

robhudson avatar robhudson commented on June 15, 2024

The output I get is:

$ DJANGO_SETTINGS_MODULE=test_settings nosetests                                                                                                                                                     1 ↵
..E...EEEEEEEEEEE
======================================================================
ERROR: test suite for <class 'elasticutils.tests.test_django.QueryTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_django.py", line 89, in setup_class
    cls.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
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 /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 'elasticutils.tests.test_mlt.MoreLikeThisTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_mlt.py", line 14, in setup_class
    cls.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: facet_raw with date_histogram works.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_query.py", line 370, in test_facet_date_histogram
    FacetTest.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: Invalid _type should raise InvalidFacetType.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_query.py", line 395, in test_invalid_field_type
    FacetTest.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 'elasticutils.tests.test_query.FacetTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 227, in run
    self.tearDown()
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 350, in tearDown
    self.teardownContext(ancestor)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 366, in teardownContext
    try_run(context, names)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 44, in teardown_class
    cls.cleanup_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 94, in cleanup_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 'elasticutils.tests.test_query.QueryTest'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_query.py", line 16, in setup_class
    cls.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_default_mapping_type (elasticutils.tests.test_results.TestMappingType)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_results.py", line 145, in test_default_mapping_type
    self.__class__.index_data(data, create_index=True)
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 83, in index_data
    cls.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_default_mapping_type (elasticutils.tests.test_results.TestMappingType)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_results.py", line 138, in tearDown
    self.__class__.cleanup_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 94, in cleanup_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_mapping_type_attribute_override (elasticutils.tests.test_results.TestMappingType)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_results.py", line 158, in test_mapping_type_attribute_override
    self.__class__.index_data(data, create_index=True)
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 83, in index_data
    cls.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test_mapping_type_attribute_override (elasticutils.tests.test_results.TestMappingType)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_results.py", line 138, in tearDown
    self.__class__.cleanup_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 94, in cleanup_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 'elasticutils.tests.test_results.TestMappingType'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 227, in run
    self.tearDown()
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 350, in tearDown
    self.teardownContext(ancestor)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 366, in teardownContext
    try_run(context, names)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 44, in teardown_class
    cls.cleanup_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 94, in cleanup_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 'elasticutils.tests.test_results.TestResultsWithData'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/Users/rob/.virtualenvs/elasticutils-dev/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/Users/rob/git/elasticutils/elasticutils/tests/test_results.py", line 46, in setup_class
    cls.create_index()
  File "/Users/rob/git/elasticutils/elasticutils/tests/__init__.py", line 72, in create_index
    es.delete_index_if_exists(cls.index_name)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 304, in delete_index_if_exists
    return self.delete_index(index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 297, in delete_index
    return self._send_request('DELETE', index)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/es.py", line 210, in _send_request
    raise_if_error(response.status, decoded)
  File "/Users/rob/.virtualenvs/elasticutils-dev/src/pyes/pyes/convert_errors.py", line 64, in raise_if_error
    raise excClass(msg, status, result)
IndexMissingException: [elasticutilstest] missing
-------------------- >> begin captured logging << --------------------
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 183
pyes.urllib3.connectionpool: DEBUG: "GET /_all/_status HTTP/1.1" 200 3694
pyes: DEBUG: Connecting to localhost:9200
pyes: INFO: Starting new HTTP connection (1): localhost
pyes.urllib3.connectionpool: DEBUG: "DELETE /elasticutilstest HTTP/1.1" 404 74
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 9 tests in 0.313s

FAILED (errors=12)

from elasticutils.

willkg avatar willkg commented on June 15, 2024

Which version of pyes are you using?

You can find out with this:

$ python
>>> import pyes
>>> pyes.VERSION

I'm using pyes 0.16.

The reason I mention it is that we're calling delete_index_if_exists() which should delete it if it exists and not throw an IndexMissingException.

If it's a problem with pyes, we can wrap that call and ignore IndexMissingException.

from elasticutils.

robhudson avatar robhudson commented on June 15, 2024

I have 0.15. The requirements lists: pyes>=0.15,<0.17. I could rebuild my venv -- it's been awhile.

from elasticutils.

willkg avatar willkg commented on June 15, 2024

No need to change versions. I'm just trying to understand what's different between your environment and mine.

I think I'll wrap it in a try/except block with a note about dealing with brokenness of 0.15.

from elasticutils.

willkg avatar willkg commented on June 15, 2024

This should be fixed in pull #86.

from elasticutils.

willkg avatar willkg commented on June 15, 2024

Fixed in master in 1578b37.

Fixed in branch-0.5 in c7cfd75.

from elasticutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.