LEFT | RIGHT |
1 package mstate_test | 1 package mstate_test |
2 | 2 |
3 import ( | 3 import ( |
4 "fmt" | 4 "fmt" |
5 "labix.org/v2/mgo/bson" | 5 "labix.org/v2/mgo/bson" |
6 . "launchpad.net/gocheck" | 6 . "launchpad.net/gocheck" |
7 "launchpad.net/juju-core/charm" | 7 "launchpad.net/juju-core/charm" |
8 "launchpad.net/juju-core/environs/config" | 8 "launchpad.net/juju-core/environs/config" |
9 state "launchpad.net/juju-core/mstate" | 9 state "launchpad.net/juju-core/mstate" |
10 "net/url" | 10 "net/url" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 current["authorized-keys"] = "i-am-a-new-key" | 189 current["authorized-keys"] = "i-am-a-new-key" |
190 env, err = config.New(current) | 190 env, err = config.New(current) |
191 c.Assert(err, IsNil) | 191 c.Assert(err, IsNil) |
192 err = s.State.SetEnvironConfig(env) | 192 err = s.State.SetEnvironConfig(env) |
193 c.Assert(err, IsNil) | 193 c.Assert(err, IsNil) |
194 env, err = s.State.EnvironConfig() | 194 env, err = s.State.EnvironConfig() |
195 c.Assert(err, IsNil) | 195 c.Assert(err, IsNil) |
196 final := env.AllAttrs() | 196 final := env.AllAttrs() |
197 c.Assert(final, DeepEquals, current) | 197 c.Assert(final, DeepEquals, current) |
198 } | 198 } |
LEFT | RIGHT |