| 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 "http://chromium.org", | |
| 39 "--status-json", | |
| 40 "/path/to/tmp/json", | |
| 41 "--outfile", | |
| 42 "/path/to/tmp/" | |
| 43 ], | |
| 44 "name": "GET http://chromium.org (2)" | |
| 45 }, | |
| 46 { | |
| 47 "cmd": [ | |
| 48 "vpython", | |
| 49 "-u", | |
| 50 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", | |
| 51 "--url", | |
| 52 "https://chromium.googlesource.com/infra/infra?format=JSON", | |
| 53 "--status-json", | |
| 54 "/path/to/tmp/json", | |
| 55 "--outfile", | |
| 56 "/path/to/tmp/json", | |
| 57 "--strip-prefix", | |
| 58 "\")]}'\\n\"" | |
| 59 ], | |
| 60 "name": "GET https://chromium.googlesource.com/infra/infra?format=JSON", | |
| 61 "~followup_annotations": [ | |
| 62 "@@@STEP_LOG_LINE@json.output[output]@{@@@", | |
| 63 "@@@STEP_LOG_LINE@json.output[output]@ \"is_json\": true@@@", | |
| 64 "@@@STEP_LOG_LINE@json.output[output]@}@@@", | |
| 65 "@@@STEP_LOG_END@json.output[output]@@@" | |
| 66 ] | |
| 67 }, | |
| 68 { | |
| 69 "cmd": [ | |
| 70 "vpython", | |
| 71 "-u", | |
| 72 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", | |
| 73 "--url", | |
| 74 "https://chromium.googlesource.com/infra/infra?format=JSON", | |
| 75 "--status-json", | |
| 76 "/path/to/tmp/json", | |
| 77 "--outfile", | |
| 78 "/path/to/tmp/json", | |
| 79 "--strip-prefix", | |
| 80 "\")]}'\\n\"" | |
| 81 ], | |
| 82 "name": "GET https://chromium.googlesource.com/infra/infra?format=JSON (2)" | |
| 83 }, | |
| 84 { | |
| 85 "cmd": [ | |
| 86 "vpython", | |
| 87 "-u", | |
| 88 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", | |
| 89 "--url", | |
| 90 "http://httpstat.us/500", | |
| 91 "--status-json", | |
| 92 "/path/to/tmp/json", | |
| 93 "--outfile", | |
| 94 "/path/to/tmp/", | |
| 95 "--transient-retry", | |
| 96 "4" | |
| 97 ], | |
| 98 "name": "error" | |
| 99 }, | |
| 100 { | |
| 101 "cmd": [ | |
| 102 "vpython", | |
| 103 "-u", | |
| 104 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", | |
| 105 "--url", | |
| 106 "http://httpstat.us/500", | |
| 107 "--status-json", | |
| 108 "/path/to/tmp/json", | |
| 109 "--outfile", | |
| 110 "/path/to/tmp/", | |
| 111 "--transient-retry", | |
| 112 "0" | |
| 113 ], | |
| 114 "infra_step": true, | |
| 115 "name": "infra error" | |
| 116 }, | |
| 117 { | |
| 118 "cmd": [ | |
| 119 "vpython", | |
| 120 "-u", | |
| 121 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", | |
| 122 "--url", | |
| 123 "https://wrong.host.badssl.com/", | |
| 124 "--status-json", | |
| 125 "/path/to/tmp/json", | |
| 126 "--outfile", | |
| 127 "/path/to/tmp/" | |
| 128 ], | |
| 129 "name": "GET https://wrong.host.badssl.com/", | |
| 130 "~followup_annotations": [ | |
| 131 "step returned non-zero exit code: 1", | |
| 132 "@@@STEP_FAILURE@@@" | |
| 133 ] | |
| 134 }, | |
| 135 { | |
| 136 "cmd": [ | |
| 137 "vpython", | |
| 138 "-u", | |
| 139 "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", | |
| 140 "--url", | |
| 141 "https://expired.badssl.com/", | |
| 142 "--status-json", | |
| 143 "/path/to/tmp/json", | |
| 144 "--outfile", | |
| 145 "/path/to/tmp/" | |
| 146 ], | |
| 147 "name": "GET https://expired.badssl.com/", | |
| 148 "~followup_annotations": [ | |
| 149 "step returned non-zero exit code: 1", | |
| 150 "@@@STEP_FAILURE@@@" | |
| 151 ] | |
| 152 }, | |
| 153 { | |
| 154 "name": "$result", | |
| 155 "recipe_result": null, | |
| 156 "status_code": 0 | |
| 157 } | |
| 158 ] | |
| OLD | NEW |