Migrate Get Requests invocations(libraries)
[integration/test.git] / csit / suites / distribution / karaf_sequence_install.robot
1 *** Settings ***
2 Documentation       Bug 4462 test suite.
3 ...
4 ...                 Copyright (c) 2016-2017 Cisco Systems, Inc. and others. All rights reserved.
5 ...
6 ...                 This program and the accompanying materials are made available under the
7 ...                 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 ...                 and is available at http://www.eclipse.org/legal/epl-v10.html
9 ...
10 ...
11 ...                 Try to detect whether Karaf hangs when trying to install
12 ...                 list of features one by one. Default list is odl-integration-compatible-with-all.
13
14 Resource            ${CURDIR}/../../libraries/distribution/StreamDistro.robot
15 Resource            ${CURDIR}/../../libraries/ClusterManagement.robot
16 Resource            ${CURDIR}/../../libraries/SetupUtils.robot
17 Resource            ${CURDIR}/../../libraries/SSHKeywords.robot
18 Resource            ${CURDIR}/../../variables/Variables.robot
19 Library             XML
20 Library             SSHLibrary
21
22 Suite Setup         SetupUtils.Setup_Utils_For_Setup_And_Teardown
23
24 Default Tags        critical    distribution    features
25
26
27 *** Variables ***
28 ${FEATURES_LIST_NAME}           odl-integration-compatible-with-all
29 ${FEATURE_INSTALL_TIMEOUT}      10m
30
31
32 *** Test Cases ***
33 Install_Features_One_By_One
34     [Documentation]    Try to install current list of features and check whether Karaf hangs on it or not (bug 4462).
35     SSHKeywords.Open_Connection_To_ODL_System
36     ${filename_prefix} =    StreamDistro.Compose_Zip_Filename_Prefix
37     ${actual_version} =    BuiltIn.Evaluate    '''${BUNDLEFOLDER}'''[len("${filename_prefix}-"):]
38     ${features_test} =    StreamDistro.Compose_Test_Feature_Repo_Name
39     SSHLibrary.Get_File
40     ...    ${WORKSPACE}/${BUNDLEFOLDER}/system/org/opendaylight/integration/${features_test}/${actual_version}/${features_test}-${actual_version}-features.xml
41     ...    features.xml
42     @{features} =    XML.Get_Elements_Texts    features.xml    .feature[@name="${FEATURES_LIST_NAME}"]/feature
43     Collections.Log_List    ${features}
44     KarafKeywords.Open_Controller_Karaf_Console_With_Timeout    ${1}    ${FEATURE_INSTALL_TIMEOUT}
45     FOR    ${feature}    IN    @{features}
46         KarafKeywords.Log_Message_To_Controller_Karaf    Installing feature: ${feature}
47         KarafKeywords.Install_a_Feature_Using_Active_Connection    ${feature}
48     END