Fix automation
[ric-plt/e2mgr.git] / Automation / Tests / Resource / resource.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 Documentation    Resource file
21
22
23 *** Variables ***
24 ${url}   http://localhost:3800
25 ${json}    {"ranIp": "10.0.2.15","ranPort": 5577,"ranName":"test1"}
26 ${endcjson}    {"ranIp": "10.0.2.15","ranPort": 49999,"ranName":"test2"}
27 ${resetcausejson}   {"cause": "misc:not-enough-user-plane-processing-resources"}
28 ${header}  {"Content-Type": "application/json"}
29 ${docker_command}  docker ps | grep 1.0 | wc --lines
30 ${run_simu_load}   docker run -d --name gnbe2_simu --env gNBipv4=localhost  --env gNBport=36422  --env duration=600000000000 --env indicationReportRate=1000000000 --env indicationInsertRate=0 -p 5577:36422/sctp snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/gnbe2_sim:1.0.5
31 ${stop_simu}  docker stop gnbe2_simu
32 ${run_simu_regular}  docker run -d --name gnbe2_simu --env gNBipv4=localhost  --env gNBport=36422 --env duration=600000000000 --env indicationReportRate=0 --env indicationInsertRate=0 -p 5577:36422/sctp snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/gnbe2_sim:1.0.5
33 ${docker_Remove}    docker rm gnbe2_simu
34 ${docker_cp}        docker cp ../Resource/configuration.yaml e2mgr:/opt/E2Manager/resources/configuration.yaml
35 ${docker_restart}   docker restart e2mgr
36 ${restart_simu}  docker restart gnbe2_simu
37 ${restart_e2adapter}  docker restart e2adapter
38 ${start_e2}  docker start e2
39 ${stop_docker_e2}      docker stop e2
40 ${start_redis}   docker run -d --name redis -p 6379:6379 --env DBAAS_SERVICE_HOST=10.0.2.15  snapshot.docker.ranco-dev-tools.eastus.cloudapp.azure.com:10001/dbass:1.0.0
41 ${redis_remove}    docker rm redis
42
43
44