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

Unified Diff: worker/provisioner/provisioner_test.go

Issue 12859043: Add an os-disk constraint
Patch Set: Add an os-disk constraint Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/unit.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: worker/provisioner/provisioner_test.go
=== modified file 'worker/provisioner/provisioner_test.go'
--- worker/provisioner/provisioner_test.go 2013-07-29 15:15:41 +0000
+++ worker/provisioner/provisioner_test.go 2013-08-14 17:33:09 +0000
@@ -56,7 +56,7 @@
func (s *CommonProvisionerSuite) SetUpSuite(c *C) {
s.JujuConnSuite.SetUpSuite(c)
- s.defaultConstraints = constraints.MustParse("arch=amd64 mem=4G cpu-cores=1")
+ s.defaultConstraints = constraints.MustParse("arch=amd64 mem=4G cpu-cores=1 root-disk=8G")
}
func (s *CommonProvisionerSuite) SetUpTest(c *C) {
@@ -156,6 +156,7 @@
c.Assert(*hc, DeepEquals, instance.HardwareCharacteristics{
Arch: cons.Arch,
Mem: cons.Mem,
+ RootDisk: cons.RootDisk,
CpuCores: cons.CpuCores,
CpuPower: cons.CpuPower,
})
@@ -321,7 +322,7 @@
// Create a machine with non-standard constraints.
m, err := s.addMachine()
c.Assert(err, IsNil)
- cons := constraints.MustParse("mem=8G arch=amd64 cpu-cores=2")
+ cons := constraints.MustParse("mem=8G arch=amd64 cpu-cores=2 root-disk=10G")
err = m.SetConstraints(cons)
c.Assert(err, IsNil)
« no previous file with comments | « state/unit.go ('k') | no next file » | no next file with comments »

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