Skip to content

Commit 9e1fe71

Browse files
committed
Add timestamps tests
1 parent 468ef2e commit 9e1fe71

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
schemaID: timestamps.cattle.io.singlecols
2-
tests: []
3-
# FIXME: Disabled test because columns bug. See https://github.com/rancher/rancher/issues/52774.
4-
# - query: sort=metadata.fields[1]
5-
# expected: [c, a, b]
6-
# - query: sort=-metadata.fields[1]
7-
# expected: [c, a, b]
1+
schemaID: timestamps.cattle.io.dates
2+
tests:
3+
# oldest to newest
4+
- query: sort=date
5+
expected: [b, c, a]
6+
7+
# newest to oldest
8+
- query: sort=-date
9+
expected: [a, c, b]

0 commit comments

Comments
 (0)