Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 1 | *** Settings *** |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 2 | Documentation Test upload image with both valid and invalid images. |
| 3 | ... This test expects there to be bad image tarballs named |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 4 | ... pnor_bad_manifest.tar, pnor_no_image.tar, |
| 5 | ... bmc_bad_manifest.tar, and bmc_no_image.tar on the TFTP |
| 6 | ... server and in the BAD_IMAGES_DIR_PATH directory. |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 7 | ... Execution Method : |
| 8 | ... python -m robot -v OPENBMC_HOST:<hostname> |
| 9 | ... -v TFTP_SERVER:<TFTP server IP> |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 10 | ... -v PNOR_TFTP_FILE_NAME:<filename.tar> |
| 11 | ... -v BMC_TFTP_FILE_NAME:<filename.tar> |
| 12 | ... -v PNOR_IMAGE_FILE_PATH:<path/*.tar> |
| 13 | ... -v BMC_IMAGE_FILE_PATH:<path/*.tar> |
George Keishing | 9571a93 | 2017-11-12 12:42:23 -0600 | [diff] [blame] | 14 | ... -v BAD_IMAGES_DIR_PATH:<path> test_image_upload.robot |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 15 | |
Charles Paul Hofer | 7c191de | 2017-09-27 15:47:47 -0500 | [diff] [blame] | 16 | Resource ../../lib/connection_client.robot |
| 17 | Resource ../../lib/rest_client.robot |
| 18 | Resource ../../lib/openbmc_ffdc.robot |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 19 | Library Collections |
| 20 | Library String |
| 21 | Library OperatingSystem |
Charles Paul Hofer | 7c191de | 2017-09-27 15:47:47 -0500 | [diff] [blame] | 22 | Library ../../lib/code_update_utils.py |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 23 | |
| 24 | Test Teardown Upload Image Teardown |
| 25 | |
Sweta Potthuri | 5db43e4 | 2017-06-15 05:36:44 -0500 | [diff] [blame] | 26 | Force Tags Upload_Test |
| 27 | |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 28 | *** Variables *** |
| 29 | ${timeout} 10 |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 30 | ${QUIET} ${1} |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 31 | |
| 32 | *** Test Cases *** |
| 33 | |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 34 | Upload Host Image Via REST |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 35 | [Documentation] Upload a PNOR image via REST. |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 36 | [Tags] Upload_Host_Image_Via_REST |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 37 | [Template] Upload Image Via REST And Verify Success |
| 38 | |
| 39 | # Image File Path |
| 40 | ${PNOR_IMAGE_FILE_PATH} |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 41 | |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 42 | |
| 43 | Upload BMC Image Via REST |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 44 | [Documentation] Upload a BMC image via REST. |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 45 | [Tags] Upload_BMC_Image_Via_REST |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 46 | [Template] Upload Image Via REST And Verify Success |
| 47 | |
| 48 | # Image File Path |
| 49 | ${BMC_IMAGE_FILE_PATH} |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 50 | |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 51 | |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 52 | Upload Host Image Via TFTP |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 53 | [Documentation] Upload a PNOR image via TFTP. |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 54 | [Tags] Upload_Host_Image_Via_TFTP |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 55 | [Template] Upload Image Via TFTP And Verify Success |
| 56 | |
| 57 | # Image File Path |
| 58 | ${PNOR_TFTP_FILE_NAME} |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 59 | |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 60 | |
| 61 | Upload BMC Image Via TFTP |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 62 | [Documentation] Upload a BMC image via TFTP |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 63 | [Tags] Upload_BMC_Image_Via_TFTP |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 64 | [Template] Upload Image Via TFTP And Verify Success |
| 65 | |
| 66 | # Image File Path |
| 67 | ${BMC_TFTP_FILE_NAME} |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 68 | |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 69 | |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 70 | Upload Host Image With Bad Manifest Via REST |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 71 | [Documentation] Upload a PNOR image with a bad MANIFEST via REST and |
| 72 | ... verify that the BMC does not unpack it. |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 73 | [Tags] Upload_Host_Image_With_Bad_Manifest_Via_REST |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 74 | [Template] Upload Bad Image Via REST And Verify Failure |
| 75 | |
| 76 | # Image File Name |
| 77 | pnor_bad_manifest.tar |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 78 | |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 79 | |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 80 | Upload Host Image With No Squashfs Via REST |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 81 | [Documentation] Upload a PNOR image with just a MANIFEST file via REST |
| 82 | ... and verify that the BMC does not unpack it. |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 83 | [Tags] Upload_Host_Image_With_No_Squashfs_Via_REST |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 84 | [Template] Upload Bad Image Via REST And Verify Failure |
| 85 | |
| 86 | # Image File Name |
| 87 | pnor_no_image.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 88 | |
| 89 | |
| 90 | Upload BMC Image With Bad Manifest Via REST |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 91 | [Documentation] Upload a BMC image with a bad MANFIEST file via REST and |
| 92 | ... verify that the BMC does not unpack it. |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 93 | [Tags] Upload_BMC_Image_With_Bad_Manifest_Via_REST |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 94 | [Template] Upload Bad Image Via REST And Verify Failure |
| 95 | |
| 96 | # Image File Name |
| 97 | bmc_bad_manifest.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 98 | |
| 99 | |
| 100 | Upload BMC Image With No Image Via REST |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 101 | [Documentation] Upload a BMC image with no just a MANIFEST file via REST |
| 102 | ... and verify that the BMC does not unpack it. |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 103 | [Tags] Upload_BMC_Image_With_No_Image_Via_REST |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 104 | [Template] Upload Bad Image Via REST And Verify Failure |
| 105 | |
| 106 | # Image File Name |
| 107 | bmc_no_image.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 108 | |
| 109 | |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 110 | Upload Host Image With Bad Manifest Via TFTP |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 111 | [Documentation] Upload a PNOR image with a bad MANIFEST file via TFTP and |
| 112 | ... verify that the BMC does not unpack it. |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 113 | [Tags] Upload_Host_Image_With_Bad_Manifest_Via_TFTP |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 114 | [Template] Upload Bad Image Via TFTP And Verify Failure |
| 115 | |
| 116 | # Image File Name |
| 117 | pnor_bad_manifest.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 118 | |
| 119 | |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 120 | Upload Host Image With No Squashfs Via TFTP |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 121 | [Documentation] Upload a PNOR image with just a MANIFEST file via TFTP and |
| 122 | ... verify that the BMC does not unpack it. |
Charles Paul Hofer | 9a5c722 | 2017-08-03 18:21:08 -0500 | [diff] [blame] | 123 | [Tags] Upload_Host_Image_With_No_Squashfs_Via_TFTP |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 124 | [Template] Upload Bad Image Via TFTP And Verify Failure |
| 125 | |
| 126 | # Image File Name |
| 127 | pnor_no_image.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 128 | |
| 129 | |
| 130 | Upload BMC Image With Bad Manifest Via TFTP |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 131 | [Documentation] Upload a BMC image with a bad MANIFEST file via TFTP and |
| 132 | ... verify that the BMC does not unpack it. |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 133 | [Tags] Upload_BMC_Image_With_Bad_Manifest_Via_TFTP |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 134 | [Template] Upload Bad Image Via TFTP And Verify Failure |
| 135 | |
| 136 | # Image File Name |
| 137 | bmc_bad_manifest.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 138 | |
| 139 | |
| 140 | Upload BMC Image With No Image Via TFTP |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 141 | [Documentation] Upload a BMC image with just a MANIFEST file via TFTP and |
| 142 | ... verify that the BMC does not unpack it. |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 143 | [Tags] Upload_BMC_Image_With_No_Image_Via_TFTP |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 144 | [Template] Upload Bad Image Via TFTP And Verify Failure |
| 145 | |
| 146 | # Image File Name |
| 147 | bmc_no_image.tar |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 148 | |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 149 | |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 150 | *** Keywords *** |
| 151 | |
| 152 | Upload Image Teardown |
Saqib Khan | bb8b63f | 2017-05-24 10:58:01 -0500 | [diff] [blame] | 153 | [Documentation] Log FFDC if test fails for debugging purposes. |
| 154 | |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 155 | Close All Connections |
| 156 | FFDC On Test Case Fail |
| 157 | |
Saqib Khan | bb8b63f | 2017-05-24 10:58:01 -0500 | [diff] [blame] | 158 | |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 159 | Upload Post Request |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 160 | [Documentation] Make POST request. |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 161 | [Arguments] ${uri} ${timeout}=10 ${quiet}=${QUIET} &{kwargs} |
| 162 | |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 163 | # Description of argument(s): |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 164 | # uri URI for uploading image via REST. |
| 165 | # timeout Time allocated for the REST command to return status. |
| 166 | # quiet If enabled turns off logging to console. |
| 167 | # kwargs A dictionary that maps each keyword to a value. |
| 168 | |
| 169 | Initialize OpenBMC ${timeout} quiet=${quiet} |
| 170 | ${base_uri}= Catenate SEPARATOR= ${DBUS_PREFIX} ${uri} |
| 171 | ${headers}= Create Dictionary Content-Type=application/octet-stream |
Sridevi Ramesh | eadeef0 | 2019-01-17 08:56:18 -0600 | [diff] [blame] | 172 | ... X-Auth-Token=${XAUTH_TOKEN} Accept=application/octet-stream |
Saqib Khan | fb1f6ae | 2017-04-26 13:24:41 -0500 | [diff] [blame] | 173 | Set To Dictionary ${kwargs} headers ${headers} |
| 174 | Run Keyword If '${quiet}' == '${0}' Log Request method=Post |
| 175 | ... base_uri=${base_uri} args=&{kwargs} |
| 176 | ${ret}= Post Request openbmc ${base_uri} &{kwargs} timeout=${timeout} |
| 177 | Run Keyword If '${quiet}' == '${0}' Log Response ${ret} |
| 178 | Should Be Equal As Strings ${ret.status_code} ${HTTP_OK} |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 179 | |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 180 | Get Image Version From TFTP Server |
| 181 | [Documentation] Get the version dfound in the MANIFEST file of |
| 182 | ... an image on the given TFTP server. |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 183 | [Arguments] ${tftp_image_file_path} |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 184 | |
| 185 | # Description of argument(s): |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 186 | # tftp_image_file_path The path to the image on the TFTP server. |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 187 | |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 188 | ${stripped_file_path}= Strip String ${tftp_image_file_path} characters=/ |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 189 | ${rc}= OperatingSystem.Run And Return RC |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 190 | ... curl -s tftp://${TFTP_SERVER}/${stripped_file_path} > tftp_image.tar |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 191 | Should Be Equal As Integers 0 ${rc} |
| 192 | ... msg=Could not download image to check version. |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 193 | ${version}= Get Version Tar tftp_image.tar |
| 194 | OperatingSystem.Remove File tftp_image.tar |
Charles P. Hofer | 1d20acd | 2017-07-05 15:24:40 -0500 | [diff] [blame] | 195 | [Return] ${version} |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 196 | |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 197 | Upload Image Via REST And Verify Success |
| 198 | [Documentation] Upload an image to the BMC and check that it is unpacked. |
| 199 | |
| 200 | # Upload the given good image to the BMC via REST, and check that the |
| 201 | # BMC has unpacked the image and created a valid D-Bus entry for it. |
| 202 | |
| 203 | [Arguments] ${image_file_path} |
| 204 | |
| 205 | # Description of argument(s): |
| 206 | # image_file_path The path to the image file to upload. |
| 207 | |
| 208 | OperatingSystem.File Should Exist ${image_file_path} |
| 209 | ${image_version}= Get Version Tar ${image_file_path} |
| 210 | ${image_data}= OperatingSystem.Get Binary File ${image_file_path} |
| 211 | Upload Image To BMC /upload/image data=${image_data} |
Charles Paul Hofer | cef6199 | 2017-08-18 10:14:18 -0500 | [diff] [blame] | 212 | ${ret} ${version_id}= Verify Image Upload ${image_version} |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 213 | Should Be True ${ret} |
| 214 | |
| 215 | Upload Image Via TFTP And Verify Success |
| 216 | [Documentation] Upload an image to the BMC and check that it was unpacked. |
| 217 | |
| 218 | # Upload the given good image to the BMC via TFTP, and check that the |
| 219 | # BMC has unpacked the image and created a valid D-Bus entry for it. |
| 220 | |
| 221 | [Arguments] ${image_file_name} |
| 222 | |
| 223 | # Description of argument(s): |
| 224 | # image_file_name The name of the image file on the TFTP server. |
| 225 | |
| 226 | @{image}= Create List ${image_file_name} ${TFTP_SERVER} |
| 227 | ${data}= Create Dictionary data=@{image} |
| 228 | ${resp}= OpenBMC Post Request |
Steven Sombar | aaaab22 | 2018-12-19 13:16:23 -0600 | [diff] [blame] | 229 | ... ${SOFTWARE_VERSION_URI}action/DownloadViaTFTP data=${data} |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 230 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 231 | Sleep 1 minute |
| 232 | ${image_version}= Get Image Version From TFTP Server ${image_file_name} |
Charles Paul Hofer | cef6199 | 2017-08-18 10:14:18 -0500 | [diff] [blame] | 233 | ${ret} ${version_id}= Verify Image Upload ${image_version} |
Charles Paul Hofer | 6b97268 | 2017-07-20 11:36:56 -0500 | [diff] [blame] | 234 | Should Be True ${ret} |
| 235 | |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 236 | Upload Bad Image Via REST And Verify Failure |
| 237 | [Documentation] Upload the given bad image to the BMC via REST and check |
| 238 | ... that the BMC did not unpack the invalid image. |
| 239 | [Arguments] ${bad_image_file_name} |
| 240 | |
| 241 | # Description of argument(s): |
| 242 | # image_file_name The name of the bad image to upload via REST. |
| 243 | |
| 244 | ${bad_image_file_path}= OperatingSystem.Join Path ${BAD_IMAGES_DIR_PATH} |
| 245 | ... ${bad_image_file_name} |
| 246 | OperatingSystem.File Should Exist ${bad_image_file_path} |
| 247 | ... msg=Bad image file ${bad_image_file_name} not found. |
| 248 | ${bad_image_version}= Get Version Tar ${bad_image_file_path} |
| 249 | ${bad_image_data}= OperatingSystem.Get Binary File ${bad_image_file_path} |
| 250 | Upload Post Request /upload/image data=${bad_image_data} |
| 251 | Verify Image Not In BMC Uploads Dir ${bad_image_version} |
| 252 | |
| 253 | Upload Bad Image Via TFTP And Verify Failure |
| 254 | [Documentation] Upload the given bad image to the BMC via TFTP and check |
| 255 | ... that the BMC did not unpack the invalid image. |
| 256 | [Arguments] ${bad_image_file_name} |
| 257 | |
| 258 | # Description of argument(s): |
| 259 | # image_file_name The name of the bad image to upload via TFTP. |
| 260 | |
| 261 | @{image}= Create List ${bad_image_file_name} ${TFTP_SERVER} |
| 262 | ${data}= Create Dictionary data=@{image} |
| 263 | ${resp}= OpenBMC Post Request |
Steven Sombar | aaaab22 | 2018-12-19 13:16:23 -0600 | [diff] [blame] | 264 | ... ${SOFTWARE_VERSION_URI}action/DownloadViaTFTP data=${data} |
Charles P. Hofer | 346c045 | 2017-07-14 15:29:50 -0500 | [diff] [blame] | 265 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 266 | ${bad_image_version}= Get Image Version From TFTP Server |
| 267 | ... ${bad_image_file_name} |
| 268 | Verify Image Not In BMC Uploads Dir ${bad_image_version} |