Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: recipe_modules/url/example.expected/basic.json

Issue 2868333004: Add URL recipe module from "depot_tools". (Closed)
Patch Set: fix/texst urllib methods, remove non_step Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698