Skip to content

Commit ccd696e

Browse files
Added unit test for new disco stuff.
1 parent 153d879 commit ccd696e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pyff/test/test_md_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ def test_load_and_query(self):
136136
assert info['title'] == 'NORDUnet'
137137
assert 'nordu.net' in info['scope']
138138

139+
# check that we get a discovery_responses where we expect one
140+
r = requests.get("{}/entities/%7Bsha1%7Dc3ba81cede254454b64ee9743df19201fe34adc9.json".format(url))
141+
assert r.status_code == 200
142+
data = r.json()
143+
info = data[0]
144+
assert 'https://box-idp.nordu.net/simplesaml/module.php/saml/sp/discoresp.php' in info['discovery_responses']
139145

140146
class PyFFAPITestResources(PipeLineTest):
141147
"""

0 commit comments

Comments
 (0)