X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=robot-systest%2Fdeprecated%2Ftestsuite%2Fcli%2FTS010__OSM_Platform_Resiliency_and_Recovery_Test.robot;fp=robot-systest%2Fdeprecated%2Ftestsuite%2Fcli%2FTS010__OSM_Platform_Resiliency_and_Recovery_Test.robot;h=2475e7408662fe3b8a7445c3d6924ce9626822ce;hb=4edf733e765a1069a34d6fccf940af27ae39dad6;hp=0000000000000000000000000000000000000000;hpb=50d786e60c1399ab4b1d9141b20f59e7d394ad9a;p=osm%2Fdevops.git diff --git a/robot-systest/deprecated/testsuite/cli/TS010__OSM_Platform_Resiliency_and_Recovery_Test.robot b/robot-systest/deprecated/testsuite/cli/TS010__OSM_Platform_Resiliency_and_Recovery_Test.robot new file mode 100644 index 00000000..2475e740 --- /dev/null +++ b/robot-systest/deprecated/testsuite/cli/TS010__OSM_Platform_Resiliency_and_Recovery_Test.robot @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- + +## +# Copyright 2019 Tech Mahindra Limited +# +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +## + +## Change log: +# 1. Jayant Madavi, Mrityunjay Yadav : MY00514913@techmahindra.com : 08-nov-2019 : network slicing test library +## + + +*** Settings *** +Library OperatingSystem +Library String +Library Collections +Resource ../../lib/cli/osm_platform_resiliancy_recovery_lib.robot +Library ../../lib/custom_lib.py + + +*** Variables *** +${max_wait_time} 5min +${pol_time} 30sec +@{components} osm_keystone.1 osm_lcm.1 osm_light-ui.1 osm_mon.1 osm_mongo.1 osm_nbi.1 osm_pol.1 osm_prometheus.1 osm_ro.1 osm_kafka.1 osm_zookeeper.1 osm_mysql.1 + + +*** Test Cases *** +Feature 1413 - OSM platform resiliency to single component failure + [Tags] platform resiliency + [Documentation] OSM platform resiliency test + + ${name}= Get Random Item From List ${components} + Check If OSM Working + WAIT UNTIL KEYWORD SUCCEEDS 2x 30sec Check All Service Are Running + Kill Docker Container ${name} + WAIT UNTIL KEYWORD SUCCEEDS ${max_wait_time} ${pol_time} Check All Service Are Running + Check If OSM Working + + +Feature 1412 - OSM platform recovery after major failure + [Tags] platform recovery + [Documentation] OSM platform recovery + + Check If OSM Working + WAIT UNTIL KEYWORD SUCCEEDS 2x 30sec Check All Service Are Running + :FOR ${component} IN @{components} + \ Kill Docker Container ${component} + WAIT UNTIL KEYWORD SUCCEEDS ${max_wait_time} ${pol_time} Check All Service Are Running + Check If OSM Working