~wwitzel3/juju-core/009-ha-rsyslog-api

« back to all changes in this revision

Viewing changes to provider/openstack/config_test.go

  • Committer: Wayne Witzel III
  • Date: 2014-05-22 13:23:37 UTC
  • mfrom: (2743.1.10 ha-rsyslog-api)
  • Revision ID: wayne.witzel@canonical.com-20140522132337-m9py79a81mjdm9su
merge mfoord

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        "launchpad.net/juju-core/environs"
15
15
        "launchpad.net/juju-core/environs/config"
16
16
        "launchpad.net/juju-core/testing"
17
 
        "launchpad.net/juju-core/testing/testbase"
18
17
)
19
18
 
20
19
type ConfigSuite struct {
21
 
        testbase.LoggingSuite
22
 
        savedVars   map[string]string
23
 
        oldJujuHome *testing.FakeHome
 
20
        testing.BaseSuite
 
21
        savedVars map[string]string
24
22
}
25
23
 
26
24
// Ensure any environment variables a user may have set locally are reset.
171
169
}
172
170
 
173
171
func (s *ConfigSuite) SetUpTest(c *gc.C) {
174
 
        s.LoggingSuite.SetUpTest(c)
175
 
        s.oldJujuHome = testing.MakeEmptyFakeHome(c)
 
172
        s.BaseSuite.SetUpTest(c)
176
173
        s.savedVars = make(map[string]string)
177
174
        for v, val := range envVars {
178
175
                s.savedVars[v] = os.Getenv(v)
184
181
        for k, v := range s.savedVars {
185
182
                os.Setenv(k, v)
186
183
        }
187
 
        s.oldJujuHome.Restore()
188
 
        s.LoggingSuite.TearDownTest(c)
 
184
        s.BaseSuite.TearDownTest(c)
189
185
}
190
186
 
191
187
var configTests = []configTest{