Closed cdisabatino closed 5 years ago
Hi, Fixes have been applied to the database migrations. Tests should now run smoothly.
Hello, Thanks for the update.
I deleted the two databases and created them again before the test.
Result :
java.sql.SQLSyntaxErrorException: Table 'salava_test.user_badge_metabadge' doesn't exist
Ran 10 tests containing 83 assertions. 8 failures, 0 errors. {: failures 8}
Thank you
Hi, You have to enable the metabadge plugin. Add :metabadge to the enabled plugins in config/core.edn and test_config/core.edn
Hello, I confirm, adding the plugin "metabadge", the associated errors is no longer present.
All that remains is the errors and warnings present in the attached file : error.txt
Thanks
Hi,
It's much better. All that remains is the traces below (ignoring "send-badge-info-to-obf").
Should not add the plugin ": metabadge" in the GIT "config/core.edn.base" ?
Thanks
E 2019/11/08 14:38:27.423 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/08 14:38:28.080 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/08 14:38:28.724 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/08 14:38:30.141 - salava.badge.parse : file->assertion: unsupported file type: text/plain E 2019/11/08 14:38:30.142 - salava.badge.parse : file->assertion: unsupported file type: image/bmp WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by clojure.lang.InjectedInvoker/0x00000008401e8440 (file:/root/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar) to method com.sun.org. apache.xerces.internal.jaxp.SAXParserImpl.parse(org.xml.sax.InputSource,org.xml.sax.HandlerBase) WARNING: Please consider reporting this to the maintainers of clojure.lang.InjectedInvoker/0x00000008401e8440 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release E 2019/11/08 14:38:36.295 - salava.badge.endorsement : {:status error, :message User cannot endorse himself} E 2019/11/08 14:38:37.017 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/08 14:38:37.633 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/08 14:38:38.281 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed I 2019/11/08 14:38:45.450 - salava.mail.mail : sending to test.registration@example.com I 2019/11/08 14:38:45.663 - salava.mail.mail : {:code 0, :error :SUCCESS, :message message sent}
FAIL in (main-test) (db_test.clj:26) register user register user with correct data expected: (= "success" (:status connect)) actual: (not (= "success" "error"))
FAIL in (main-test) (db_test.clj:27) register user register user with correct data expected: (= "" (:message connect)) actual: (not (= "" "user/Enteredaddressisalready"))
Ran 10 tests containing 83 assertions. 2 failures, 0 errors. {:failures 2}
Hi, Drop and recreate your salava_test db. Also, make sure you are in test mode before running tests.
Hi, I resumed the procedure in its entirety. "git pull", drop and create database. I am in the test mode "IN TEST MODE: true". The result is identical to the previous message. Thank you
Hi, Still failures? Please, paste results here.
It's the same as before (ignoring "send-badge-info-to-obf"). In the traces, there are WARNINGs but in the end report, there are two FAILs.
E 2019/11/12 12:45:08.352 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/12 12:45:08.980 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/12 12:45:09.606 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/12 12:45:11.029 - salava.badge.parse : file->assertion: unsupported file type: text/plain E 2019/11/12 12:45:11.030 - salava.badge.parse : file->assertion: unsupported file type: image/bmp WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by clojure.lang.InjectedInvoker/0x00000008401e8440 (file:/root/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar) to method com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(org.xml.sax.InputSource,org.xml.sax.HandlerBase) WARNING: Please consider reporting this to the maintainers of clojure.lang.InjectedInvoker/0x00000008401e8440 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release E 2019/11/12 12:45:17.071 - salava.badge.endorsement : {:status error, :message User cannot endorse himself} E 2019/11/12 12:45:17.762 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/12 12:45:18.367 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed E 2019/11/12 12:45:19.017 - salava.badge.main : send-badge-info-to-obf: GET request to https://openbadgefactory.com/c/badge/passport_update failed I 2019/11/12 12:45:26.325 - salava.mail.mail : sending to test.registration@example.com I 2019/11/12 12:45:26.415 - salava.mail.mail : {:code 0, :error :SUCCESS, :message message sent} Midje summary: No facts were checked. Is that what you wanted?
Output from clojure.test tests:
FAIL in (main-test) (db_test.clj:26) register user register user with correct data expected: (= "success" (:status connect)) actual: (not (= "success" "error"))
FAIL in (main-test) (db_test.clj:27) register user register user with correct data expected: (= "" (:message connect)) actual: (not (= "" "user/Enteredaddressisalready"))
Ran 10 tests containing 83 assertions. 2 failures, 0 errors. {:failures 2}
Hi, Tests should now run properly.
Hello. Great job, there are no more mistakes. Only the warnings. I closed the issue.
Thank you very much, Have a good day.
Ran 9 tests containing 70 assertions. 0 failures, 0 errors. {:failures 0}
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by clojure.lang.InjectedInvoker/0x00000008401e8440 (file:/root/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar) to method com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(org.xml.sax.InputSource,org.xml.sax.HandlerBase) WARNING: Please consider reporting this to the maintainers of clojure.lang.InjectedInvoker/0x00000008401e8440 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
Hello. When I run the tests with the command "lein repl (run-tests)", I have the errors below. What are they and how can I fix them ?
Thank you