Step 1: Move vm scripts to the right place
[integration/test.git] / test / csit / suites / vpnservice / 010__verify_feature.robot
1 *** Settings ***
2 Documentation     Test Suite that, verifies the features and corresponding bundles are installed.
3 Resource          ../../libraries/KarafKeywords.robot
4
5 *** Variables ***
6 @{FEATURE_LIST}    odl-vpnservice-api    odl-vpnservice-impl    odl-vpnservice-impl-rest    odl-vpnservice-impl-ui    odl-vpnservice-core
7 @{BUNDLE_LIST}    org.opendaylight.vpnservice.vpnmanager-impl    org.opendaylight.vpnservice.interfacemgr-impl    org.opendaylight.vpnservice.nexthopmgr-impl    org.opendaylight.vpnservice.idmanager-impl    org.opendaylight.vpnservice.fibmanager-impl    org.opendaylight.vpnservice.bgpmanager-impl    org.opendaylight.vpnservice.model-bgp
8 @{MESSAGE_STRING_LIST}    VpnserviceProvider Session Initiated    InterfacemgrProvider Session Initiated    NexthopmgrProvider Session Initiated    IDManagerserviceProvider Session Initiated    FibManagerProvider Session Initiated    BgpManager Session Initiated
9
10 *** Test Cases ***
11 Verify if the VPN Service features are installed for vpnservice
12     [Documentation]    Executes command "feature list -i | grep <feature_name>" in karaf console and checks if output \ contain \ the specific features.
13     [Tags]    Verify Feature
14     : FOR    ${feature}    IN    @{FEATURE_LIST}
15     \    Verify Feature Is Installed    ${feature}
16
17 Verify if the VPN Service bundles are loaded
18     [Documentation]    Executes command "bundle:list -s | grep <bundle name>" and checks in the output for the specific bundles
19     [Tags]    Verify VPN bundles
20     : FOR    ${bundle}    IN    @{BUNDLE_LIST}
21     \    Verify Bundle Is Installed    ${bundle}
22
23 Verify if the sessions for bundles got initiated
24     [Documentation]    Executes"log:display | grep vpnservice" command in karaf console and verifies the logs for session initiation
25     [Tags]    Verify Session
26     Wait Until Keyword Succeeds    240 seconds    30 seconds    Check Karaf Log Has Messages    vpnservice    @{MESSAGE_STRING_LIST}