-
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.
Merge pull request juju#17194 from jack-w-shaw/JUJU-4948_series_to_ba…
…se_in_packaging juju#17194 juju/packaging v3 no longer uses series in a bunch of places See the changes to juju/packaging here: juju/packaging#22 Fix places where we use function from packagings which no taek a series param This drops our external dependency on series, so start pushing bases to replace series up the stack In most places, we're blocked by HostSeries. We are soon to replace this with HostBase, which would elimate series entirely in a bunch of places ## Checklist - [x] Code style: imports ordered, good names, simple structure, etc - [x] Comments saying why design decisions were made - [x] Go unit tests, with comments saying what you're testing ## QA steps ``` $ juju bootstrap aws aws $ juju add-model m $ juju add-machine $ juju add-machine lxd:0 $ juju add-machine lxd:0 --base [email protected] (wait) $ juju status Model Controller Cloud/Region Version SLA Timestamp m aws aws/eu-west-2 3.5-beta1.1 unsupported 13:25:13+01:00 Machine State Address Inst id Base AZ Message 0 started 18.170.114.179 i-0a1c12a72964544fe [email protected] eu-west-2c running 0/lxd/0 started 252.41.183.122 juju-d23f30-0-lxd-0 [email protected] eu-west-2c Container started 0/lxd/1 started 252.41.183.143 juju-d23f30-0-lxd-1 [email protected] eu-west-2c Container started ``` ## Links **Jira card:** https://warthogs.atlassian.net/browse/JUJU-4948
- Loading branch information
Showing
25 changed files
with
113 additions
and
137 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
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
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ import ( | |
jc "github.com/juju/testing/checkers" | ||
gc "gopkg.in/check.v1" | ||
|
||
"github.com/juju/juju/core/base" | ||
"github.com/juju/juju/core/paths" | ||
"github.com/juju/juju/packaging" | ||
"github.com/juju/juju/packaging/dependency" | ||
|
@@ -93,19 +94,19 @@ func (initialisationInternalSuite) TestAutoStartPool(c *gc.C) { | |
} | ||
|
||
func (initialisationInternalSuite) TestRequiredPackagesAMD64(c *gc.C) { | ||
got, err := dependency.KVM("amd64").PackageList("bionic") | ||
got, err := dependency.KVM("amd64").PackageList(base.MustParseBaseFromString("[email protected]")) | ||
c.Assert(err, gc.IsNil) | ||
assertPkgListMatches(c, got, []string{"qemu-kvm", "qemu-utils", "genisoimage", "libvirt-bin"}) | ||
assertPkgListMatches(c, got, []string{"qemu-kvm", "qemu-utils", "genisoimage", "libvirt-daemon-system", "libvirt-clients"}) | ||
} | ||
|
||
func (initialisationInternalSuite) TestRequiredPackagesARM64(c *gc.C) { | ||
got, err := dependency.KVM("arm64").PackageList("bionic") | ||
got, err := dependency.KVM("amd64").PackageList(base.MustParseBaseFromString("[email protected]")) | ||
c.Assert(err, gc.IsNil) | ||
assertPkgListMatches(c, got, []string{"qemu-efi", "qemu-kvm", "qemu-utils", "genisoimage", "libvirt-bin"}) | ||
assertPkgListMatches(c, got, []string{"qemu-kvm", "qemu-utils", "genisoimage", "libvirt-daemon-system", "libvirt-clients"}) | ||
} | ||
|
||
func assertPkgListMatches(c *gc.C, got []packaging.Package, exp []string) { | ||
c.Assert(len(got), gc.Equals, len(exp)) | ||
c.Check(len(got), gc.Equals, len(exp)) | ||
for i := 0; i < len(got); i++ { | ||
c.Assert(got[i].Name, gc.Equals, exp[i]) | ||
} | ||
|
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
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
Oops, something went wrong.