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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/provider/vsphere/provider_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:
11
11
 
12
12
        "github.com/juju/juju/cloud"
13
13
        "github.com/juju/juju/environs"
14
 
        envtesting "github.com/juju/juju/environs/testing"
 
14
        "github.com/juju/juju/environs/testing"
15
15
        "github.com/juju/juju/provider/vsphere"
16
16
)
17
17
 
43
43
        c.Assert(envConfig.Name(), gc.Equals, "testenv")
44
44
}
45
45
 
46
 
func (s *providerSuite) TestPrepareForBootstrap(c *gc.C) {
47
 
        env, err := s.provider.PrepareForBootstrap(envtesting.BootstrapContext(c), environs.PrepareForBootstrapParams{
 
46
func (s *providerSuite) TestBootstrapConfig(c *gc.C) {
 
47
        cfg, err := s.provider.BootstrapConfig(environs.BootstrapConfigParams{
48
48
                Config: s.Config,
49
49
                Credentials: cloud.NewCredential(
50
50
                        cloud.UserPassAuthType,
52
52
                ),
53
53
        })
54
54
        c.Check(err, jc.ErrorIsNil)
 
55
        c.Check(cfg, gc.NotNil)
 
56
}
 
57
 
 
58
func (s *providerSuite) TestPrepareForBootstrap(c *gc.C) {
 
59
        env, err := s.provider.PrepareForBootstrap(testing.BootstrapContext(c), s.Config)
 
60
        c.Check(err, jc.ErrorIsNil)
55
61
        c.Check(env, gc.NotNil)
56
62
}
57
63