~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to provider/openstack/local_test.go

  • Committer: Tarmac
  • Author(s): Tim Penhey
  • Date: 2013-09-20 03:21:56 UTC
  • mfrom: (1847.1.9 testbase)
  • Revision ID: tarmac-20130920032156-bdcdz4hd9jzpuim3
[r=thumper] Add a testbase package with no juju-core deps.

The base cleanup and logging suites are now there,
as are the patch functions.

A test also exists there to make sure that no juju-core
dependencies creep in.

https://codereview.appspot.com/13694046/

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        "launchpad.net/juju-core/provider/openstack"
34
34
        coretesting "launchpad.net/juju-core/testing"
35
35
        jc "launchpad.net/juju-core/testing/checkers"
 
36
        "launchpad.net/juju-core/testing/testbase"
36
37
        "launchpad.net/juju-core/version"
37
38
)
38
39
 
149
150
 
150
151
// localLiveSuite runs tests from LiveTests using an Openstack service double.
151
152
type localLiveSuite struct {
152
 
        coretesting.LoggingSuite
 
153
        testbase.LoggingSuite
153
154
        LiveTests
154
155
        srv localServer
155
156
}
184
185
// to test on a live Openstack server. The service double is started and stopped for
185
186
// each test.
186
187
type localServerSuite struct {
187
 
        coretesting.LoggingSuite
 
188
        testbase.LoggingSuite
188
189
        jujutest.Tests
189
190
        cred                   *identity.Credentials
190
191
        srv                    localServer