Fix automation
[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 Library      Process
22 Resource   ../Resource/resource.robot
23 Resource   ../Resource/Keywords.robot
24 Library     OperatingSystem
25 Library     REST      ${url}
26
27
28 *** Test Cases ***
29 Run x2 setup
30     Post Request setup node b x-2
31     Integer     response status       200
32     Sleep  2s
33     GET      /v1/nodeb/test1
34     Integer  response status  200
35     String   response body ranName    test1
36     String   response body ip    10.0.2.15
37     Integer  response body port     5577
38     String   response body connectionStatus    CONNECTED
39
40 Run endc setup
41     Post Request setup node b endc-setup
42     Integer     response status       200
43     Sleep  2s
44     GET      /v1/nodeb/test2
45     Integer  response status  200
46     String   response body ranName    test2
47     String   response body ip    10.0.2.15
48     String   response body connectionStatus    CONNECTED
49
50
51 Get all node ids
52     GET     v1/nodeb/ids
53     Sleep  2s
54     Integer  response status   200
55     String   response body 0 inventoryName  test1
56     String   response body 0 globalNbId plmnId   02f829
57     String   response body 0 globalNbId nbId     007ab0
58     String   response body 1 inventoryName  test2
59     String   response body 1 globalNbId plmnId   42f490
60     String   response body 1 globalNbId nbId     000004
61
62
63
64
65
66
67
68