2 Documentation Test Suite that installs vpn service features, verifies the features and corresponding bundles are installed.Uninstalls the features and verifies the corresponding features and bundles are uninstalled.
3 Resource ../../libraries/KarafKeywords.txt
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
11 Install the VPN Service features
12 [Documentation] Installs the vpn service featues by executing command "feature:install odl-vpnservice-core" in karaf console
13 [Tags] Install VPN Features
14 ${output}= Issue Command On Karaf Console feature:install odl-vpnservice-core timeout=120 seconds
16 Verify if the VPN Service features are installed for vpnservice
17 [Documentation] Executes command "feature list -i | grep <feature_name>" in karaf console and checks if output \ contain \ the specific features.
19 : FOR ${feature} IN @{FEATURE_LIST}
20 \ Verify Feature Is Installed ${feature}
22 Verify if the VPN Service bundles are loaded
23 [Documentation] Executes command "bundle:list -s | grep <bundle name>" and checks in the output for the specific bundles
24 [Tags] Verify VPN bundles
25 : FOR ${bundle} IN @{BUNDLE_LIST}
26 \ Verify Bundle Is Installed ${bundle}
28 Verify if the sessions for bundles got initiated
29 [Documentation] Executes"log:display | grep vpnservice" command in karaf console and verifies the logs for session initiation
31 Wait Until Keyword Succeeds 240 seconds 30 seconds Check Karaf Log Has Messages vpnservice @{MESSAGE_STRING_LIST}
33 Uninstall the VPN Service Features
34 [Documentation] Uninstalls the VPN Service feature by executing command "feature:uninstall <feature name>" in karaf console
35 [Tags] Uninstall VPN features
36 : FOR ${feature} IN @{FEATURE_LIST}
37 \ ${output}= Issue Command On Karaf Console feature:uninstall ${feature} timeout=30 seconds
39 Verify if the VPN Service features are uninstalled
40 [Documentation] Executes command "feature:list -i | grep <feature name>" in karaf console and checks if the output does not contain the specific features
41 [Tags] Verify No Feature
42 : FOR ${feature} IN @{FEATURE_LIST}
43 \ Verify Feature Is Not Installed ${feature}
45 Verify if the VPN Bundles are not loaded
46 [Documentation] Executes "bundle:list -s | grep <bundle name>" command and checks if the output does not contain the specific bundles.
47 [Tags] Verify No Bundles
48 : FOR ${bundle} IN @{BUNDLE_LIST}
49 \ Verify Bundle Is Not Installed ${bundle}