diff --git a/Makefile b/Makefile index c9832f679..0b8da0a06 100644 --- a/Makefile +++ b/Makefile @@ -325,6 +325,7 @@ prepare_test_server: DEFDOCDIR=`pwd`/doc \ FRDOCDIR=`pwd`/po-doc/fr @cp e2e-tests/lmConf-1.js e2e-tests/lemonldap-ng.ini e2e-tests/env.conf e2e-tests/test-nginx.conf e2e-tests/conf/ + @cp e2e-tests/form.html e2e-tests/conf/site @perl -i -pe 'BEGIN{$$p=`pwd`;chomp $$p}s#__pwd__#$$p#;s#__port__#$(TESTWEBSERVERPORT)#;s#__FASTCGISOCKDIR__#$(FASTCGISOCKDIR)#;' \ e2e-tests/conf/lemonldap-ng.ini \ e2e-tests/conf/lmConf-1.js \ diff --git a/e2e-tests/form.html b/e2e-tests/form.html new file mode 100644 index 000000000..66e2214b0 --- /dev/null +++ b/e2e-tests/form.html @@ -0,0 +1,13 @@ + + + + + +
+ + + + +
+ + diff --git a/e2e-tests/lmConf-1.js b/e2e-tests/lmConf-1.js index 8fa2ea11c..1c3cfd1d5 100644 --- a/e2e-tests/lmConf-1.js +++ b/e2e-tests/lmConf-1.js @@ -156,6 +156,22 @@ "generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256" }, "portal": "http://auth.example.com:__port__/", + "post": { + "test2.example.com": {}, + "manager.example.com": {}, + "test1.example.com": { + "/form.html": { + "vars": [ + ["postuid", "$_user"], + ["postmail", "'x@x.org'"], + ["poststatic", "'static content'"]], + "jqueryUrl": "http://manager.example.com:19876/static/bwr/jquery/dist/jquery.js", + "buttonSelector": "#bt", + "formSelector": "#test", + "target": "/index.pl" + } + } + }, "registerDB": "Null", "reloadUrls": {}, "securedCookie": 0,