-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.bats
60 lines (48 loc) · 2.22 KB
/
test.bats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env bats
setup() {
go build ./fss.go
}
@test "parse basic production sstable with no deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata1.json| ./fss | sort) testdata/testdata1.stdout
}
@test "parse sstable (from blog example) with cell deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata2.json| ./fss | sort) testdata/testdata2.stdout
}
@test "parse basic sstable (from blog example) with no deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata3.json| ./fss | sort) testdata/testdata3.stdout
}
@test "parse sstable #1 (from blog example) with no deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata4.json| ./fss | sort) testdata/testdata4.stdout
}
@test "parse sstable #2 (from blog example) with cell deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata5.json| ./fss | sort) testdata/testdata5.stdout
}
@test "parse sstable setting a map" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata6.json| ./fss | sort) testdata/testdata6.stdout
}
@test "parse sstable setting an array" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata7.json| ./fss | sort) testdata/testdata7.stdout
}
@test "parse sstable #3 (from blog example) with cell deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata8.json| ./fss | sort) testdata/testdata8.stdout
}
@test "parse sstable with clustering key deletion" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata9.json| ./fss | sort) testdata/testdata9.stdout
}
@test "parse sstable with range tombstones" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata10.json| ./fss | sort) testdata/testdata10.stdout
}
@test "parse sstable with partition key tombstone" {
# Must `sort` here since output can come in random order.
diff <(cat testdata/testdata11.json| ./fss | sort) testdata/testdata11.stdout
}