Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Foord committed Apr 1, 2016
1 parent d83b344 commit f807681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion provider/maas/maas2_environ_whitebox_test.go
Expand Up @@ -12,7 +12,7 @@ import (
)

type maas2EnvironSuite struct {
controllerSuite
baseProviderSuite
}

var _ = gc.Suite(&maas2EnvironSuite{})
Expand Down
20 changes: 1 addition & 19 deletions provider/maas/maas_test.go
Expand Up @@ -79,23 +79,6 @@ func (s *baseProviderSuite) TearDownSuite(c *gc.C) {
s.FakeJujuXDGDataHomeSuite.TearDownSuite(c)
}

type controllerSuite struct {
baseProviderSuite
testServer *gomaasapi.SimpleTestServer
}

func (s *controllerSuite) SetUpTest(c *gc.C) {
s.baseProviderSuite.SetUpTest(c)
s.testServer = gomaasapi.NewSimpleServer()
s.testServer.AddResponse("/api/2.0/version/", http.StatusOK, maas2VersionResponse)
s.testServer.Start()
}

func (s *controllerSuite) TearDownTest(c *gc.C) {
s.baseProviderSuite.TearDownTest(c)
s.testServer.Close()
}

type providerSuite struct {
baseProviderSuite
testMAASObject *gomaasapi.TestMAASObject
Expand All @@ -114,8 +97,7 @@ const exampleAgentName = "dfb69555-0bc4-4d1f-85f2-4ee390974984"

func (s *providerSuite) SetUpSuite(c *gc.C) {
s.baseProviderSuite.SetUpSuite(c)
TestMAASObject := gomaasapi.NewTestMAAS("1.0")
s.testMAASObject = TestMAASObject
s.testMAASObject = gomaasapi.NewTestMAAS("1.0")
}

func (s *providerSuite) SetUpTest(c *gc.C) {
Expand Down

0 comments on commit f807681

Please sign in to comment.