diff options
author | Yiting.Li <liyiting@huawei.com> | 2016-01-22 10:46:57 +0800 |
---|---|---|
committer | Jun Li <matthew.lijun@huawei.com> | 2016-01-25 01:30:21 +0000 |
commit | 07fa6d43cf0ac1baf3cd67e741f474273fbd387d (patch) | |
tree | 17ed17fa64b121bd5189070f46e14db336a50bd4 /vstf/vstf/agent/env/plugins | |
parent | 486719ea0024e683f4e90832e647becf3d5d5ab7 (diff) |
JIRA: BOTTLENECKS-29
Add a end-to-end test framework
delete the wrong author flag and fix some missing of the copy right
Change-Id: Ia9f72ff3e523f05cd0d5e32e3349a3f6acad5bd1
Signed-off-by: Yiting.Li <liyiting@huawei.com>
(cherry picked from commit 0ea3b714615e7a9383048a13695bbe4d62f028fd)
Diffstat (limited to 'vstf/vstf/agent/env/plugins')
-rwxr-xr-x | vstf/vstf/agent/env/plugins/Readme | 49 | ||||
-rw-r--r--[-rwxr-xr-x] | vstf/vstf/agent/env/plugins/__init__.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | vstf/vstf/agent/env/plugins/libvirt_plugin.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | vstf/vstf/agent/env/plugins/model.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | vstf/vstf/agent/env/plugins/tester_env_plugin.py | 0 |
5 files changed, 0 insertions, 49 deletions
diff --git a/vstf/vstf/agent/env/plugins/Readme b/vstf/vstf/agent/env/plugins/Readme deleted file mode 100755 index a2879ba0..00000000 --- a/vstf/vstf/agent/env/plugins/Readme +++ /dev/null @@ -1,49 +0,0 @@ -All the plugins should subclass EnvBuilderPlugin from "model.py". - -The EnvBuilderPlugin is a template class with a template algorithm: - - def __init__(self, ): - pass - @abstractmethod - def clean(self): - #clean Environment before goes further. - @abstractmethod - def install(self): - #install network virtualization software from source code. - @abstractmethod - def load_drivers(self): - #loads drivers for network card. - @abstractmethod - def create_brs(self): - #creates virtual switches. - @abstractmethod - def config_br_ports(self): - #config the vlan property for vswitch ports. - def create_vms(self): - #create vms - def wait_vms(self): - #wait vm to boot up and config vm for ips and other configurations. - def check_vm_connectivity(self): - #check if the vms correctly setup the control panel ips. - def build(self, cfg_intent): - self.host_cfg = cfg_intent #please retrieve options from self.host_cfg for your use in other methods. - self.clean() - self.download_and_compile() - self.load_drivers() - self.create_brs() - self.create_vms() - self.wait_vms() - self.config_tap_vlans() - self.check_vm_connectivity() - -You should implements the abstract methods left empty, however you can make some methods do nothing to skip steps.. - -The plugin receives a "cfg_intent", The "cfg_intent" is a python dict parsed from a env-build configuration file. - -It contains the detail configurations for the plugin to build a "virtual network" for testing. - -There are some example json config files for building different type of "virtual network" under "etc/vstf/env" that you can refer to. - -Before you creates a new plugin, you should make sure you understand these json config file properly. - - diff --git a/vstf/vstf/agent/env/plugins/__init__.py b/vstf/vstf/agent/env/plugins/__init__.py index 83b8d15d..83b8d15d 100755..100644 --- a/vstf/vstf/agent/env/plugins/__init__.py +++ b/vstf/vstf/agent/env/plugins/__init__.py diff --git a/vstf/vstf/agent/env/plugins/libvirt_plugin.py b/vstf/vstf/agent/env/plugins/libvirt_plugin.py index 27af8063..27af8063 100755..100644 --- a/vstf/vstf/agent/env/plugins/libvirt_plugin.py +++ b/vstf/vstf/agent/env/plugins/libvirt_plugin.py diff --git a/vstf/vstf/agent/env/plugins/model.py b/vstf/vstf/agent/env/plugins/model.py index b19ceb96..b19ceb96 100755..100644 --- a/vstf/vstf/agent/env/plugins/model.py +++ b/vstf/vstf/agent/env/plugins/model.py diff --git a/vstf/vstf/agent/env/plugins/tester_env_plugin.py b/vstf/vstf/agent/env/plugins/tester_env_plugin.py index 0682aac8..0682aac8 100755..100644 --- a/vstf/vstf/agent/env/plugins/tester_env_plugin.py +++ b/vstf/vstf/agent/env/plugins/tester_env_plugin.py |