LEFT | RIGHT |
(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 Loading... |
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 } |
LEFT | RIGHT |