|
Try and re-authorise automatically
If a request returns 401 or 403, attempt to re-authorise and then retry the request.
The service double hook code was moved to a new package so that some tests could be
written without circular import issues.
https://code.launchpad.net/~wallyworld/goose/auto-reauth/+merge/149473
Requires: https://code.launchpad.net/~wallyworld/goose/single-http-client/+merge/148970
(do not edit description out of merge proposal)
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+316 lines, -205 lines) |
Patch |
|
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
client/client.go
|
View
|
|
2 chunks |
+12 lines, -1 line |
2 comments
|
Download
|
|
M |
errors/errors.go
|
View
|
|
3 chunks |
+16 lines, -0 lines |
3 comments
|
Download
|
|
M |
errors/errors_test.go
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
http/client.go
|
View
|
|
1 chunk |
+4 lines, -0 lines |
2 comments
|
Download
|
|
M |
nova/local_test.go
|
View
|
|
5 chunks |
+41 lines, -4 lines |
0 comments
|
Download
|
|
A |
testservices/hook/service.go
|
View
|
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
|
A |
testservices/hook/service_test.go
|
View
|
|
1 chunk |
+105 lines, -0 lines |
0 comments
|
Download
|
|
M |
testservices/identityservice/userpass.go
|
View
|
|
3 chunks |
+23 lines, -10 lines |
2 comments
|
Download
|
|
M |
testservices/novaservice/service.go
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
testservices/service.go
|
View
|
|
3 chunks |
+2 lines, -73 lines |
0 comments
|
Download
|
|
D |
testservices/service_test.go
|
View
|
|
1 chunk |
+0 lines, -105 lines |
0 comments
|
Download
|
|
M |
tools/secgroup-delete-all/main_test.go
|
View
|
|
4 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
Total messages: 4
|