Commit f51fa197 authored by Xavier Guimard's avatar Xavier Guimard

Prepare post test (#630)

parent edc23aa5
......@@ -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 \
......
<html>
<head>
<title></title>
</head>
<body>
<form id="test" method="post" action="index.pl">
<input name="postuid" placeholder="postuid" />
<input name="postmail" placeholder="postmail" />
<input name="poststatic" placeholder="poststatic" />
<input id="bt" name="post" type="submit" />
</form>
</body>
</html>
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment