Tidy for clustering test suite.
[integration/test.git] / test / csit / suites / clustering / datastore / 001_start_cluster.robot
1 *** Settings ***
2 Documentation     Start the controllers
3 Default Tags      3-node-cluster
4 Library           Collections
5 Library           ../../../libraries/RequestsLibrary.py
6 Library           ../../../libraries/Common.py
7 Library           ../../../libraries/CrudLibrary.py
8 Library           ../../../libraries/SettingsLibrary.py
9 Library           ../../../libraries/UtilLibrary.py
10 Variables         ../../../variables/Variables.py
11
12 *** Variables ***
13 ${REST_CONTEXT}    /restconf/config/
14
15 *** Test Cases ***
16 Stop All Controllers
17     [Documentation]    Stop all the controllers in the cluster
18     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
19
20 Clean All Journals
21     [Documentation]    Clean the journals of all the controllers in the cluster
22     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
23     CleanJournal    ${MEMBER2}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
24     CleanJournal    ${MEMBER3}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
25     Sleep    5
26
27 Start All Controllers
28     [Documentation]    Start all the controllers in the cluster
29     ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}    ${MEMBER1}
30     ...    ${MEMBER2}    ${MEMBER3}
31     Should Be True    ${rc}