-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.bats
executable file
·115 lines (86 loc) · 2.88 KB
/
tests.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/usr/bin/env bats
load test-assets/test_yamkix
@test "dash at col0-1, no dash inwards" {
yamkix_no_dash_inwards dash-at-col0-1
}
@test "dash at col2-1, no dash inwards" {
yamkix_no_dash_inwards dash-at-col2-1
}
@test "multi-doc1, no dash inwards" {
yamkix_no_dash_inwards multi-doc-1
}
@test "dash at col0-1, set dash inwards" {
yamkix_set_dash_inwards dash-at-col0-1
}
@test "dash at col2-1, set dash inwards" {
yamkix_set_dash_inwards dash-at-col2-1
}
@test "multi-doc1, set dash inwards" {
yamkix_set_dash_inwards multi-doc-1
}
@test "no-start-no-end, default" {
yamkix_default no-start-no-end
}
@test "no-start-no-end, no explicit start" {
yamkix_no_explicit_start no-start-no-end
}
@test "no-start-no-end, set explicit end" {
yamkix_set_explicit_end no-start-no-end
}
@test "no-start-no-end, no-quotes-preserved" {
yamkix_no_quotes_preserved no-start-no-end
}
@test "check that output to stdout is not f* by a debug print statement that should not be there" {
yamkix_to_stdout no-start-no-end
}
@test "issue-11-bad-indent, spaces-before-comment=2, no-dash-inwards" {
yamkix_spaces_before_comment_and_no_dash_inwards issue-11-bad-indent 2
}
@test "issue-11-bad-indent, spaces-before-comment=2" {
yamkix_spaces_before_comment issue-11-bad-indent 2
}
@test "issue-11, spaces-before-comment=2, no-dash-inwards" {
yamkix_spaces_before_comment_and_no_dash_inwards issue-11 2
}
@test "issue-11, spaces-before-comment=2" {
yamkix_spaces_before_comment issue-11 2
}
@test "issue-11, spaces-before-comment=1" {
yamkix_spaces_before_comment issue-11 1
}
@test "issue-11, spaces-before-comment=0" {
yamkix_spaces_before_comment issue-11 0
}
@test "issue-11-ruamel-318, spaces-before-comment=2" {
yamkix_spaces_before_comment issue-11-ruamel-318 2
}
@test "issue-11-ruamel-318, spaces-before-comment=1" {
yamkix_spaces_before_comment issue-11-ruamel-318 1
}
@test "issue-11-ruamel-338, spaces-before-comment=2" {
yamkix_spaces_before_comment issue-11-ruamel-338 2
}
@test "issue-11-ruamel-338, spaces-before-comment=1" {
yamkix_spaces_before_comment issue-11-ruamel-338 1
}
@test "lists-and-maps-json-style, set dash inwards" {
yamkix_set_dash_inwards lists-and-maps-json-style
}
@test "k8s-deployment-with-comments-1, spaces-before-comment=1" {
yamkix_spaces_before_comment k8s-deployment-with-comments-1 1
}
@test "k8s-deployment-with-comments-shifted-1, spaces-before-comment=1" {
yamkix_spaces_before_comment k8s-deployment-with-comments-shifted-1 1
}
@test "issue-29, spaces-before-comment=1" {
yamkix_spaces_before_comment issue-29 1
}
@test "issue-29, spaces-before-comment=2" {
yamkix_spaces_before_comment issue-29 2
}
@test "issue-29, spaces-before-comment=1, no-dash-inwards" {
yamkix_spaces_before_comment_and_no_dash_inwards issue-29 1
}
@test "issue-29, spaces-before-comment=2, no-dash-inwards" {
yamkix_spaces_before_comment_and_no_dash_inwards issue-29 2
}