From 264c3d054f68a0729085961464f0c8aa44f52cc6 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 2 Sep 2015 16:55:39 -0400 Subject: [PATCH] Update REST test to include attributes for SP Portal https://fedorahosted.org/ipsilon/ticket/148 Signed-off-by: Rob Crittenden Reviewed-by: Patrick Uiterwijk --- tests/helpers/http.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/helpers/http.py b/tests/helpers/http.py index 8c0a291..69d40a5 100755 --- a/tests/helpers/http.py +++ b/tests/helpers/http.py @@ -347,7 +347,13 @@ class HttpSessions(object): headers = {'referer': url} if rest: expected_status = 201 - payload = {'metadata': m.content} + payload = { + 'metadata': m.content, + 'visible': True, + 'description': sp, + 'image': 'Zm9v', + 'splink': 'http://test.example.com/secret/', + } headers['content-type'] = 'application/x-www-form-urlencoded' url = '%s/%s/rest/providers/saml2/SPS/%s' % (idpuri, idp, sp) r = self.post(url, headers=headers, data=urlencode(payload)) -- 2.20.1