wrong values are verified in oauth tests
Bug #1477247 reported by
Boris Bobrov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Undecided
|
Boris Bobrov |
Bug Description
test on https:/
But instead it compares values with themselves, but acquired using one of oauth client's method. Because of it it, the test always passes, regardless of what requests actual methods make.
Changed in python-keystoneclient: | |
assignee: | nobody → Boris Bobrov (bbobrov) |
status: | New → In Progress |
Changed in python-keystoneclient: | |
milestone: | none → 1.7.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/204678 /git.openstack. org/cgit/ openstack/ python- keystoneclient/ commit/ ?id=7d5d8b34323 2ee5faf4de33810 24095619335929
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7d5d8b343232ee5 faf4de338102409 5619335929
Author: Boris Bobrov <email address hidden>
Date: Wed Jul 22 18:52:49 2015 +0300
Make OAuth testcase use actual request headers
OAuth test verifies that access_token manager's methods make requests with
certain parameters. It is supposed to use values from mocked http handler
and compare them with referential values acquired from oauth client.
But instead of using values from mocked handler, it used the values from
oauth client and compared them with values from the client acquired using
attributes, basically testing oauthlib and not access_token manager's
methods.
Make the test compare correct values and remove check of timestamp,
which was useless because it is always mocked in tests and not provided in
actual requests.
As a consequence, use of get_oauth_params, which changed in oauthlib
1.0 and blocked the gate, was removed.
Closes-Bug: 1477177 5827104fd4a6441 222eb08468f
Closes-Bug: 1477247
Change-Id: I5e049163f84fde