| Index: recipe_modules/url/example.expected/basic.json
|
| diff --git a/recipe_modules/url/example.expected/basic.json b/recipe_modules/url/example.expected/basic.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f49edb2120dfa6ff35595bb07ab83894a92b30d0
|
| --- /dev/null
|
| +++ b/recipe_modules/url/example.expected/basic.json
|
| @@ -0,0 +1,106 @@
|
| +[
|
| + {
|
| + "cmd": [
|
| + "vpython",
|
| + "-u",
|
| + "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
|
| + "--url",
|
| + "https://foo/bar",
|
| + "--status-json",
|
| + "/path/to/tmp/json",
|
| + "--outfile",
|
| + "[START_DIR]",
|
| + "--headers-json",
|
| + "{\"Authorization\": \"thing\"}"
|
| + ],
|
| + "name": "GET https://foo/bar"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "vpython",
|
| + "-u",
|
| + "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
|
| + "--url",
|
| + "https://foo/bar/error",
|
| + "--status-json",
|
| + "/path/to/tmp/json",
|
| + "--outfile",
|
| + "[START_DIR]"
|
| + ],
|
| + "name": "GET https://foo/bar/error"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "vpython",
|
| + "-u",
|
| + "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
|
| + "--url",
|
| + "https://foo/bar/text",
|
| + "--status-json",
|
| + "/path/to/tmp/json",
|
| + "--outfile",
|
| + "/path/to/tmp/"
|
| + ],
|
| + "name": "GET https://foo/bar/text"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "vpython",
|
| + "-u",
|
| + "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
|
| + "--url",
|
| + "https://foo/bar/text (w/ auth)",
|
| + "--status-json",
|
| + "/path/to/tmp/json",
|
| + "--outfile",
|
| + "/path/to/tmp/",
|
| + "--headers-json",
|
| + "{\"Authorization\": \"thing\"}",
|
| + "--no-transient-retry"
|
| + ],
|
| + "name": "GET https://foo/bar/text (w/ auth)"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "vpython",
|
| + "-u",
|
| + "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
|
| + "--url",
|
| + "https://foo/bar/text/error",
|
| + "--status-json",
|
| + "/path/to/tmp/json",
|
| + "--outfile",
|
| + "/path/to/tmp/"
|
| + ],
|
| + "infra_step": true,
|
| + "name": "GET https://foo/bar/text/error"
|
| + },
|
| + {
|
| + "cmd": [
|
| + "vpython",
|
| + "-u",
|
| + "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
|
| + "--url",
|
| + "https://foo/bar/json",
|
| + "--status-json",
|
| + "/path/to/tmp/json",
|
| + "--outfile",
|
| + "/path/to/tmp/json",
|
| + "--strip-prefix",
|
| + ")]}\n"
|
| + ],
|
| + "name": "GET https://foo/bar/json",
|
| + "~followup_annotations": [
|
| + "@@@STEP_LOG_LINE@json.output[output]@{@@@",
|
| + "@@@STEP_LOG_LINE@json.output[output]@ \"baz\": \"qux\", @@@",
|
| + "@@@STEP_LOG_LINE@json.output[output]@ \"foo\": \"bar\"@@@",
|
| + "@@@STEP_LOG_LINE@json.output[output]@}@@@",
|
| + "@@@STEP_LOG_END@json.output[output]@@@"
|
| + ]
|
| + },
|
| + {
|
| + "name": "$result",
|
| + "recipe_result": null,
|
| + "status_code": 0
|
| + }
|
| +]
|
|
|