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

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

Issue 2868333004: Add URL recipe module from "depot_tools". (Closed)
Patch Set: Update comments with exceptions 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
« no previous file with comments | « recipe_modules/url/example.py ('k') | recipe_modules/url/resources/pycurl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bec25d25466f19caec28655bbde7f47696c456b0
--- /dev/null
+++ b/recipe_modules/url/example.expected/basic.json
@@ -0,0 +1,128 @@
+[
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "https://chromium.org",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "[START_DIR]/download.bin",
+ "--headers-json",
+ "{\"Authorization\": \"thing\"}"
+ ],
+ "name": "GET https://chromium.org"
+ },
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "http://chromium.org",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "/path/to/tmp/"
+ ],
+ "name": "GET http://chromium.org"
+ },
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "https://chromium.googlesource.com/infra/infra?format=JSON",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "/path/to/tmp/json",
+ "--strip-prefix",
+ "\")]}'\\n\""
+ ],
+ "name": "GET https://chromium.googlesource.com/infra/infra?format=JSON",
+ "~followup_annotations": [
+ "@@@STEP_LOG_LINE@json.output[output]@{@@@",
+ "@@@STEP_LOG_LINE@json.output[output]@ \"is_json\": true@@@",
+ "@@@STEP_LOG_LINE@json.output[output]@}@@@",
+ "@@@STEP_LOG_END@json.output[output]@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "http://httpstat.us/500",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "/path/to/tmp/",
+ "--transient-retry",
+ "4"
+ ],
+ "name": "error"
+ },
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "http://httpstat.us/500",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "/path/to/tmp/",
+ "--transient-retry",
+ "0"
+ ],
+ "infra_step": true,
+ "name": "infra error"
+ },
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "https://wrong.host.badssl.com/",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "/path/to/tmp/"
+ ],
+ "name": "GET https://wrong.host.badssl.com/",
+ "~followup_annotations": [
+ "step returned non-zero exit code: 1",
+ "@@@STEP_FAILURE@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "vpython",
+ "-u",
+ "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py",
+ "--url",
+ "https://expired.badssl.com/",
+ "--status-json",
+ "/path/to/tmp/json",
+ "--outfile",
+ "/path/to/tmp/"
+ ],
+ "name": "GET https://expired.badssl.com/",
+ "~followup_annotations": [
+ "step returned non-zero exit code: 1",
+ "@@@STEP_FAILURE@@@"
+ ]
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+]
« no previous file with comments | « recipe_modules/url/example.py ('k') | recipe_modules/url/resources/pycurl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698