Test fixes and default storage size #20

Merged
merged 2 commits into from Jan 29, 2015

Conversation

Projects
None yet
2 participants
Owner

wallyworld commented Jan 29, 2015

Fix some tests.

Make default storage constraint size = 1G
Make default storage count = 1 regardless of size.

storage/constraints_test.go
+ Pool: "pool",
+ Count: 1,
+ })
+ s.testParse(c, "", storage.Constraints{
@axw

axw Jan 29, 2015

Collaborator

if there are no fields at all, that should probably be an error instead

storage/constraints_test.go
+ s.testParse(c, "", storage.Constraints{
+ Count: 1,
+ })
+ s.testParse(c, ",", storage.Constraints{
@axw

axw Jan 29, 2015

Collaborator

ditto

storage/provider/rootfs.go
@@ -21,7 +21,7 @@ const (
RootfsStorageDir = "storage-dir"
)
-// rootfsProviders create volume sources which use loop devices.
+// rootfsProviders create volume sources which mount filesystems.
@axw

axw Jan 29, 2015

Collaborator

that whole comment is whacko. how about

// rootfsProvider implements a storage.Provider, providing "filesystems"
// backed by directories on the root filesystem.

Collaborator

axw commented Jan 29, 2015

LGTM

wallyworld added a commit that referenced this pull request Jan 29, 2015

Merge pull request #20 from wallyworld/default-storage-size
Test fixes and default storage size

@wallyworld wallyworld merged commit fa36006 into storage-feature Jan 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment