WebOb recently changed how they validate Accept-* headers [0] to
closely follow the definitions in RFC 7231 Section 5.3.2 [1].
WebOb now checks the actual value of the Accept-Language header and
compares it to a regular expression. This caused a couple keystone
unit tests to fail because we were generating random UUIDs for
Accept-Language testing just to make sure the logic within keystone
was behaving properly. The UUID format actual fails the new regular
expression being used by WebOb to validate the Accept-Language
header.
This commit changes the tests to use a language header that passes
the new validation put in place by WebOb.
Reviewed: https:/ /review. openstack. org/568304 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=f37895dc59f 7bc2127b4e1ba8e 38ab50e3f1f9cb
Committed: https:/
Submitter: Zuul
Branch: master
commit f37895dc59f7bc2 127b4e1ba8e38ab 50e3f1f9cb
Author: Lance Bragstad <email address hidden>
Date: Mon May 14 14:29:52 2018 +0000
Update tests to work with WebOb 1.8.1
WebOb recently changed how they validate Accept-* headers [0] to
closely follow the definitions in RFC 7231 Section 5.3.2 [1].
WebOb now checks the actual value of the Accept-Language header and
compares it to a regular expression. This caused a couple keystone
unit tests to fail because we were generating random UUIDs for
Accept-Language testing just to make sure the logic within keystone
was behaving properly. The UUID format actual fails the new regular
expression being used by WebOb to validate the Accept-Language
header.
This commit changes the tests to use a language header that passes
the new validation put in place by WebOb.
[0] https:/ /docs.pylonspro ject.org/ projects/ webob/en/ stable/ whatsnew- 1.8.html# backwards- incompatibiliti es /tools. ietf.org/ html/rfc7231. html#section- 5.3.2
[1] https:/
Change-Id: Ic53f4d00bc6c8d ec08ec1bff589a9 1ff359276e1
Closes-Bug: 1765748