Skip to content

Commit

Permalink
update test for new ec2 instance types - take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlanigan committed Nov 29, 2018
1 parent b42cce8 commit 573b6b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions provider/ec2/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ var findInstanceSpecTests = []struct {
series: "xenial",
arches: []string{"amd64"},
cons: "cores=4",
itype: "c4.xlarge",
itype: "a1.xlarge",
image: "ami-00000133",
}, {
series: "xenial",
arches: []string{"amd64"},
cons: "mem=10G",
itype: "c5n.xlarge",
itype: "r5a.large",
image: "ami-00000133",
}, {
series: "xenial",
Expand All @@ -71,7 +71,7 @@ var findInstanceSpecTests = []struct {
series: "xenial",
arches: []string{"amd64"},
cons: "cpu-power=800",
itype: "c4.large",
itype: "c5.large",
image: "ami-00000133",
}, {
series: "xenial",
Expand Down Expand Up @@ -135,7 +135,7 @@ var findInstanceSpecTests = []struct {
func (s *specSuite) TestFindInstanceSpec(c *gc.C) {
size := len(findInstanceSpecTests)
for i, test := range findInstanceSpecTests {
c.Logf("\ntest %d of %d: %q; %q; %q; %q; %q; %v", i, size,
c.Logf("\ntest %d of %d: %q; %q; %q; %q; %q; %v", i+1, size,
test.series, test.arches, test.cons, test.itype, test.image,
test.storage)
stor := test.storage
Expand Down
2 changes: 1 addition & 1 deletion provider/ec2/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ func (s *localServerSuite) TestBootstrapInstanceConstraints(c *gc.C) {
ec2inst := ec2.InstanceEC2(inst[0])
// Controllers should be started with a burstable
// instance if possible, and a 32 GiB disk.
c.Assert(ec2inst.InstanceType, gc.Equals, "c4.large")
c.Assert(ec2inst.InstanceType, gc.Equals, "t3.medium")
}

func makeFilter(key string, values ...string) *amzec2.Filter {
Expand Down

0 comments on commit 573b6b3

Please sign in to comment.