跳转到主要内容

Tempest插件vmware-nsx-tempest-plugin

项目描述

欢迎!

vmware-nsx-tempest-plugin

Tempest插件vmware-nsx-tempest-plugin

此仓库托管vmware-nsx的功能API和场景测试。

vmware-nsx是用于neutron的Vmware插件。此仓库是用于在功能级别测试vmware-nsx的tempest插件。所有vmware-nsx-tempest-plugin测试都在“master”分支中。其中一些测试是基于N-S流量的。将此仓库安装在外部VM上以运行整个测试套件。

特性

  • API测试

  • 场景测试

概述

安装

  1. 在您自己的开发文件夹中,例如/opt/stack/,在/opt/stack/tempest/安装您自己的tempest开发环境。

    $ cd /opt/stack
    $ git clone https://github.com/openstack/tempest
  2. 使用以下命令安装virtualenv:

    $ cd /opt/stack/tempest
    $ ./run_tempest.sh -u not_exist_tests
  3. 在/opt/stack安装vmware-nsx-tempest-plugin的master分支

    $ cd /opt/stack
    $ git clone https://github.com/openstack/vmware-nsx-tempest-plugin.git
  4. 在您的tempest开发环境中安装vmware-nsx-tempest-plugin

    $ cd /opt/stack
    $ sudo pip install -e vmware-nsx-tempest-plugin

    运行以下命令

    $ pip show vmware-nsx-tempest-plugin

    您应该会看到以下信息

    Location: /opt/stack/vmware-nsx-tempest-plugin
  5. 验证安装的vmware_nsx_tempest_plugin成功

    $ cd /opt/stack/vmware-nsx-tempest-plugin
    $ ostestr -l vmware_nsx_tempest_plugin
    $ ostestr vmware_nsx_tempest_plugin.tests.nsxv3.scenario.test_mdproxy.TestMDProxy.test_mdproxy_ping
    $ python -m testtools.run vmware_nsx_tempest.tests.nsxv3.scenario.test_mdproxy.TestMDProxy.test_mdproxy_ping

如果没有显示测试,则安装失败。

执行

vmware-nsx-tempest测试是tempest测试,您需要从tempest目录运行。例如,仅运行l2-gateway测试

$ cd /opt/stack/tempest
$ ostestr vmware_nsx_tempest_plugin.*test_l2_gateway
$ ostestr vmware_nsx_tempest_plugin.tests.nsxv.api.test_l2_gateway_connection.L2GatewayConnectionTest.test_csuld_single_device_interface_vlan

关于vmware-nsx-tempest-plugin的技术笔记

vmware-nsx-tempest-plugin是tempest的插件,而不是neutron或vmware-nsx。它由tempest.test_plugins定义。

vmware-nsx-tempest中的模块无法看到由vmware-nsx定义的资源。以下命令将无法正常工作,除非在您的tempest环境中安装了vmware-nsx

import vmware_nsx.shell.admin.plugins.common.utils as admin_utils

项目详情


下载文件

下载适合您平台的文件。如果您不确定要选择哪个,请了解更多关于安装包的信息。

源代码分发

vmware-nsx-tempest-plugin-1.0.0.tar.gz (284.0 kB 查看哈希值)

上传时间 源代码

构建分发

vmware_nsx_tempest_plugin-1.0.0-py2-none-any.whl (391.6 kB 查看哈希值)

上传时间 Python 2

支持者

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误日志StatusPageStatusPage状态页面