Skip to content

Commit 1068711

Browse files
olehermanseclaude
andcommitted
tests: Combined deprecation tests into 1 file
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent 2e915bc commit 1068711

6 files changed

Lines changed: 14 additions & 24 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
{
3+
defaults:
4+
^-------^
5+
Deprecation: Promise type 'defaults' is deprecated at tests/lint/002_deprecations.x.cf:3:3
6+
7+
"Hello, CFEngine"
8+
ifvarclass => "cfengine";
9+
^--------^
10+
Deprecation: Use 'if' instead of 'ifvarclass' at tests/lint/002_deprecations.x.cf:7:7
11+
FAIL: tests/lint/002_deprecations.x.cf (2 errors)
12+
Failure, 2 errors in total.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
bundle agent main
22
{
3+
defaults:
4+
"x" string => "value";
35
reports:
46
"Hello, CFEngine"
57
ifvarclass => "cfengine";

tests/lint/002_ifvarclass.expected.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/lint/003_deprecated_promise_type.cf

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/lint/003_deprecated_promise_type.expected.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/lint/003_deprecated_promise_type.x.cf

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)