00660aadc756fca7a6a566ee58d9d64f98c858e7
[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 #   This source code is part of the near-RT RIC (RAN Intelligent Controller)
20 #   platform project (RICP).
21 #
22
23 *** Settings ***
24 Suite Setup  Prepare Enviorment
25 Resource   ../Resource/resource.robot
26 Resource   ../Resource/Keywords.robot
27 Library     OperatingSystem
28 Library     REST      ${url}
29
30
31 *** Test Cases ***
32 Run x2 setup
33     Post Request setup node b x-2
34     Integer     response status       204
35     Sleep  2s
36     GET      /v1/nodeb/test1
37     Integer  response status  200
38     String   response body ranName    test1
39     Integer  response body port     5577
40     String   response body connectionStatus    CONNECTED
41
42 Run endc setup
43     Post Request setup node b endc-setup
44     Integer     response status       204
45     Sleep  2s
46     GET      /v1/nodeb/test2
47     Integer  response status  200
48     String   response body ranName    test2
49     String   response body connectionStatus    CONNECTED
50
51
52 Get all node ids
53     GET     v1/nodeb/ids
54     Sleep  2s
55     Integer  response status   200
56     String   response body 0 inventoryName  test1
57     String   response body 0 globalNbId plmnId   02f829
58     String   response body 0 globalNbId nbId     007ab0
59     String   response body 1 inventoryName  test2
60     String   response body 1 globalNbId plmnId   42f490
61     String   response body 1 globalNbId nbId     000004
62
63
64
65
66
67
68
69