Fix automation
[ric-plt/e2mgr.git] / Automation / Tests / ConfigurationUpdate / ConfigurationUpdate_prepartations_tests.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
20 *** Settings ***
21 Suite Setup   Prepare Enviorment
22 Resource   ../Resource/resource.robot
23 Resource   ../Resource/Keywords.robot
24 Library     OperatingSystem
25 Library     REST      ${url}
26
27
28 *** Variables ***
29 ${Run_Config}       docker exec gnbe2_simu pkill gnbe2_simu -INT
30 ${Save_e2_log}      docker logs --tail 300 gnbe2_simu > gnb.log
31 ${Save_e2mgr_log}   docker logs --tail 300 e2mgr > e2mgr.log
32
33 *** Test Cases ***
34 X2 - Setup and Get
35     Post Request setup node b x-2
36     Get Request node b enb test1
37
38
39 Run Configuration update
40     Run    ${Run_Config}
41     Sleep   1s
42
43 Remove log files
44     Remove File  ${EXECDIR}/gnb.log
45     Remove File  ${EXECDIR}/e2mgr.log
46
47 Save logs
48     Sleep   1s
49     Run     ${Save_e2_log}
50     Run     ${Save_e2mgr_log}
51
52
53
54
55
56
57
58