Suchitra.Vemuri | fc4a208 | 2017-02-06 11:57:35 -0800 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test suite for checking default images for R-CORD |
| 3 | Suite Setup Read InputFile |
| 4 | Test Template Verify Image Check |
| 5 | Library Collections |
| 6 | Library String |
| 7 | Library OperatingSystem |
| 8 | Library XML |
| 9 | Library RequestsLibrary |
| 10 | Library ../Framework/utils/utils.py |
| 11 | Library ../Framework/restApi.py |
| 12 | |
| 13 | *** Variables *** |
| 14 | ${USER} admin |
| 15 | ${PASSWORD} admin |
| 16 | ${PATHFILE} ${CURDIR}/data/defaultImages.json |
| 17 | |
| 18 | *** Test Cases *** TYPE |
| 19 | Test Default Images on R-CORD |
| 20 | IMAGE |
| 21 | |
| 22 | *** Keywords *** |
| 23 | Read InputFile |
| 24 | ${imageList}= utils.jsonToList ${PATHFILE} imagesInfo |
| 25 | Set Suite Variable ${ilist} ${imageList} |
| 26 | |
| 27 | Verify Image Check |
| 28 | [Arguments] ${type} |
| 29 | Run Keyword If "${type}" == "IMAGE" Test Image Check |
| 30 | |
| 31 | Test Image Check |
| 32 | ${json_result}= restApi.ApiGet CORE_IMAGES |
| 33 | Log ${json_result} |
| 34 | ${imageList}= Get Variable Value ${ilist} |
| 35 | ${test_result}= utils.compare_list_of_dicts ${imageList} ${json_result} |
| 36 | Should Be True ${test_result} |