Index: state/api/params/params_test.go |
=== modified file 'state/api/params/params_test.go' |
--- state/api/params/params_test.go 2013-03-29 14:54:20 +0000 |
+++ state/api/params/params_test.go 2013-04-01 20:52:59 +0000 |
@@ -3,6 +3,7 @@ |
import ( |
"encoding/json" |
. "launchpad.net/gocheck" |
+ "launchpad.net/juju-core/charm" |
"launchpad.net/juju-core/state/api/params" |
"testing" |
) |
@@ -47,9 +48,28 @@ |
Entity: ¶ms.UnitInfo{ |
Name: "Benji", |
Service: "Shazam", |
+ Series: "precise", |
+ CharmURL: &charm.URL{ |
+ Schema: "cs", |
+ User: "user", |
+ Series: "precise", |
+ Name: "wordpress", |
+ Revision: 42, |
+ }, |
+ Ports: []params.Port{ |
+ params.Port{ |
+ Protocol: "http", |
+ Number: 80}, |
+ }, |
+ PublicAddress: "example.com", |
+ PrivateAddress: "10.0.0.1", |
+ Resolved: "", // See params.ResolvedMode |
+ MachineId: "1", |
+ Status: params.UnitStarted, |
+ StatusInfo: "Start info", |
}, |
}, |
- json: `["unit","change",{"Name":"Benji","Service":"Shazam"}]`, |
+ json: `["unit", "change", {"CharmURL": "cs:~user/precise/wordpress-42", "MachineId": "1", "Series": "precise", "Name": "Benji", "StatusInfo": "Start info", "Status": "started", "PublicAddress": "example.com", "Service": "Shazam", "PrivateAddress": "10.0.0.1", "Resolved": "", "Ports": [{"Protocol": "http", "Number": 80}]}]`, |
}, { |
about: "RelationInfo Delta", |
value: params.Delta{ |