Move Honeycomb libraries to honeycomb subdirectory. 50/1050/2
authorTibor Frank <tifrank@cisco.com>
Tue, 10 May 2016 12:50:41 +0000 (14:50 +0200)
committerMatej Klotton <mklotton@cisco.com>
Wed, 11 May 2016 10:36:20 +0000 (10:36 +0000)
- move all Honeycomb related libraries written in python to new
  directory resources/libraries/python/honeycomb
- update all related includes in all source files

Change-Id: Ifa96b8f670b456b14421929d6020ddf8e02d9cbc
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/libraries/python/honeycomb/HcAPIKwBridgeDomain.py [moved from resources/libraries/python/HcAPIKwBridgeDomain.py with 97% similarity]
resources/libraries/python/honeycomb/HcAPIKwInterfaces.py [moved from resources/libraries/python/HcAPIKwInterfaces.py with 99% similarity]
resources/libraries/python/honeycomb/HoneycombSetup.py [moved from resources/libraries/python/HoneycombSetup.py with 97% similarity]
resources/libraries/python/honeycomb/HoneycombUtil.py [moved from resources/libraries/python/HoneycombUtil.py with 100% similarity]
resources/libraries/python/honeycomb/__init__.py [new file with mode: 0644]
resources/libraries/robot/honeycomb/bridge_domain.robot
resources/libraries/robot/honeycomb/honeycomb.robot
resources/libraries/robot/honeycomb/interfaces.robot

@@ -17,11 +17,12 @@ The keywords make possible to put and get configuration data and to get
 operational data.
 """
 
-
 from resources.libraries.python.HTTPRequest import HTTPCodes
-from resources.libraries.python.HoneycombSetup import HoneycombError
-from resources.libraries.python.HoneycombUtil import HoneycombUtil as HcUtil
-from resources.libraries.python.HoneycombUtil import DataRepresentation
+from resources.libraries.python.honeycomb.HoneycombSetup import HoneycombError
+from resources.libraries.python.honeycomb.HoneycombUtil \
+    import DataRepresentation
+from resources.libraries.python.honeycomb.HoneycombUtil \
+    import HoneycombUtil as HcUtil
 
 
 class BridgeDomainKeywords(object):
@@ -17,11 +17,12 @@ The keywords make possible to put and get configuration data and to get
 operational data.
 """
 
-
 from resources.libraries.python.HTTPRequest import HTTPCodes
-from resources.libraries.python.HoneycombSetup import HoneycombError
-from resources.libraries.python.HoneycombUtil import HoneycombUtil as HcUtil
-from resources.libraries.python.HoneycombUtil import DataRepresentation
+from resources.libraries.python.honeycomb.HoneycombSetup import HoneycombError
+from resources.libraries.python.honeycomb.HoneycombUtil \
+    import DataRepresentation
+from resources.libraries.python.honeycomb.HoneycombUtil \
+    import HoneycombUtil as HcUtil
 
 
 class InterfaceKeywords(object):
 
 from robot.api import logger
 
-from resources.libraries.python.topology import NodeType
-from resources.libraries.python.ssh import SSH
 from resources.libraries.python.HTTPRequest import HTTPRequest, HTTPCodes, \
     HTTPRequestError
-from resources.libraries.python.HoneycombUtil import HoneycombUtil as HcUtil
-from resources.libraries.python.HoneycombUtil import HoneycombError
 from resources.libraries.python.constants import Constants as Const
+from resources.libraries.python.honeycomb.HoneycombUtil import HoneycombError
+from resources.libraries.python.honeycomb.HoneycombUtil \
+    import HoneycombUtil as HcUtil
+from resources.libraries.python.ssh import SSH
+from resources.libraries.python.topology import NodeType
 
 
 class HoneycombSetup(object):
diff --git a/resources/libraries/python/honeycomb/__init__.py b/resources/libraries/python/honeycomb/__init__.py
new file mode 100644 (file)
index 0000000..c35326d
--- /dev/null
@@ -0,0 +1,16 @@
+# Copyright (c) 2016 Cisco and/or its affiliates.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+__init__ file for directory resources/libraries/python/honeycomb
+"""
index da3ae0a..a3f695c 100644 (file)
@@ -13,9 +13,9 @@
 
 *** Settings ***
 | Library | resources.libraries.python.L2Util
-| Library | resources.libraries.python.HcAPIKwBridgeDomain.BridgeDomainKeywords
-| Library | resources.libraries.python.HcAPIKwInterfaces.InterfaceKeywords
-| ... | WITH NAME | InterfaceAPI
+| Library | resources.libraries.python.honeycomb.HcAPIKwBridgeDomain.BridgeDomainKeywords
+| Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords
+| ...     | WITH NAME | InterfaceAPI
 
 *** Keywords ***
 | Honeycomb creates first L2 bridge domain
index 54aff2f..c71d6a7 100644 (file)
@@ -12,9 +12,8 @@
 # limitations under the License.
 
 *** Settings ***
-| Library | resources/libraries/python/HoneycombSetup.py
-| Library | resources/libraries/python/HoneycombUtil.py
-| Library | resources/libraries/python/HTTPRequest.py
+| Library | resources/libraries/python/honeycomb/HoneycombSetup.py
+| Library | resources/libraries/python/honeycomb/HoneycombUtil.py
 
 *** Keywords ***
 | Setup Honeycomb service on DUTs
index f98cca0..d27aff4 100644 (file)
 # limitations under the License.
 
 *** Settings ***
-| Library | resources/libraries/python/HoneycombUtil.py
+| Library | resources/libraries/python/honeycomb/HoneycombUtil.py
 | Library | resources.libraries.python.InterfaceUtil
-| ... | WITH NAME | interfaceCLI
-| Library | resources.libraries.python.HcAPIKwInterfaces.InterfaceKeywords
-| ... | WITH NAME | InterfaceAPI
+| ...     | WITH NAME | interfaceCLI
+| Library | resources.libraries.python.honeycomb.HcAPIKwInterfaces.InterfaceKeywords
+| ...     | WITH NAME | InterfaceAPI
 
 *** Keywords ***
 | Interface state is

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.