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
Copy file name to clipboardExpand all lines: priam/src/test/groovy/com.netflix.priam/backup/TestBackupRestoreUtil.groovy
+77-24Lines changed: 77 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -24,38 +24,91 @@ import spock.lang.Unroll
24
24
*/
25
25
@Unroll
26
26
classTestBackupRestoreUtilextendsSpecification {
27
-
def"IsFilter for KS #keyspace and CF #columnfamily with configuration include #configIncludeFilter and exclude #configExcludeFilter is #result"() {
27
+
def"shouldOmitFromBackup for KS #keyspace and CF #columnfamily with configuration include #configIncludeFilter and exclude #configExcludeFilter is #result"() {
28
28
expect:
29
-
newBackupRestoreUtil(configIncludeFilter, configExcludeFilter).isFiltered(keyspace, columnfamily) == result
29
+
newBackupRestoreUtil(configIncludeFilter, configExcludeFilter).shouldOmitFromBackup(keyspace, columnfamily) == result
30
30
31
31
where:
32
-
configIncludeFilter | configExcludeFilter | keyspace | columnfamily || result
33
-
null | null | "defg" | "gh"||false
34
-
"abc.*" | null | "abc" | "cd"||false
35
-
"abc.*" | null | "ab" | "cd"||true
36
-
null | "abc.de" | "abc" | "def"||false
37
-
null | "abc.de" | "abc" | "de"||true
38
-
"abc.*,def.*" | null | "abc" | "cd"||false
39
-
"abc.*,def.*" | null | "def" | "ab"||false
40
-
"abc.*,def.*" | null | "ab" | "cd"||true
41
-
"abc.*,def.*" | null | "df" | "ab"||true
42
-
null | "abc.de,fg.hi" | "abc" | "def"||false
43
-
null | "abc.de,fg.hi" | "abc" | "de"||true
44
-
null | "abc.de,fg.hi" | "fg" | "hijk"||false
45
-
null | "abc.de,fg.hi" | "fg" | "hi"||true
46
-
"abc.*" | "ab.ab" | "ab" | "cd"||true
47
-
"abc.*" | "ab.ab" | "ab" | "ab"||true
48
-
"abc.*" | "abc.ab" | "abc" | "ab"||true
49
-
"abc.*" | "abc.ab" | "abc" | "cd"||false
50
-
"abc.cd" | "abc.*" | "abc" | "cd"||true
51
-
"abc.*" | "abc.*" | "abc" | "cd"||true
52
-
"abc.*,def.*" | "abc.*" | "def" | "ab"||false
32
+
configIncludeFilter | configExcludeFilter | keyspace | columnfamily || result
def"shouldOmitFromRestore for KS #keyspace and CF #columnfamily with configuration include #configIncludeFilter and exclude #configExcludeFilter is #result"() {
76
+
expect:
77
+
newBackupRestoreUtil(configIncludeFilter, configExcludeFilter).shouldOmitFromRestore(keyspace, columnfamily) == result
78
+
79
+
where:
80
+
configIncludeFilter | configExcludeFilter | keyspace | columnfamily || result
0 commit comments