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

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

Issue 8086045: Expose more delta information
Patch Set: Expose more delta information Created 12 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/api_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-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: &params.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{
« no previous file with comments | « state/api/params/params.go ('k') | state/apiserver/api_test.go » ('j') | no next file with comments »

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