Skip to content

Instantly share code, notes, and snippets.

@kacf
Created May 5, 2015 06:40
Show Gist options
  • Save kacf/0e0abe107a8b63061394 to your computer and use it in GitHub Desktop.
Save kacf/0e0abe107a8b63061394 to your computer and use it in GitHub Desktop.
diff --git a/tests/acceptance/01_vars/02_functions/readdata.cf b/tests/acceptance/01_vars/02_functions/readdata.cf
index ad886ee..406aecd 100644
--- a/tests/acceptance/01_vars/02_functions/readdata.cf
+++ b/tests/acceptance/01_vars/02_functions/readdata.cf
@@ -24,6 +24,14 @@ bundle agent test
"extension_yaml" data => readdata("$(this.promise_filename).yaml", "auto");
"extension_json" data => readdata("$(this.promise_filename).json", "auto");
+ "failed_explicit_csv" data => readdata("$(this.promise_filename)", "CSV");
+ "failed_explicit_yaml" data => readdata("$(this.promise_filename)", "YAML");
+ "failed_explicit_json" data => readdata("$(this.promise_filename)", "JSON");
+
+ "failed_guess_csv" data => readdata("$(this.promise_filename)", "auto");
+ "failed_guess_yaml" data => readdata("$(this.promise_filename)", "auto");
+ "failed_guess_json" data => readdata("$(this.promise_filename)", "auto");
+
"guess_csv" data => readdata("$(this.promise_filename).csv.guess", "auto"); # should be empty (JSON is attempted)
"guess_yaml" data => readdata("$(this.promise_filename).yaml.guess", "auto"); # should be empty (JSON is attempted)
"guess_json" data => readdata("$(this.promise_filename).json.guess", "auto");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment