Add stop test validation 38/50538/4
authorPeter Gubka <pgubka@cisco.com>
Tue, 17 Jan 2017 10:27:28 +0000 (11:27 +0100)
committerVratko Polák <vrpolak@cisco.com>
Tue, 17 Jan 2017 17:41:55 +0000 (17:41 +0000)
Change-Id: Ief8681e0e8aef34abecc52b25e23788aa4eb7ebe
Signed-off-by: Peter Gubka <pgubka@cisco.com>
csit/suites/distribution/karaf_sequence_install.robot [moved from csit/suites/distribution/Karaf_Sequence_Install.robot with 100% similarity]
csit/suites/distribution/karaf_stop.robot [new file with mode: 0644]
csit/testplans/distribution-userfeatures.txt

diff --git a/csit/suites/distribution/karaf_stop.robot b/csit/suites/distribution/karaf_stop.robot
new file mode 100644 (file)
index 0000000..12f64f5
--- /dev/null
@@ -0,0 +1,28 @@
+*** Settings ***
+Documentation     Karaf stop suite.
+...
+...               Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
+...
+...               This program and the accompanying materials are made available under the
+...               terms of the Eclipse Public License v1.0 which accompanies this distribution,
+...               and is available at http://www.eclipse.org/legal/epl-v10.html
+...
+...
+...               Try to test whether Karaf stops correctly when stop script is used.
+...
+...               This suite should run as the last one, because it stops the karaf and does
+...               not start again. And should try to stop karaf when enough features are installed.
+...               Because of that it will be run after the karaf_sequence_install.robot
+Suite Setup       SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Default Tags      critical    distribution    features
+Resource          ${CURDIR}/../../libraries/ClusterManagement.robot
+Resource          ${CURDIR}/../../libraries/SetupUtils.robot
+Resource          ${CURDIR}/../../variables/Variables.robot
+
+*** Variables ***
+${STOP_TIMEOUT}    180s
+
+*** Testcases ***
+Stop_Karaf_Within_Timeout
+    [Documentation]    Try to stop karaf using delivered ./bin/stop script.
+    ClusterManagement.Stop_Members_From_List_Or_All    timeout=${STOP_TIMEOUT}
index 0df12160534582fb7a66a5e8228e1ba03b0bbe73..b0e40d662b3319a4d9d59a63ffe8b60fdb499a5d 100644 (file)
@@ -8,4 +8,6 @@
 integration/test/csit/suites/distribution/size.robot
 integration/test/csit/suites/netconf/ready/netconfready.robot
 integration/test/csit/suites/distribution/version.robot
-integration/test/csit/suites/distribution/Karaf_Sequence_Install.robot
\ No newline at end of file
+integration/test/csit/suites/distribution/karaf_sequence_install.robot
+# Karaf_Stop.robot should be the last one. See comment inside.
+integration/test/csit/suites/distribution/karaf_stop.robot