2 Suite Setup Flush Redis
4 Resource ../Resource/resource.robot
5 Library OperatingSystem
10 ${file} ${CURDIR}/addtoredis.py
11 ${flush_file} ${CURDIR}/flush.py
15 ${result}= Run Process python3.6 ${file}
16 Should Be Equal As Strings ${result.stdout} Insert successfully to Redis
20 ${result}= GET v1/nodeb-ids
22 Integer response status 200
23 String response body 0 inventoryName test1
24 String response body 0 globalNbId plmnId 02f829
25 String response body 0 globalNbId nbId 007a80
26 String response body 1 inventoryName test2
27 String response body 1 globalNbId plmnId 03f829
28 String response body 1 globalNbId nbId 001234
34 ${result}= Run Process python3.6 ${flush_file}
35 Should Be Equal As Strings ${result.stdout} Flush Success