X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2FRobot_Tool%2Flibraries%2FContainerManager.py;fp=test%2Ftools%2FRobot_Tool%2Flibraries%2FContainerManager.py;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=e40a422b1d67507a54e63774721cabe36607dbb2;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/tools/Robot_Tool/libraries/ContainerManager.py b/test/tools/Robot_Tool/libraries/ContainerManager.py deleted file mode 100644 index e40a422b1d..0000000000 --- a/test/tools/Robot_Tool/libraries/ContainerManager.py +++ /dev/null @@ -1,56 +0,0 @@ -""" -CSIT test tools. -Authors: Baohua Yang@IBM, Denghui Huang@IBM -Updated: 2013-11-01 -""" - -import sys - -sys.path.append('..') -from restlib import * # noqa -from testmodule import TestModule - -sys.path.remove('..') - - -class ContainerManager(TestModule): - """ - Test for the container manager. - Start 2-layer tree topology network. e.g., in Mininet, run - 'sudo mn --controller=remote,ip=127.0.0.1 --mac --topo tree,2' - """ - - def __init__(self, restSubContext='/controller/nb/v2/containermanager', user=DEFAULT_USER, password=DEFAULT_PWD, - container=None, contentType='json', prefix=DEFAULT_PREFIX): - super(self.__class__, self).__init__(restSubContext, user, password, container, contentType, prefix) - - def get_containers(self): - """ - The name is suggested to match the NB API. - Show the containers - """ - return super(self.__class__, self).get_entries('containers') - - def add_container(self, name, body): - """ - Add a container - """ - super(self.__class__, self).add_entry('container', name, body) - - def remove_container(self, name): - """ - Remove a container - """ - super(self.__class__, self).remove_entry('container', name) - - def test_container_operations(self, name, body): - """ - Test subnet operations, like adding and removeing a subnet. - >>> ContainerManager().test_container_operations('cont1', - {'container':'cont1','flowSpecs': [], 'staticVlan':'10','nodeConnectors':[ - "OF|1@OF|00:00:00:00:00:00:00:01", - "OF|23@OF|00:00:00:00:00:00:20:21"]}) - True - """ - return super(self.__class__, self).test_add_remove_operations('containers', 'container', name, body, - 'containerConfig')