blob: 90721b7d82eaa30a1c1cc9e37b9b1c94664627ec [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2Documentation This suite will the firmware version exposed part of
3... system inventory
4
5Resource ../lib/rest_client.robot
6
7
8*** Variables ***
9
10
11*** Test Cases ***
12Test 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+