~sinzui/ubuntu/vivid/juju-core/vivid-1.24.6

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/cmd/jujud/agent/agentconf_test.go

  • Committer: Curtis Hovey
  • Date: 2015-09-30 14:14:54 UTC
  • mfrom: (1.1.34)
  • Revision ID: curtis@hovey.name-20150930141454-o3ldf23dzyjio6c0
Backport of 1.24.6 from wily. (LP: #1500916)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
func (s *agentConfSuite) TestChangeConfigSuccess(c *gc.C) {
22
22
        mcsw := &mockConfigSetterWriter{}
23
23
 
24
 
        conf := AgentConf{
25
 
                DataDir: c.MkDir(),
 
24
        conf := agentConf{
 
25
                dataDir: c.MkDir(),
26
26
                _config: mcsw,
27
27
        }
28
28
 
37
37
func (s *agentConfSuite) TestChangeConfigMutateFailure(c *gc.C) {
38
38
        mcsw := &mockConfigSetterWriter{}
39
39
 
40
 
        conf := AgentConf{
41
 
                DataDir: c.MkDir(),
 
40
        conf := agentConf{
 
41
                dataDir: c.MkDir(),
42
42
                _config: mcsw,
43
43
        }
44
44
 
55
55
                WriteError: errors.New("boom"),
56
56
        }
57
57
 
58
 
        conf := AgentConf{
59
 
                DataDir: c.MkDir(),
 
58
        conf := agentConf{
 
59
                dataDir: c.MkDir(),
60
60
                _config: mcsw,
61
61
        }
62
62