Closed aholachek closed 8 years ago
yet another question: the new error I'm getting is
Could not apply config from consul: HTTPConnectionPool(host='localhost', port=8500): Max retries exceeded with url: /v1/kv/config/generic_service/generic_environment/?recurse=None (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x106b7ec90>: Failed to establish a new connection: [Errno 61] Connection refused',))
Looks like a rogue error unrelated to your underlying problem. If the consul config isn't loaded it just ignores it, but still writes a warning to the log.
Looking at travis, the main problems you're having are given in the tracebacks.
Traceback (most recent call last):
File "/home/travis/build/adsabs/biblib-service/biblib/tests/unit_tests/test_views.py", line 826, in test_that_solr_data_is_returned
bibcodes=library.bibcode
TypeError: solr_big_query() takes exactly 5 arguments (1 given)
and
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/travis/build/adsabs/biblib-service/biblib/tests/unit_tests/test_pagination.py", line 110
params={
^
SyntaxError: invalid syntax
@jonnybazookatone whenever you get a chance could you please look at the tests and tell me what I may be doing wrong here? I get the following messages when I try to run the first test:
User does not exist in database: 10 [API] Library missing or solr endpoint failed: No row was found for one()