X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FIoTDM%2FIoTDMKeywords.robot;h=3f39a51b8a5b5f886a6beb73d654833ce4e7321d;hb=e2c94012be3706110b79ccca3dcb5aceefacfbfb;hp=d1f9952473d98433ee9b1814225f5326eb8cbfa5;hpb=6dc280a7073f76ee7fb2412261d07a0d7bbd9944;p=integration%2Ftest.git diff --git a/csit/libraries/IoTDM/IoTDMKeywords.robot b/csit/libraries/IoTDM/IoTDMKeywords.robot index d1f9952473..3f39a51b8a 100644 --- a/csit/libraries/IoTDM/IoTDMKeywords.robot +++ b/csit/libraries/IoTDM/IoTDMKeywords.robot @@ -1,6 +1,8 @@ *** Settings *** Documentation Keywords specific for IoTDM test suites. Library ./criotdm.py +Library OperatingSystem +Library iotdm_comm.py *** Variables *** @@ -10,3 +12,21 @@ IOTDM Basic Suite Setup [Documentation] Set up basic test suite ${iserver} = Connect To Iotdm ${odl_ip_address} ${odl_user_name} ${odl_password} http Set Suite Variable ${iserver} + +Resolve Local Ip Address + [Documentation] Retrieve list of IP addresses of local host, try to find IP address accessible from the + ... host where tested ODL system is running and set it as global variable named local_ip + ${ip_list} OperatingSystem.Run hostname -I + Log iotdm_ip: ${ODL_SYSTEM_1_IP} + Log hostname -I: ${ip_list} + ${local_ip} = Get Local Ip From List ${ODL_SYSTEM_1_IP} ${ip_list} + Set Global Variable ${local_ip} + Log local_ip: ${local_ip} + +Connect And Provision cseBase + [Documentation] Connects to IoTDM RESTCONF interface and provisions cseBase resource InCSE1 + Connect To Iotdm ${ODL_SYSTEM_1_IP} ${ODL_RESTCONF_USER} ${ODL_RESTCONF_PASSWORD} + +Clear The Resource Tree + [Documentation] Connects to IoTDM RESTCONF interface and clears whole resource tree + Kill The Tree ${ODL_SYSTEM_1_IP} InCSE1 ${ODL_RESTCONF_USER} ${ODL_RESTCONF_PASSWORD}