OLD | NEW |
(Empty) | |
| 1 [ |
| 2 { |
| 3 "cmd": [ |
| 4 "vpython", |
| 5 "-u", |
| 6 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 7 "--url", |
| 8 "https://chromium.org", |
| 9 "--status-json", |
| 10 "/path/to/tmp/json", |
| 11 "--outfile", |
| 12 "[START_DIR]/download.bin", |
| 13 "--headers-json", |
| 14 "{\"Authorization\": \"thing\"}" |
| 15 ], |
| 16 "name": "GET https://chromium.org" |
| 17 }, |
| 18 { |
| 19 "cmd": [ |
| 20 "vpython", |
| 21 "-u", |
| 22 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 23 "--url", |
| 24 "http://chromium.org", |
| 25 "--status-json", |
| 26 "/path/to/tmp/json", |
| 27 "--outfile", |
| 28 "/path/to/tmp/" |
| 29 ], |
| 30 "name": "GET http://chromium.org" |
| 31 }, |
| 32 { |
| 33 "cmd": [ |
| 34 "vpython", |
| 35 "-u", |
| 36 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 37 "--url", |
| 38 "https://chromium.googlesource.com/infra/infra?format=JSON", |
| 39 "--status-json", |
| 40 "/path/to/tmp/json", |
| 41 "--outfile", |
| 42 "/path/to/tmp/json", |
| 43 "--strip-prefix", |
| 44 "\")]}'\\n\"" |
| 45 ], |
| 46 "name": "GET https://chromium.googlesource.com/infra/infra?format=JSON", |
| 47 "~followup_annotations": [ |
| 48 "@@@STEP_LOG_LINE@json.output[output]@{@@@", |
| 49 "@@@STEP_LOG_LINE@json.output[output]@ \"is_json\": true@@@", |
| 50 "@@@STEP_LOG_LINE@json.output[output]@}@@@", |
| 51 "@@@STEP_LOG_END@json.output[output]@@@" |
| 52 ] |
| 53 }, |
| 54 { |
| 55 "cmd": [ |
| 56 "vpython", |
| 57 "-u", |
| 58 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 59 "--url", |
| 60 "http://httpstat.us/500", |
| 61 "--status-json", |
| 62 "/path/to/tmp/json", |
| 63 "--outfile", |
| 64 "/path/to/tmp/", |
| 65 "--transient-retry", |
| 66 "4" |
| 67 ], |
| 68 "name": "error" |
| 69 }, |
| 70 { |
| 71 "cmd": [ |
| 72 "vpython", |
| 73 "-u", |
| 74 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 75 "--url", |
| 76 "http://httpstat.us/500", |
| 77 "--status-json", |
| 78 "/path/to/tmp/json", |
| 79 "--outfile", |
| 80 "/path/to/tmp/", |
| 81 "--transient-retry", |
| 82 "0" |
| 83 ], |
| 84 "infra_step": true, |
| 85 "name": "infra error" |
| 86 }, |
| 87 { |
| 88 "cmd": [ |
| 89 "vpython", |
| 90 "-u", |
| 91 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 92 "--url", |
| 93 "https://wrong.host.badssl.com/", |
| 94 "--status-json", |
| 95 "/path/to/tmp/json", |
| 96 "--outfile", |
| 97 "/path/to/tmp/" |
| 98 ], |
| 99 "name": "GET https://wrong.host.badssl.com/", |
| 100 "~followup_annotations": [ |
| 101 "step returned non-zero exit code: 1", |
| 102 "@@@STEP_FAILURE@@@" |
| 103 ] |
| 104 }, |
| 105 { |
| 106 "cmd": [ |
| 107 "vpython", |
| 108 "-u", |
| 109 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| 110 "--url", |
| 111 "https://expired.badssl.com/", |
| 112 "--status-json", |
| 113 "/path/to/tmp/json", |
| 114 "--outfile", |
| 115 "/path/to/tmp/" |
| 116 ], |
| 117 "name": "GET https://expired.badssl.com/", |
| 118 "~followup_annotations": [ |
| 119 "step returned non-zero exit code: 1", |
| 120 "@@@STEP_FAILURE@@@" |
| 121 ] |
| 122 }, |
| 123 { |
| 124 "name": "$result", |
| 125 "recipe_result": null, |
| 126 "status_code": 0 |
| 127 } |
| 128 ] |
OLD | NEW |