Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite will the firmware version exposed part of |
| 3 | ... system inventory |
| 4 | |
| 5 | Resource ../lib/rest_client.robot |
| 6 | |
| 7 | |
| 8 | *** Variables *** |
| 9 | |
| 10 | |
| 11 | *** Test Cases *** |
| 12 | Test Firmware Version |
| 13 | [Documentation] This testcase is for testing the fw version.\n |
| 14 | ... Expected in following format: |
| 15 | ... $ git describe --dirty |
| 16 | ... v0.1-34-g95f7347 |
| 17 | ... $ |
| 18 | ${resp} = OpenBMC Get Request /org/openbmc/inventory/system/chassis/motherboard/bmc |
| 19 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 20 | ${jsondata}= To Json ${resp.content} |
| 21 | Should not be empty ${jsondata["data"]["version"]} |
| 22 | Should Match Regexp ${jsondata["data"]["version"]} ^v\\d+\.\\d+ |