switch aws infrastructure tests to use gomega

Signed-off-by: Michael Maximilien <maxim@us.ibm.com>
refactor filesystem reads and writes

 * ReadFile and WriteFile deals with byte slices
 * ReadFileString and WriteFileString are helpers to read and write strings to files
 * ConvergeFileContents has the convergent update behavior instead of WriteFile

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
back fake filesystem Glob with map

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
initial implementation of LookupScsiDisk on platform

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Go agent discovers newly attached SCSI disks

Retries when necessary.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Signed-off-by: Michael Maximilien <maxim@us.ibm.com>
Improve the FakeFileSystem glob stubbing

You can now specify a sequence of return values given the same pattern.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Use an unexported interface for mounting disk

Smaller interfaces FTW
Use gomega for mount disk assertions

Signed-off-by: Jeffrey Peckham <peckham@pivotallabs.com>
Ginkgo style vars

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Convert assertions to Gomega

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Separate diskMounter collaborator from mount point oracle

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Idiomatic Ginkgo structure for vSphere infrastructure

Signed-off-by: Jeffrey Peckham <peckham@pivotallabs.com>
Separate test setup for aws infrastructure
Clearer AWS infrastructure test descriptions
Move AWS device path resolver into separate object.

Move code out of Linux platform and make Linux platform call new
collaborator.

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Remove dead code

Alos unexport the globsMap for fake FS

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Fix a bug when the fake file type constants are typed as strings

This commit changes the following pseudo-enums to have the right type:
- FileSystemType
- PartitionType
- FakeFileType

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Move duplicated platform tests into linux_platform_test

The networking related tests are left in place.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
Describes for NormalizeDiskPath and UnmountPersistentDisk

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>
rename mount disk argument to disk_cid

Signed-off-by: Matthew Boedicker <mboedicker@pivotallabs.com>