Skip to content

Commit d8854a5

Browse files
Added tests for ENT-13829
1 parent 6e2630c commit d8854a5

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
bundle agent foo
2+
{
3+
vars:
4+
"policy"
5+
policy => "free",
6+
real => "11.11";
7+
8+
"noerr"
9+
slist => {};
10+
int => "string";
11+
12+
"noerr"
13+
slist => {}
14+
int => "string";
15+
16+
"comment"
17+
slist => {},
18+
comment => "string";
19+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
"error"
3+
slist => {},
4+
^---------^
5+
6+
slist => {},
7+
int => "10",
8+
^---------^
9+
10+
policy => "free",
11+
real => "0.5";
12+
^-----------^
13+
Error: Mutually exclusive attribute values ('slist', 'int', 'real') for a single promiser inside vars-promise at tests/lint/011_mutually_exclusive_types_vars.x.cf:4:5
14+
15+
16+
"missing-error";
17+
^--------------^
18+
Error: Missing attribute value for promiser "missing-error" inside vars-promise type at tests/lint/011_mutually_exclusive_types_vars.x.cf:18:5
19+
FAIL: tests/lint/011_mutually_exclusive_types_vars.x.cf (2 errors)
20+
Failure, 2 errors in total.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
bundle agent foo
2+
{
3+
vars:
4+
"error"
5+
slist => {},
6+
int => "10",
7+
policy => "free",
8+
real => "0.5";
9+
10+
"noerr"
11+
slist => {};
12+
int => "string";
13+
14+
"noerr"
15+
slist => {}
16+
int => "string";
17+
18+
"missing-error";
19+
}

0 commit comments

Comments
 (0)