-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems testing locally #203
Comments
Sanity check: Is your |
Also, you might need to update the local |
I haven't looked at the tests but (1) you might need host:translate=true to
change public URLs with /v3 and so on into URLs native to the various
services - unfortunately this feature is not yet documented and (2) in
conjunction with that some translations may have to be added to the
`translations` table defined at the end of ws-tests/opentreetesting.py to
mimic what the apache aliases do (deploy/setup/opentree-shared.conf) -
maybe these didn't get updated when the additions feature was added. (sad
but true that there is no automatic way to keep these in sync.)
../../germinator/ws-tests/run_tests.sh -t . host:translate=true
http://127.0.0.1:8000
|
I put the new translations on this branch:
https://github.com/OpenTreeOfLife/germinator/tree/fix-translations
but haven't tested them because I don't have a local phylesystem-api
installation. If you want to try it out (test the tests) that would be
great.
|
if none of this works, feel free to put your version on devapi and test
from there.
|
Thanks @jimallman I did double check peyotl, and it's up-to-date and on master, as is phylesystem-api. And removing and replacing the mini system didn't help. @jar398's idea about the translation makes sense to me, but adding host:translate=true didn't fix anything. Also - on the new fix-translations branch no tests pass Traceback (most recent call last): I'll hop on gitter on Monday, I suspect I'm missing something obvious! |
Unlikely that it's your error. As I said, I didn't test that branch; I'm enlisting your help in doing so. When python says "object is not callable" that often means there's a comma missing. |
Ah ya, I recognized that about the fix-translations branch, but I meant I suspect I have something potentially obvious wrong in my web2py configuration. Pulling the new version of fix-translations brings me back to 9/31 tests passing. |
OK, so we have two hypotheses, one having to do with your web2py configuration, the other having to do with translations and opentreetesting.py. Happy to help work through this with you tomorrow. |
as far as I can tell, no one has it testing locally working currently, so I will test on devapi if needed. |
I have reported what I believe to be the underlying problem here: OpenTreeOfLife/germinator#117 |
Ok! Getting there! if I haev germinator on issue-117, and everything else on master. I run:
I still have two tests failing.
|
I think this is a problem with my local phylesystem-api web2py setup, as these all pass running against devapi, but when I an running phylesystem-api (master) on my machine, I set my test.conf to local, (apihost = http://127.0.0.1:8000) some tests pass, e.g. test_api_root.py, test_study_get.py run fine, which suggests my setup is at least partially ok, but most fail.
../../germinator/ws-tests/run_tests.sh -t . http://127.0.0.1:8000
Failures: test_amendment_get_404.py test_amendment_list.py test_collection_get_404.py test_collection_list.py test_external_url.py test_v2_studies_findall.py test_v2_studies_find_doi.py test_v2_studies_find_trees.py test_v2_studies_properties.py
For example:
python test_amendment_list.py
testing-harness: Sent GET to http://127.0.0.1:8000/v3/amendments/list_all
testing-harness: Got status code 400 (expecting 200)
testing-harness: Did not get expected response status. Got:
400
testing-harness: Full response:
invalid request
resp.text =
invalid request
Traceback (most recent call last):
File "test_amendment_list.py", line 9, in
return_bool_data=True)
File "/home/ejmctavish/projects/otapi/germinator/ws-tests/opentreetesting.py", line 176, in test_http_json_method
raise_for_status(resp)
File "/home/ejmctavish/projects/otapi/germinator/ws-tests/opentreetesting.py", line 209, in raise_for_status
raise e
requests.exceptions.HTTPError: 400 Client Error: BAD REQUEST
Any ideas about what I am doing wrong?
The text was updated successfully, but these errors were encountered: