|
apiserver: StatusSetter common mixin
Extracted SetStatus handling from Machiner and created
a StatusSetter mixin in apiserver/common, using the
same model as for Remover and PasswordChanger. Also
refactored the Machiner facade to use it.
As a drive-by fix changed several test packages to
import gocheck aliased as "gc".
This is the first of several steps to extract common
API code from the machiner, so it can be used by the
upcoming Uniter facade.
https://code.launchpad.net/~dimitern/juju-core/088-api-statussetter/+merge/178529
(do not edit description out of merge proposal)
Total comments: 7
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+470 lines, -252 lines) |
Patch |
|
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/api/machiner/machine.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
state/api/params/internal.go
|
View
|
1
|
2 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/life_test.go
|
View
|
1
|
4 chunks |
+38 lines, -38 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/password_test.go
|
View
|
1
|
5 chunks |
+59 lines, -59 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/remove.go
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/remove_test.go
|
View
|
1
|
4 chunks |
+48 lines, -48 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/resource_test.go
|
View
|
|
4 chunks |
+25 lines, -23 lines |
0 comments
|
Download
|
|
A |
state/apiserver/common/setstatus.go
|
View
|
1
|
1 chunk |
+69 lines, -0 lines |
1 comment
|
Download
|
|
A |
state/apiserver/common/setstatus_test.go
|
View
|
1
|
1 chunk |
+131 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/apiserver/machine/common_test.go
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
state/apiserver/machine/machiner.go
|
View
|
|
2 chunks |
+7 lines, -30 lines |
0 comments
|
Download
|
|
M |
state/apiserver/machine/machiner_test.go
|
View
|
|
10 chunks |
+46 lines, -46 lines |
0 comments
|
Download
|
|
M |
state/state.go
|
View
|
|
2 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5
|