Automation fixes
[ric-plt/e2mgr.git] / Automation / Tests / Get-All-Nodes-Real / Get_all_nodes_run_setup_and_get_all.robot
1 ##############################################################################
2 #
3 #   Copyright (c) 2019 AT&T Intellectual Property.
4 #
5 #   Licensed under the Apache License, Version 2.0 (the "License");
6 #   you may not use this file except in compliance with the License.
7 #   You may obtain a copy of the License at
8 #
9 #       http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #   Unless required by applicable law or agreed to in writing, software
12 #   distributed under the License is distributed on an "AS IS" BASIS,
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #   See the License for the specific language governing permissions and
15 #   limitations under the License.
16 #
17 ##############################################################################
18
19 *** Settings ***
20 Suite Setup  Prepare Enviorment
21 Resource   ../Resource/resource.robot
22 Resource   ../Resource/Keywords.robot
23 Library     OperatingSystem
24 Library     REST      ${url}
25
26
27 *** Test Cases ***
28 Run x2 setup
29     Post Request setup node b x-2
30     Integer     response status       204
31     Sleep  2s
32     GET      /v1/nodeb/test1
33     Integer  response status  200
34     String   response body ranName    test1
35     String   response body ip    10.0.2.15
36     Integer  response body port     5577
37     String   response body connectionStatus    CONNECTED
38
39 Run endc setup
40     Post Request setup node b endc-setup
41     Integer     response status       204
42     Sleep  2s
43     GET      /v1/nodeb/test2
44     Integer  response status  200
45     String   response body ranName    test2
46     String   response body ip    10.0.2.15
47     String   response body connectionStatus    CONNECTED
48
49
50 Get all node ids
51     GET     v1/nodeb/ids
52     Sleep  2s
53     Integer  response status   200
54     String   response body 0 inventoryName  test1
55     String   response body 0 globalNbId plmnId   02f829
56     String   response body 0 globalNbId nbId     007ab0
57     String   response body 1 inventoryName  test2
58     String   response body 1 globalNbId plmnId   42f490
59     String   response body 1 globalNbId nbId     000004
60
61
62
63
64
65
66
67