Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1837)

Unified Diff: state/api/params/params_test.go

Issue 77420043: Add more info to the mega-watcher for machines.
Patch Set: Add more info to the mega-watcher for machines. Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/api/params/params.go ('k') | state/apiserver/client/client_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/api/params/params_test.go
=== modified file 'state/api/params/params_test.go'
--- state/api/params/params_test.go 2013-10-04 14:45:39 +0000
+++ state/api/params/params_test.go 2014-03-21 11:00:41 +0000
@@ -35,13 +35,19 @@
about: "MachineInfo Delta",
value: params.Delta{
Entity: &params.MachineInfo{
- Id: "Benji",
- InstanceId: "Shazam",
- Status: "error",
- StatusInfo: "foo",
+ Id: "Benji",
+ InstanceId: "Shazam",
+ Status: "error",
+ StatusInfo: "foo",
+ Life: params.Alive,
+ Series: "trusty",
+ SupportedContainers: []instance.ContainerType{instance.LXC},
+ Jobs: []params.MachineJob{state.JobManageEnviron.ToParams()},
+ Addresses: []instance.Address{},
+ HardwareCharacteristics: &instance.HardwareCharacteristics{},
},
},
- json: `["machine","change",{"Id":"Benji","InstanceId":"Shazam","Status":"error","StatusInfo":"foo","StatusData":null}]`,
+ json: `["machine","change",{"Id":"Benji","InstanceId":"Shazam","Status":"error","StatusInfo":"foo","StatusData":null,"Life":"alive","Series":"trusty","SupportedContainers":["lxc"],"SupportedContainersKnown":false,"Jobs":["JobManageEnviron"],"Addresses":[],"HardwareCharacteristics":{}}]`,
}, {
about: "ServiceInfo Delta",
value: params.Delta{
@@ -49,7 +55,7 @@
Name: "Benji",
Exposed: true,
CharmURL: "cs:quantal/name",
- Life: params.Life(state.Dying.String()),
+ Life: params.Dying,
OwnerTag: "test-owner",
MinUnits: 42,
Constraints: constraints.MustParse("arch=arm mem=1024M"),
« no previous file with comments | « state/api/params/params.go ('k') | state/apiserver/client/client_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b