push code back with legal issues fix
[ric-plt/e2mgr.git] / Automation / Tests / Unhappy / Setup_failure.robot
1 *** Settings ***
2 Suite Setup     Start dockers
3 Resource   ../Resource/resource.robot
4 Library     OperatingSystem
5 Library     REST        ${url}
6
7
8
9
10 *** Test Cases ***
11 Post Request setup node b x2-setup - setup failure
12     #${file}=     Get Binary File    ${PATH}
13     #${file}=     Evaluate       json.loads($file)   json
14     Set Headers     ${header}
15     POST        /v1/nodeb/x2-setup   ${json}
16     Sleep    1s
17     POST        /v1/nodeb/x2-setup   ${json}
18     Sleep    1s
19     GET      /v1/nodeb/test1
20     Integer    response status       200
21     String     response body connectionStatus     CONNECTED_SETUP_FAILED
22     String     response body failureType     X2_SETUP_FAILURE
23     String     response body setupFailure networkLayerCause       HO_TARGET_NOT_ALLOWED
24
25
26
27
28 *** Keywords ***
29 Start dockers
30      Run And Return Rc And Output    ${run_script}
31      ${result}=  Run And Return Rc And Output     ${docker_command}
32      Should Be Equal As Integers    ${result[1]}    4