Skip to content

Commit a5ef693

Browse files
Raunak Kumarraunakkumar
authored andcommitted
add missing definition to fake_storage_provider
Signed-off-by: Raunak Kumar <[email protected]>
1 parent 5d0d359 commit a5ef693

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

storageprovider/fake/fake_storage_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (provider *StorageProvider) CreateVolumeGroup(name, description string, opt
7272
}
7373

7474
// CreateSnapshotGroup returns a fake volume group
75-
func (provider *StorageProvider) CreateSnapshotGroup(name, sourceVolumeGroupID string) (*model.SnapshotGroup, error) {
75+
func (provider *StorageProvider) CreateSnapshotGroup(name, sourceVolumeGroupID string, opts map[string]interface{}) (*model.SnapshotGroup, error) {
7676
if _, ok := provider.snapshotGroups[name]; ok {
7777
return nil, fmt.Errorf("Snapshot Group named %s already exists", name)
7878
}

storageprovider/fake/fake_storage_provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func TestPluginSuite(t *testing.T) {
114114
// Create Snapshot Group
115115
config["test"] = "test"
116116

117-
snapshotGroup, err := provider.CreateSnapshotGroup(snapshotGroupName, volumeGroup.ID)
117+
snapshotGroup, err := provider.CreateSnapshotGroup(snapshotGroupName, volumeGroup.ID, config)
118118
if err != nil {
119119
t.Fatal("Failed to create snapshot group" + snapshotGroupName)
120120
}

0 commit comments

Comments
 (0)