1 ##############################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you maynot use this file except in compliance with the License. #
8 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ##############################################################################
21 Library OperatingSystem
26 ${REPORTDIR} ${LOG_PATH}/${SUITE_NAME.replace(' ','_')}
27 ${REDFISHDIR} ${TEMPDIR}/Redfish
32 ${conf}= Load JSON From File ${REDFISHDIR}/framework_conf.json
33 ${conf}= Update Value To Json ${conf} $.password ${BMC_PASSWORD}
34 ${conf}= Convert JSON To String ${conf}
35 Create File ${REDFISHDIR}/framework_conf.json ${conf}
37 Run Suite Against Target Node
39 ${result}= Run Process python test_framework.py
40 ... --directory ${REDFISHDIR}
42 ... --user ${BMC_USER}
43 ... --interpreter python
46 Copy Files ${REDFISHDIR}/reports/output-*/results*.json ${REPORTDIR}/${ip}
47 Copy Files ${REDFISHDIR}/output-*/*.html ${REPORTDIR}/${ip}
48 Should Be Equal As Integers ${result.rc} 0
49 Should Not Contain ${result.stderr} FAILED${\n} (Failures=
51 Run Usecase Checkers Suite
52 FOR ${ip} IN @{BMC_IP}
53 Copy Directory /opt/akraino/Redfish-Test-Framework ${REDFISHDIR}
54 Copy Directory /opt/akraino/Redfish-Usecase-Checkers ${REDFISHDIR}/Redfish-Usecase-Checkers
55 Create Directory ${REDFISHDIR}/reports
57 Run Suite Against Target Node ${ip}
58 Remove Directory ${REDFISHDIR} recursive=True