forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove HostSeries everywhere it appears In most places, it needs to be replaces with the new HostBase. However, in a few places, it turns out it could just be dropped entirely
- Loading branch information
1 parent
c9649b5
commit 7aee297
Showing
17 changed files
with
56 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ import ( | |
|
||
"github.com/juju/juju/api/agent/upgradeseries" | ||
"github.com/juju/juju/api/base/mocks" | ||
corebase "github.com/juju/juju/core/base" | ||
"github.com/juju/juju/core/model" | ||
"github.com/juju/juju/core/status" | ||
"github.com/juju/juju/rpc/params" | ||
|
@@ -179,7 +180,7 @@ func (s *upgradeSeriesSuite) TestFinishUpgradeSeries(c *gc.C) { | |
fCaller.EXPECT().FacadeCall("FinishUpgradeSeries", args, gomock.Any()).SetArg(2, resultSource) | ||
|
||
api := upgradeseries.NewStateFromCaller(fCaller, s.tag) | ||
err := api.FinishUpgradeSeries("xenial") | ||
err := api.FinishUpgradeSeries(corebase.MustParseBaseFromString("[email protected]")) | ||
c.Assert(err, gc.IsNil) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ import ( | |
|
||
"github.com/juju/juju/container/lxd/mocks" | ||
lxdtesting "github.com/juju/juju/container/lxd/testing" | ||
"github.com/juju/juju/core/base" | ||
coretesting "github.com/juju/juju/testing" | ||
) | ||
|
||
|
@@ -86,7 +87,7 @@ func (s *initialiserTestSuite) containerInitialiser(svr lxd.InstanceServer, lxdI | |
|
||
func (s *InitialiserSuite) TestSnapInstalled(c *gc.C) { | ||
PatchLXDViaSnap(s, true) | ||
PatchHostSeries(s, "jammy") | ||
PatchHostBase(s, base.MustParseBaseFromString("[email protected]")) | ||
|
||
ctrl := gomock.NewController(c) | ||
defer ctrl.Finish() | ||
|
@@ -103,7 +104,7 @@ func (s *InitialiserSuite) TestSnapInstalled(c *gc.C) { | |
|
||
func (s *InitialiserSuite) TestSnapChannelMismatch(c *gc.C) { | ||
PatchLXDViaSnap(s, true) | ||
PatchHostSeries(s, "focal") | ||
PatchHostBase(s, base.MustParseBaseFromString("[email protected]")) | ||
|
||
ctrl := gomock.NewController(c) | ||
defer ctrl.Finish() | ||
|
@@ -121,7 +122,7 @@ func (s *InitialiserSuite) TestSnapChannelMismatch(c *gc.C) { | |
|
||
func (s *InitialiserSuite) TestSnapChannelPrefixMatch(c *gc.C) { | ||
PatchLXDViaSnap(s, true) | ||
PatchHostSeries(s, "focal") | ||
PatchHostBase(s, base.MustParseBaseFromString("[email protected]")) | ||
|
||
ctrl := gomock.NewController(c) | ||
defer ctrl.Finish() | ||
|
@@ -143,7 +144,7 @@ func (s *InitialiserSuite) TestSnapChannelPrefixMatch(c *gc.C) { | |
func (s *InitialiserSuite) TestInstallViaSnap(c *gc.C) { | ||
PatchLXDViaSnap(s, false) | ||
|
||
PatchHostSeries(s, "focal") | ||
PatchHostBase(s, base.MustParseBaseFromString("[email protected]")) | ||
|
||
paccmder := commands.NewSnapPackageCommander() | ||
|
||
|
@@ -157,7 +158,7 @@ func (s *InitialiserSuite) TestInstallViaSnap(c *gc.C) { | |
|
||
func (s *InitialiserSuite) TestLXDAlreadyInitialized(c *gc.C) { | ||
s.patchDF100GB() | ||
PatchHostSeries(s, "focal") | ||
PatchHostBase(s, base.MustParseBaseFromString("[email protected]")) | ||
|
||
ci := s.containerInitialiser(nil, true, "local") | ||
ci.getExecCommand = s.PatchExecHelper.GetExecCommand(testing.PatchExecConfig{ | ||
|
@@ -171,7 +172,7 @@ func (s *InitialiserSuite) TestLXDAlreadyInitialized(c *gc.C) { | |
} | ||
|
||
func (s *InitialiserSuite) TestInitializeSetsProxies(c *gc.C) { | ||
PatchHostSeries(s, "jammy") | ||
PatchHostBase(s, base.MustParseBaseFromString("[email protected]")) | ||
|
||
ctrl := gomock.NewController(c) | ||
defer ctrl.Finish() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.