b9078b4b8a878eeee56df5059452bcf5f2025a4c
[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 Library      Process
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       200
31     GET      /v1/nodeb/test1
32     Integer  response status  200
33     String   response body ranName    test1
34     String   response body ip    10.0.2.15
35     Integer  response body port     5577
36     String   response body connectionStatus    CONNECTED
37
38 Run endc setup
39     Post Request setup node b endc-setup
40     Integer     response status       200
41     GET      /v1/nodeb/test2
42     Integer  response status  200
43     String   response body ranName    test2
44     String   response body ip    10.0.2.15
45     String   response body connectionStatus    CONNECTED
46
47
48 Get all node ids
49     GET     v1/nodeb/ids
50     #Output
51     Integer  response status   200
52     String   response body 0 inventoryName  test1
53     String   response body 0 globalNbId plmnId   02f829
54     String   response body 0 globalNbId nbId     007ab0
55     String   response body 1 inventoryName  test2
56     String   response body 1 globalNbId plmnId   42f490
57     String   response body 1 globalNbId nbId     000004