blob: fd38c2e9f0d85edc4d0171f9af126f7ca2f57a78 [file] [log] [blame]
Suchitra.Vemurifc4a2082017-02-06 11:57:35 -08001*** Settings ***
2Documentation Test suite for checking default images for R-CORD
3Suite Setup Read InputFile
4Test Template Verify Image Check
5Library Collections
6Library String
7Library OperatingSystem
8Library XML
9Library RequestsLibrary
10Library ../Framework/utils/utils.py
11Library ../Framework/restApi.py
12
13*** Variables ***
14${USER} admin
15${PASSWORD} admin
16${PATHFILE} ${CURDIR}/data/defaultImages.json
17
18*** Test Cases *** TYPE
19Test Default Images on R-CORD
20 IMAGE
21
22*** Keywords ***
23Read InputFile
24 ${imageList}= utils.jsonToList ${PATHFILE} imagesInfo
25 Set Suite Variable ${ilist} ${imageList}
26
27Verify Image Check
28 [Arguments] ${type}
29 Run Keyword If "${type}" == "IMAGE" Test Image Check
30
31Test 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}