Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"classes":
{
"test_class_policy_server": [ "am_policy_hub" ],
"test_class_policy_server": [ "am_policy_hub" ]
}
}
2 changes: 1 addition & 1 deletion tests/acceptance/01_vars/02_functions/data_expand.cf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"plain data": "nothing",
"$(x)": "nothing again",
"$(y)": "$(nosuchvar)",
"$(y)": "$(nosuchvar)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"integer_2": 987654321,
"string_2": "Othello? Where art thou now?",
"boolean_2": false,
"null": null,
"null": null
}
4 changes: 2 additions & 2 deletions tests/acceptance/01_vars/02_functions/validdata.cf
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ bundle agent test
"valid_json" string => "should appear",
if => validdata(readfile("$(this.promise_filename).json", inf), "JSON");
"invalid_json" string => "should not appear",
if => validdata(readfile("$(this.promise_filename).inv.json", inf), "JSON");
if => validdata(readfile("$(this.promise_filename).x.json", inf), "JSON");

"valid_validjson" string => "should appear",
if => validjson(readfile("$(this.promise_filename).json", inf));
"invalid_validjson" string => "should not appear",
if => validjson(readfile("$(this.promise_filename).inv.json", inf));
if => validjson(readfile("$(this.promise_filename).x.json", inf));
}

###########################################################
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/01_vars/02_functions/validjson_strict.cf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bundle agent check
{
vars:
"json" string => readfile("$(this.promise_dirname)/validdata.cf.json", inf);
"invjson" string => readfile("$(this.promise_dirname)/validdata.cf.inv.json", inf);
"invjson" string => readfile("$(this.promise_dirname)/validdata.cf.x.json", inf);
"mystring" string => "\"foo\"";
"mynumber" string => "3.14";
"mybool" string => "true";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"location": "/tmp/logs/tidy"
Comment thread
olehermanse marked this conversation as resolved.
"location": "/tmp/logs/tidy",
"context": "any",
"action": "TIDY",
"frequency": "10",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/data/mustache_extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
},
"template": "{{#list}}{{k}}={{v}}, {{/list}}",
"expected": "789=0, =true, -1=-2, "
},
}
]
}
Loading