summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2014-07-09 16:48:55 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2014-07-09 16:48:55 (GMT)
commit0636b661c45028a7b932de829fa78de09787b935 (patch)
treeaeb2c08f27d614b4ba61603d0d9e141cca9fdbbf
parente4921500f9a144f4ea2915b5c287406df8c6d31f (diff)
downloadmandaye-meyzieu-0636b661c45028a7b932de829fa78de09787b935.zip
mandaye-meyzieu-0636b661c45028a7b932de829fa78de09787b935.tar.gz
mandaye-meyzieu-0636b661c45028a7b932de829fa78de09787b935.tar.bz2
mappers: use new syntax for reponse
-rw-r--r--rp_meyzieu/mappers/portail_famille_ecities.py32
1 files changed, 12 insertions, 20 deletions
diff --git a/rp_meyzieu/mappers/portail_famille_ecities.py b/rp_meyzieu/mappers/portail_famille_ecities.py
index c642126..def750b 100644
--- a/rp_meyzieu/mappers/portail_famille_ecities.py
+++ b/rp_meyzieu/mappers/portail_famille_ecities.py
@@ -49,24 +49,20 @@ mapping = [
{
'path': r'/mandaye/login$',
'method': 'GET',
- 'response': [{
+ 'response': {
'auth': 'login',
'condition': 'response.code==302',
- },]
+ }
},
{
'path': r'/mandaye/sso$',
'method': 'GET',
- 'response': [{
- 'auth': 'sso',
- }]
+ 'response': {'auth': 'sso',}
},
{
'path': r'/mandaye/slo$',
'method': 'GET',
- 'response': [{
- 'auth': 'slo',
- }]
+ 'response': {'auth': 'slo',}
},
{
'path': (r'/ffaxsslMeyzieu/$', r'/ffaxsslMeyzieu/workflow_url$'),
@@ -114,34 +110,30 @@ mapping = [
{
'path': r'/ffaxsslMeyzieu/mandaye_associate$',
'method': 'POST',
- 'response': [
- {
- 'auth': 'associate_submit',
- 'condition': "response.code==302"
- },
- ]
+ 'response': {
+ 'auth': 'associate_submit',
+ 'condition': "response.code==302"
+ }
},
{
'path': r'%s$' % END_POINTS_PATH['single_sign_on_post'],
'method': 'POST',
- 'response': [{'auth': 'single_sign_on_post'}]
+ 'response': {'auth': 'single_sign_on_post'}
},
{
'path': r'%s$' % END_POINTS_PATH['single_logout'],
'method': 'GET',
- 'response': [{
- 'auth': 'single_logout',
- }]
+ 'response': {'auth': 'single_logout',}
},
{
'path': r'%s$' % END_POINTS_PATH['single_logout_return'],
'method': 'GET',
- 'response': [{
+ 'response': {
'auth': 'single_logout_return',
'values': {
'next_url': index_url
},
- }]
+ }
},
]