Skip to content

Commit 0dd290f

Browse files
committed
Fixed namespace linting test
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
1 parent d90455b commit 0dd290f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/lint/008_namespace.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ bundle agent target(a)
1111

1212
bundle agent helper
1313
{
14-
vars:
15-
"x" string => mylib:target("arg");
14+
methods:
15+
"x" usebundle => mylib:target("arg");
1616
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
vars:
3-
"x" string => default:target("arg");
4-
^------------^
5-
Error: Call to unknown function / bundle / body 'default:target' at tests/lint/008_namespace.x.cf:15:19
2+
methods:
3+
"x" usebundle => default:target("arg");
4+
^------------^
5+
Error: Call to unknown function / bundle / body 'default:target' at tests/lint/008_namespace.x.cf:15:22
66
FAIL: tests/lint/008_namespace.x.cf (1 error)
77
Failure, 1 error in total.

tests/lint/008_namespace.x.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ bundle agent target(a)
1111

1212
bundle agent helper
1313
{
14-
vars:
15-
"x" string => default:target("arg");
14+
methods:
15+
"x" usebundle => default:target("arg");
1616
}

0 commit comments

Comments
 (0)