Prepare post test (#630)
This commit is contained in:
parent
edc23aa511
commit
f51fa19749
1
Makefile
1
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 \
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<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,
|
||||
|
|
Loading…
Reference in New Issue