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

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

Issue 8811043: Add Life to Service API information
Patch Set: Add Life to Service API information Created 11 years, 11 months 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/megawatcher.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-04-15 22:40:57 +0000
+++ state/api/params/params_test.go 2013-04-17 00:55:05 +0000
@@ -5,6 +5,7 @@
. "launchpad.net/gocheck"
"launchpad.net/juju-core/charm"
"launchpad.net/juju-core/constraints"
+ "launchpad.net/juju-core/state"
"launchpad.net/juju-core/state/api/params"
"testing"
)
@@ -42,6 +43,7 @@
Name: "Benji",
Exposed: true,
CharmURL: "cs:series/name",
+ Life: state.Dying.String(),
Constraints: constraints.MustParse("arch=arm mem=1024M"),
Config: map[string]interface{}{
"hello": "goodbye",
@@ -49,7 +51,7 @@
},
},
},
- json: `["service","change",{"CharmURL": "cs:series/name","Name":"Benji","Exposed":true,"Constraints":{"arch":"arm", "mem": 1024},"Config": {"hello":"goodbye","foo":false}}]`,
+ json: `["service","change",{"CharmURL": "cs:series/name","Name":"Benji","Exposed":true,"Life":"dying","Constraints":{"arch":"arm", "mem": 1024},"Config": {"hello":"goodbye","foo":false}}]`,
}, {
about: "UnitInfo Delta",
value: params.Delta{
« no previous file with comments | « state/api/params/params.go ('k') | state/megawatcher.go » ('j') | no next file with comments »

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