Add GCE attacher unit tests.

This commit is contained in:
Jan Safranek
2016-06-08 12:37:08 +02:00
parent 2b342c1e76
commit 5cd5ae8d82
4 changed files with 377 additions and 19 deletions

View File

@@ -110,6 +110,9 @@ type Disks interface {
// is used when instanceID is empty string.
DetachDisk(devicePath, instanceID string) error
// DiskIsAttached checks if a disk is attached to the given node.
DiskIsAttached(diskName, instanceID string) (bool, error)
// CreateDisk creates a new PD with given properties. Tags are serialized
// as JSON into Description field.
CreateDisk(name string, zone string, sizeGb int64, tags map[string]string) error