[9.0][MIG][auth_signup_verify_email] Migration. - #436
Conversation
5b18bd0 to
bdbe60c
Compare
bdbe60c to
33a156d
Compare
|
Is there any chance to increase test coverage? |
|
Let me try |
b3560a3 to
f4e549f
Compare
f4e549f to
1ce88c2
Compare
|
It's being tested now. Is it possible that Travis is failing because it's runing in a non-CSRF mode while this test is CSRF-enabled? |
|
@yajo |
|
As you see in the docs, there's built in CSRF protection for v9. My tests woked fine locally, but it seems like the |
|
@yajo I ran a travis2docker # Create Dockerfiles
travisfile2dockerfile git@github.com:OCA/server-tools.git pull/436
# Create docker image
/tmp/script/git_github.com_oca_server-tools.git/pull_436/1ce88c2a2300653fdf1f784c088814293999d49e/3/10-build.sh --no-cache
# Create docker container
/tmp/script/git_github.com_oca_server-tools.git/pull_436/1ce88c2a2300653fdf1f784c088814293999d49e/3/20-run.sh "--name=csrf_token_error --entrypoint=bash"
# In container ran
/entrypoint.sh
After In container ran
~/odoo-9.0/odoo.py -d openerp_test -u auth_signup_verify_email --test-enable --stop-after-initI added a pdb to debug. diff --git a/auth_signup_verify_email/tests/test_verify_email.py b/auth_signup_verify_email/tests/test_verify_email.py
index 29ce113..e3da7a1 100644
--- a/auth_signup_verify_email/tests/test_verify_email.py
+++ b/auth_signup_verify_email/tests/test_verify_email.py
@@ -13,6 +13,7 @@ class UICase(HttpCase):
super(UICase, self).setUp()
settings = self.env["base.config.settings"].create({})
settings.auth_signup_uninvited = True
+ import pdb;pdb.set_trace()
self.data = {
"csrf_token": self.csrf_token(),
"name": "Somebody",In the line server-tools/auth_signup_verify_email/tests/test_verify_email.py(37)csrf_token() <- return doc.xpath("//input[@name='csrf_token']")[0].get("value")I used: I don't know how to fix it but if this information is useful for you, Could you help me to create hypothesis to check them? |
|
In other matter: ...
2016-05-27 12:01:21,282 13958 INFO 3147860-436-1ce88c-all openerp.modules.loading: loading sales_team/sales_team_demo.xml
2016-05-27 12:01:21,527 13958 INFO 3147860-436-1ce88c-all openerp.modules.module: module auth_signup_verify_email: creating or updating database tables
2016-05-27 12:01:21,528 13958 INFO 3147860-436-1ce88c-all openerp.modules.loading: loading auth_signup_verify_email/views/signup.xml
# Here should be the tests
2016-05-27 12:01:21,620 13958 INFO 3147860-436-1ce88c-all openerp.modules.module: module mail_environment: creating or updating database tables |
|
@moylop260, OCA runbot doesn't perform any test, or are you talking about your runbot? |
@pedrobaeza
@yajo FYI runbot doesn't perform any test |
|
@yajo http://test.runbot.vauxoo.com/runbot/repo/git-github-com-oca-server-tools-git-2 Here you can see the error replicated. If you give me your public ssh key I can give you ssh access to container with the error reproduced. moylop260(at)vauxoo(dot)com |
|
Hi, thanks for the debugging, I think I have a clue, let me see. |
|
Test was affected by odoo/odoo#12237, it's workarounded now. Thanks! |
|
Thank you @yajo 👍 |
|
👍 |
1 similar comment
|
👍 |
|
Ready to merge |
* Add module auth_signup_verify_email. * Import module following guidelines. * README typos. * OCA Transbot updated translations from Transifex * Credit creator. * author name correction * [9.0][MIG][auth_signup_verify_email] Migration. Migrate to v9. * [FIX] auth_signup_verify_email: Python library requirement * Add tests, fix xml tags, fix credits. * Fix test.
* Add module auth_signup_verify_email. * Import module following guidelines. * README typos. * OCA Transbot updated translations from Transifex * Credit creator. * author name correction * [9.0][MIG][auth_signup_verify_email] Migration. Migrate to v9. * [FIX] auth_signup_verify_email: Python library requirement * Add tests, fix xml tags, fix credits. * Fix test.
Syncing from upstream OCA/server-tools (12.0)


Migrate to v9.
@Tecnativa #271.