Deepthi Kandavara Jayarama bbf75de11d [Bug:2088241] Modified code to reflect upstream
Base class : BaseAdminNetworkTest in create and delete network
root@localhost:/tmp/jenkins/workspace/end2end-precommit/tempest# ./tools/with_venv.sh stestr run vmware_nsx_tempest.tests.dvs.api.test_networks_admin_actions.AdminNetworksTestJSON
{0} vmware_nsx_tempest.tests.dvs.api.test_networks_admin_actions.AdminNetworksTestJSON.test_create_update_delete_flat_network_subnet [4.502624s] ... ok
{0} vmware_nsx_tempest.tests.dvs.api.test_networks_admin_actions.AdminNetworksTestJSON.test_create_update_delete_vlan_network_subnet [3.449882s] ... ok
{0} vmware_nsx_tempest.tests.dvs.api.test_networks_admin_actions.AdminNetworksTestJSON.test_list_networks [0.147079s] ... ok
{0} vmware_nsx_tempest.tests.dvs.api.test_networks_admin_actions.AdminNetworksTestJSON.test_show_network [0.112556s] ... ok
{0} vmware_nsx_tempest.tests.dvs.api.test_networks_admin_actions.AdminNetworksTestJSON.test_show_subnet [0.615493s] ... ok

======
Totals
======
Ran: 5 tests in 27.0000 sec.
 - Passed: 5
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 0
Sum of execute time for each test: 8.8276 sec.

Change-Id: Iea50f16e1c427e82f91405d1909a50dae800b930
2018-04-09 22:39:22 +00:00

Welcome!

vmware-nsx-tempest-plugin

Tempest plugin vmware-nsx-tempest-plugin

This repo hosts vmware-nsx's functional api and scenario tests.

vmware-nsx is Vmware plugin for neutron. This repo is tempest plugin to test vmware-nsx at function level. All vmware-nsx-tempest-plugin tests are in "master" branch. Some of the tests are designed based on N-S traffic. Intstall thsi repo on external VM to run entire test suite.

Features:

  • API tests
  • Scenario tests

Overview:

Installation:

  1. On your own development folder, for example /opt/stack/, install your own tempest development env at /opt/stack/tempest/:

    $ cd /opt/stack
    $ git clone https://github.com/openstack/tempest
  2. Install virtualenv with the following command:

    $ cd /opt/stack/tempest
    $ ./run_tempest.sh -u not_exist_tests
  3. Install vmware-nsx-tempest-plugin master branch at /opt/stack:

    $ cd /opt/stack
    $ git clone https://github.com/openstack/vmware-nsx-tempest-plugin.git
  4. Install vmware-nsx-tempest-plugin in your tempest development environment:

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

    Run command:

    $ pip show vmware-nsx-tempest-plugin

    You should observe the following statements:

    Location: /opt/stack/vmware-nsx-tempest-plugin
  5. Validate installed vmware_nsx_tempest successfully do:

    $ cd /opt/stack/vmware-nsx-tempest-plugin
    $ ostestr -l vmware_nsx_tempest
    $ ostestr vmware_nsx_tempest.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

Your installation failed, if no tests are shown.

Execution:

vmware-nsx-tempest tests are tempest tests, you need to run from tempest directory. For example, to run only l2-gateway tests:

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

TechNote on vmware-nsx-tempest-plugin:

vmware-nsx-tempest-plugin is a plugin to tempest, not neutron, nor vmware-nsx. It is defined by tempest.test_plugins.

Modules within vmware-nsx-tempest can not see resources defined by vmware-nsx. Commands like following will not work, unless vmware-nsx is installed in your tempest environment:

import vmware_nsx.shell.admin.plugins.common.utils as admin_utils
Description
A Tempest plugin to test Neutron VMware NSX plugin.
Readme 4 MiB
Languages
Python 100%