Skip to content

Commit

Permalink
test: use lowercased LDAP base
Browse files Browse the repository at this point in the history
The LDAP base is lowercased in the response.

Bug #50249
  • Loading branch information
spaceone committed Dec 15, 2022
1 parent 750f5d0 commit f6f9b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ucs-test/tests/73_udm-rest/00_general_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_error_handling(udm, ldap_base):
assert sorted(exc.value.error_details['error'], key=itemgetter('location')) == sorted([
{'location': ['query', 'scope'], 'message': "Value has to be one of ['sub', 'one', 'base', 'base+one']", 'type': 'value_error'},
{'location': ['query', 'filter'], 'message': 'Not a valid LDAP search filter', 'type': 'value_error'},
{'location': ['query', 'position'], 'message': f'The ldap base is invalid. Use {ldap_base}.', 'type': 'value_error'},
{'location': ['query', 'position'], 'message': f'The ldap base is invalid. Use {ldap_base.lower()}.', 'type': 'value_error'},
], key=itemgetter('location'))

# not existing search base underneath of the real LDAP base
Expand Down

0 comments on commit f6f9b96

Please sign in to comment.