Closed
Description
When packaging pysaml2 for OpenSUSE on i586 (tests on other 32bit architecture is still pending) it fails in test_filter_ava_registration_authority_1 test:
[ 185s] ___________________ test_filter_ava_registration_authority_1 ___________________
[ 185s]
[ 185s] def test_filter_ava_registration_authority_1():
[ 185s] mds = MetadataStore(ATTRCONV, sec_config, disable_ssl_certificate_validation=True)
[ 185s] mds.imp(METADATACONF["1"])
[ 185s]
[ 185s] policy_conf = {
[ 185s] "default": {
[ 185s] "lifetime": {"minutes": 15},
[ 185s] "attribute_restrictions": None,
[ 185s] },
[ 185s] "http://rr.aai.switch.ch/": {
[ 185s] "attribute_restrictions": {
[ 185s] "givenName": None,
[ 185s] "surName": None,
[ 185s] }
[ 185s] }
[ 185s] }
[ 185s] policy = Policy(restrictions=policy_conf, mds=mds)
[ 185s]
[ 185s] attributes = {
[ 185s] "givenName": ["Derek"],
[ 185s] "surName": ["Jeter"],
[ 185s] "mail": [
[ 185s] "derek@nyy.mlb.com",
[ 185s] "dj@example.com",
[ 185s] ],
[ 185s] }
[ 185s]
[ 185s] # SP registered with http://rr.aai.switch.ch/
[ 185s] ava = policy.filter(attributes, "https://aai-idp.unibe.ch/idp/shibboleth")
[ 185s] > assert _eq(sorted(list(ava.keys())), ["givenName", "surName"])
[ 185s] E AssertionError: assert False
[ 185s] E + where False = _eq(['givenName', 'mail', 'surName'], ['givenName', 'surName'])
[ 185s] E + where ['givenName', 'mail', 'surName'] = sorted(['givenName', 'surName', 'mail'])
[ 185s] E + where ['givenName', 'surName', 'mail'] = list(dict_keys(['givenName', 'surName', 'mail']))
[ 185s] E + where dict_keys(['givenName', 'surName', 'mail']) = <built-in method keys of dict object at 0xf40bfed8>()
[ 185s] E + where <built-in method keys of dict object at 0xf40bfed8> = {'givenName': ['Derek'], 'mail': ['derek@nyy.mlb.com', 'dj@example.com'], 'surName': ['Jeter']}.keys
[ 185s]
[ 185s] tests/test_20_assertion.py:928: AssertionError
Code Version
v6.3.1 from tarball (no patches applied)
Python 3.8
All other details are in complete build log.
Metadata
Metadata
Assignees
Labels
No labels