Index: recipe_modules/json/tests/add_json_log.expected/add_json_log.json |
diff --git a/recipe_modules/json/tests/add_json_log.expected/add_json_log.json b/recipe_modules/json/tests/add_json_log.expected/add_json_log.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..82682b9b0b1c5e3f22a2f14c94421b9d944b69a3 |
--- /dev/null |
+++ b/recipe_modules/json/tests/add_json_log.expected/add_json_log.json |
@@ -0,0 +1,32 @@ |
+[ |
+ { |
+ "cmd": [ |
+ "cat", |
+ "{\"x\":1,\"y\":2}" |
+ ], |
+ "name": "no log on success", |
+ "stdout": "/path/to/tmp/json" |
+ }, |
+ { |
+ "cmd": [ |
+ "cat", |
+ "{\"x\":1,\"y\":2}" |
+ ], |
+ "name": "add log on failure", |
+ "stdout": "/path/to/tmp/json", |
+ "~followup_annotations": [ |
+ "step returned non-zero exit code: 1", |
+ "@@@STEP_LOG_LINE@json.output[log2]@{@@@", |
+ "@@@STEP_LOG_LINE@json.output[log2]@ \"x\": 1, @@@", |
+ "@@@STEP_LOG_LINE@json.output[log2]@ \"y\": 2@@@", |
+ "@@@STEP_LOG_LINE@json.output[log2]@}@@@", |
+ "@@@STEP_LOG_END@json.output[log2]@@@", |
+ "@@@STEP_FAILURE@@@" |
+ ] |
+ }, |
+ { |
+ "name": "$result", |
+ "recipe_result": null, |
+ "status_code": 0 |
+ } |
+] |