Remove code for capwap 08/109308/9
authorOleksandr Zharov <oleksandr.zharov@pantheon.tech>
Wed, 13 Dec 2023 14:40:15 +0000 (15:40 +0100)
committerVenkatrangan Govindarajan <gvrangan@gmail.com>
Fri, 16 Feb 2024 09:14:40 +0000 (09:14 +0000)
Removed code for no more active capwap project.

JIRA: INTTEST-140
Change-Id: I5fe8c87f146e0a41b67c92aa8e6c734ca5946baa
Signed-off-by: Oleksandr Zharov <oleksandr.zharov@pantheon.tech>
csit/libraries/CapwapLibrary.py [deleted file]
csit/suites/capwap/basic/capwap_session.robot [deleted file]
csit/testplans/capwap-ac.txt [deleted file]

diff --git a/csit/libraries/CapwapLibrary.py b/csit/libraries/CapwapLibrary.py
deleted file mode 100644 (file)
index 0a1e63e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-"""
-Library for the robot based system test tool of the OpenDaylight project.
-Authors: Vaibhav Bhatnagar@Brocade
-Updated: 2015-06-01
-"""
-import socket
-
-from robot.libraries.BuiltIn import BuiltIn
-
-
-class CapwapLibrary(object):
-    """Provide many methods to simulate WTPs and their functions."""
-
-    def __init__(self):
-        self.builtin = BuiltIn()
-
-    def send_discover(self, ac_ip, wtp_ip="", ip="ip", port=5246):
-        """Send Discover CAPWAP Packet from a WTP."""
-        data = "".join(
-            chr(x)
-            for x in [
-                0x00,
-                0x20,
-                0x01,
-                0x02,
-                0x03,
-                0x04,
-                5,
-                6,
-                7,
-                8,
-                9,
-                10,
-                11,
-                12,
-                13,
-                14,
-                15,
-                16,
-            ]
-        )
-        self.builtin.log("Sending Discover Packet to: %s" % ac_ip, "DEBUG")
-        session = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
-        session.sendto(data, (ac_ip, port))
-        self.builtin.log("Packet Sent", "DEBUG")
-
-    def get_hostip(self):
-        """Get Host IP Address."""
-        ip_addr = socket.gethostbyname(socket.gethostname())
-        return ip_addr
-
-    def get_simulated_wtpip(self, controller):
-        """Get the Simulated WTP ip based on the controller."""
-        if controller == "127.0.0.1":
-            exp_ip = controller
-        else:
-            exp_ip = self.get_hostip()
-        return exp_ip
diff --git a/csit/suites/capwap/basic/capwap_session.robot b/csit/suites/capwap/basic/capwap_session.robot
deleted file mode 100644 (file)
index b731cf1..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-*** Settings ***
-Documentation       Test suite for capwap discover functionality
-
-Library             RequestsLibrary
-Library             ../../../libraries/Common.py
-Variables           ../../../variables/Variables.py
-Resource            ../../../libraries/Utils.robot
-Library             Collections
-Library             ../../../libraries/CapwapLibrary.py
-
-Suite Setup         Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
-Suite Teardown      Delete All Sessions
-
-
-*** Variables ***
-${DISC_WTP_REST}    /restconf/operational/capwap-impl:capwap-ac-root/
-
-
-*** Test Cases ***
-Get Discovered WTPs
-    [Documentation]    Get the WTP Discoverd
-    send discover    ${ODL_SYSTEM_IP}
-    Wait Until Keyword Succeeds    10s    5s    Run Test Get Discovered WTP
-
-Get Specific WTP
-    [Documentation]    Get the details of specific WTP.
-    send discover    ${ODL_SYSTEM_IP}
-    Wait Until Keyword Succeeds    10s    5s    Run Test Get Specifc WTP
-
-
-*** Keywords ***
-Run Test Get Discovered WTP
-    ${resp}    RequestsLibrary.Get Request    session    ${DISC_WTP_REST}
-    Log    ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    200
-    ${result}    TO JSON    ${resp.content}
-    ${ac_Root}    Get From Dictionary    ${result}    capwap-ac-root
-    @{wtp_discovered}    Get From Dictionary    ${ac_Root}    discovered-wtps
-    ${expected_ip_addr}    get simulated wtpip    ${ODL_SYSTEM_IP}
-    ${wtp_ip_list}    Create List    ''
-    FOR    ${wtp}    IN    @{wtp_discovered}
-        ${wtp_ip}    Get From Dictionary    ${wtp}    ipv4-addr
-        Append to List    ${wtp_ip_list}    ${wtp_ip}
-    END
-    Log    ${wtp_ip_list}
-    List Should Contain Value    ${wtp_ip_list}    ${expected_ip_addr}
-
-Run Test Get Specifc WTP
-    ${expected_ip_addr}    get simulated wtpip    ${ODL_SYSTEM_IP}
-    ${DISC_SPECIFIC_WTP}    catenate
-    ...    SEPARATOR=
-    ...    ${DISC_WTP_REST}
-    ...    discovered-wtps\/
-    ...    ${expected_ip_addr}
-    ...    \/
-    Log    ${DISC_SPECIFIC_WTP}
-    ${resp}    RequestsLibrary.Get Request    session    ${DISC_SPECIFIC_WTP}
-    Log    ${resp.content}
-    Should Be Equal As Strings    ${resp.status_code}    200
-    ${result}    TO JSON    ${resp.content}
-    @{wtp_discovered}    Get From Dictionary    ${result}    discovered-wtps
-    ${wtp_ip_list}    Create List    ''
-    FOR    ${wtp}    IN    @{wtp_discovered}
-        ${wtp_ip}    Get From Dictionary    ${wtp}    ipv4-addr
-        Append to List    ${wtp_ip_list}    ${wtp_ip}
-    END
-    Log    ${wtp_ip_list}
-    List Should Contain Value    ${wtp_ip_list}    ${expected_ip_addr}
diff --git a/csit/testplans/capwap-ac.txt b/csit/testplans/capwap-ac.txt
deleted file mode 100644 (file)
index e1f3131..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# Place the suites in run order:
-integration/test/csit/suites/capwap/basic