~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/container/lxd/lxd_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        "runtime"
10
10
        stdtesting "testing"
11
11
 
 
12
        jc "github.com/juju/testing/checkers"
 
13
        gc "gopkg.in/check.v1"
 
14
 
12
15
        "github.com/juju/juju/container"
13
16
        "github.com/juju/juju/container/lxd"
14
17
        containertesting "github.com/juju/juju/container/testing"
15
18
        "github.com/juju/juju/environs/config"
16
19
        "github.com/juju/juju/provider/dummy"
 
20
        "github.com/juju/juju/status"
17
21
        "github.com/juju/juju/tools/lxdclient"
18
 
        jc "github.com/juju/testing/checkers"
19
 
 
20
 
        gc "gopkg.in/check.v1"
21
22
)
22
23
 
23
24
func Test(t *stdtesting.T) {
74
75
        networkConfig := container.BridgeNetworkConfig("nic42", 4321, nil)
75
76
 
76
77
        manager := t.makeManager(c, "manager")
 
78
        callback := func(settableStatus status.Status, info string, data map[string]interface{}) error { return nil }
77
79
        _, _, err = manager.CreateContainer(
78
80
                instanceConfig,
79
81
                "xenial",
80
82
                networkConfig,
81
83
                storageConfig,
 
84
                callback,
82
85
        )
83
86
        c.Assert(err, jc.ErrorIsNil)
84
87