Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(591)

Delta Between Two Patch Sets: worker/provisioner/container_initialisation_test.go

Issue 72270044: lxc: Fixed target-release issue precise/maas
Left Patch Set: cloudinit: Fixed target-release issue precise/maas Created 11 years, 1 month ago
Right Patch Set: lxc: Fixed target-release issue precise/maas Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« utils/apt.go ('K') | « worker/provisioner/container_initialisation.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2012, 2013 Canonical Ltd. 1 // Copyright 2012, 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package provisioner_test 4 package provisioner_test
5 5
6 import ( 6 import (
7 "fmt" 7 "fmt"
8 "os/exec" 8 "os/exec"
9 9
10 gc "launchpad.net/gocheck" 10 gc "launchpad.net/gocheck"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 "install"} 175 "install"}
176 expected = append(expected, packages...) 176 expected = append(expected, packages...)
177 c.Assert(cmd.Args, gc.DeepEquals, expected) 177 c.Assert(cmd.Args, gc.DeepEquals, expected)
178 } 178 }
179 179
180 func (s *ContainerSetupSuite) TestContainerInitialised(c *gc.C) { 180 func (s *ContainerSetupSuite) TestContainerInitialised(c *gc.C) {
181 for _, test := range []struct { 181 for _, test := range []struct {
182 ctype instance.ContainerType 182 ctype instance.ContainerType
183 packages []string 183 packages []string
184 }{ 184 }{
185 » » {instance.LXC, []string{"lxc"}}, 185 » » {instance.LXC, []string{"--target-release", "precise-updates/clo ud-tools", "lxc"}},
186 {instance.KVM, []string{"uvtool-libvirt", "uvtool"}}, 186 {instance.KVM, []string{"uvtool-libvirt", "uvtool"}},
187 } { 187 } {
188 s.assertContainerInitialised(c, test.ctype, test.packages) 188 s.assertContainerInitialised(c, test.ctype, test.packages)
189 } 189 }
190 } 190 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b