Allow setting Karaf log levels on suite basis
[integration/test.git] / csit / suites / test / alter_log_levels.robot
1 *** Settings ***
2 Documentation     For every node, set Karaf log level to ${ALTERNATIVE_KARAF_LOG_LEVEL}.
3 ...
4 ...               Copyright (c) 2016 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 ...               This suite is useful for testing, run it after readiness.
12 ...               Do not forget to specify other variables if suites afterwards manipulate log level.
13 ...               Use revert_log_levels.robot to restore log levels to the default value.
14 Suite Setup       ClusterManagement.ClusterManagement_Setup
15 Default Tags      clustering
16 Resource          ${CURDIR}/../../libraries/ClusterManagement.robot
17
18 *** Variables ***
19 ${ALTERNATIVE_KARAF_LOG_LEVEL}    INFO
20
21 *** Test Cases ***
22 Set_Levels
23     [Documentation]    Issue log:set command on each Karaf.
24     ClusterManagement.Run_Karaf_Command_On_List_Or_All    log:set ${ALTERNATIVE_KARAF_LOG_LEVEL}