mc | cd7e950 | 2019-12-16 22:04:13 +0000 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | *** Settings *** |
| 16 | Library Process |
| 17 | Library OperatingSystem |
| 18 | |
| 19 | *** Test Cases *** |
| 20 | List Supported Events |
| 21 | [Documentation] This test case excercises the API, GetEventList, which is expected to list all supported Redfish events. |
| 22 | ${IP} set variable 192.168.4.26 |
| 23 | ${PORT} set variable 8888 |
| 24 | ${EXPECTED}= RUN sed -e '/^\\/\\//d' -e 's/ipaddr/${IP}:${PORT}/g' tests/list_supported_events.expected |
| 25 | Run Process tests/list_supported_events.tc ${IP}:${PORT} shell=yes alias=myproc |
| 26 | ${OUTPUT}= get process result myproc |
| 27 | Should Be Equal ${EXPECTED} ${OUTPUT.stdout} |
| 28 | |