You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{",", "no path specified", storeEncryptionSpec{}},
1755
-
{"","no path specified", storeEncryptionSpec{}},
1756
-
{"/mnt/hda1", "field not in the form <key>=<value>: /mnt/hda1", storeEncryptionSpec{}},
1757
-
{"path=", "no value specified for path", storeEncryptionSpec{}},
1758
-
{"path=~/data", "path cannot start with '~': ~/data", storeEncryptionSpec{}},
1759
-
{"path=data,path=data2", "path field was used twice in encryption definition", storeEncryptionSpec{}},
1754
+
{value: ",", expectedErr: "no path specified"},
1755
+
{expectedErr:"no path specified"},
1756
+
{value: "/mnt/hda1", expectedErr: "field not in the form <key>=<value>: /mnt/hda1"},
1757
+
{value: "path=", expectedErr: "no value specified for path"},
1758
+
{value: "path=~/data", expectedErr: "path cannot start with '~': ~/data"},
1759
+
{value: "path=data,path=data2", expectedErr: "path field was used twice in encryption definition"},
1760
1760
1761
1761
// The same logic applies to key and old-key, don't repeat everything.
1762
-
{"path=data", "no key specified", storeEncryptionSpec{}},
1763
-
{"path=data,key=new.key", "no old-key specified", storeEncryptionSpec{}},
1762
+
{value: "path=data", expectedErr: "no key specified"},
1763
+
{value: "path=data,key=new.key", expectedErr: "no oldkey specified"},
1764
1764
1765
1765
// Rotation period.
1766
-
{"path=data,key=new.key,old-key=old.key,rotation-period", "field not in the form <key>=<value>: rotation-period", storeEncryptionSpec{}},
1767
-
{"path=data,key=new.key,old-key=old.key,rotation-period=", "no value specified for rotation-period", storeEncryptionSpec{}},
1768
-
{"path=data,key=new.key,old-key=old.key,rotation-period=1", `could not parse rotation-duration value: 1: time: missing unit in duration "1"`, storeEncryptionSpec{}},
1769
-
{"path=data,key=new.key,old-key=old.key,rotation-period=1d", `could not parse rotation-duration value: 1d: time: unknown unit "d" in duration "1d"`, storeEncryptionSpec{}},
1766
+
{value: "path=data,key=new.key,old-key=old.key,rotation-period", expectedErr: "field not in the form <key>=<value>: rotation-period"},
1767
+
{value: "path=data,key=new.key,old-key=old.key,rotation-period=", expectedErr: "no value specified for rotation-period"},
1768
+
{value: "path=data,key=new.key,old-key=old.key,rotation-period=1", expectedErr: `could not parse rotation-duration value: 1: time: missing unit in duration "1"`},
1769
+
{value: "path=data,key=new.key,old-key=old.key,rotation-period=1d", expectedErr: `could not parse rotation-duration value: 1d: time: unknown unit "d" in duration "1d"`},
1770
+
{value: "path=data,key=new.key,old-key=old.key,rotation-period=1ms", expectedErr: `invalid rotation period 1ms`},
1770
1771
1771
1772
// Good values. Note that paths get absolutized so we start most of them
0 commit comments