11package config
22
3- import . "gopkg.in/check.v1"
3+ import (
4+ "github.com/contiv/volplugin/storage"
5+ . "gopkg.in/check.v1"
6+ )
47
58var testPolicies = map [string ]* Policy {
69 "basic" : {
@@ -10,7 +13,7 @@ var testPolicies = map[string]*Policy{
1013 Mount : "ceph" ,
1114 Snapshot : "ceph" ,
1215 },
13- DriverOptions : map [ string ] string {"pool" : "rbd" },
16+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
1417 CreateOptions : CreateOptions {
1518 Size : "10MB" ,
1619 FileSystem : defaultFilesystem ,
@@ -31,7 +34,7 @@ var testPolicies = map[string]*Policy{
3134 Mount : "ceph" ,
3235 Snapshot : "ceph" ,
3336 },
34- DriverOptions : map [ string ] string {"pool" : "rbd" },
37+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
3538 CreateOptions : CreateOptions {
3639 Size : "20MB" ,
3740 FileSystem : defaultFilesystem ,
@@ -45,7 +48,7 @@ var testPolicies = map[string]*Policy{
4548 Mount : "ceph" ,
4649 Snapshot : "ceph" ,
4750 },
48- DriverOptions : map [ string ] string {"pool" : "rbd" },
51+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
4952 CreateOptions : CreateOptions {
5053 Size : "0" ,
5154 FileSystem : defaultFilesystem ,
@@ -59,7 +62,7 @@ var testPolicies = map[string]*Policy{
5962 Mount : "ceph" ,
6063 Snapshot : "ceph" ,
6164 },
62- DriverOptions : map [ string ] string {"pool" : "rbd" },
65+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
6366 CreateOptions : CreateOptions {
6467 Size : "20MB" ,
6568 FileSystem : defaultFilesystem ,
@@ -73,7 +76,7 @@ var testPolicies = map[string]*Policy{
7376 Mount : "ceph" ,
7477 Snapshot : "ceph" ,
7578 },
76- DriverOptions : map [ string ] string {"pool" : "rbd" },
79+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
7780 CreateOptions : CreateOptions {
7881 Size : "not a number" ,
7982 FileSystem : defaultFilesystem ,
@@ -87,7 +90,7 @@ var testPolicies = map[string]*Policy{
8790 Mount : "ceph" ,
8891 Snapshot : "ceph" ,
8992 },
90- DriverOptions : map [ string ] string {"pool" : "rbd" },
93+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
9194 CreateOptions : CreateOptions {
9295 Size : "10MB" ,
9396 FileSystem : defaultFilesystem ,
@@ -106,7 +109,7 @@ var testPolicies = map[string]*Policy{
106109 Mount : "ceph" ,
107110 },
108111 Name : "blanksize" ,
109- DriverOptions : map [ string ] string {"pool" : "rbd" },
112+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
110113 CreateOptions : CreateOptions {
111114 FileSystem : defaultFilesystem ,
112115 },
@@ -119,7 +122,7 @@ var testPolicies = map[string]*Policy{
119122 Mount : "ceph" ,
120123 },
121124 Name : "blanksize" ,
122- DriverOptions : map [ string ] string {"pool" : "rbd" },
125+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
123126 CreateOptions : CreateOptions {
124127 FileSystem : defaultFilesystem ,
125128 },
@@ -128,7 +131,7 @@ var testPolicies = map[string]*Policy{
128131 },
129132 "nobackend" : {
130133 Name : "nobackend" ,
131- DriverOptions : map [ string ] string {"pool" : "rbd" },
134+ DriverOptions : storage. DriverParams {"pool" : "rbd" },
132135 CreateOptions : CreateOptions {
133136 Size : "10MB" ,
134137 FileSystem : defaultFilesystem ,
0 commit comments