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: ¶ms.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"), |