A Tempest plugin to test Neutron VMware NSX plugin.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Shubham Naik 7f0b225e83 Updated MAC Learning Case with Platform(MP & Policy) verification & Explicit Wait
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_mac_learning.NSXv3MacLearningTest.test_create_update_delete_mac_learning_port [160.803813s] ... ok

Change-Id: I298ea1ff9902b42eb031411dca8b2b13b9edc67b
1 year ago
doc Patch for P0 of allowed address cidr 2 years ago
releasenotes Tempest: 1st patch after using cookiecutter to split in-tree project 6 years ago
vmware_nsx_tempest_plugin Updated MAC Learning Case with Platform(MP & Policy) verification & Explicit Wait 1 year ago
.gitignore setup project for pypi releases 5 years ago
.gitreview OpenDev Migration Patch 4 years ago
.stestr.conf refactor top-level pkg to vmware_nsx_tempest_plugin 5 years ago
.testr.conf refactor top-level pkg to vmware_nsx_tempest_plugin 5 years ago
.zuul.yaml P0 testcase Automation of NAT and Firewall order feature 3 years ago
CONTRIBUTING.rst Tempest: 1st patch after using cookiecutter to split in-tree project 6 years ago
HACKING.rst Tempest: 1st patch after using cookiecutter to split in-tree project 6 years ago
LICENSE Tempest: 1st patch after using cookiecutter to split in-tree project 6 years ago
README.rst refactor top-level pkg to vmware_nsx_tempest_plugin 5 years ago
babel.cfg Tempest: 1st patch after using cookiecutter to split in-tree project 6 years ago
lower-constraints.txt Patch for P0 of allowed address cidr 2 years ago
requirements.txt update hacking and bandit 4 years ago
setup.cfg P0 testcase Automation of NAT and Firewall order feature 3 years ago
setup.py Updated from global requirements 5 years ago
test-requirements.txt Patch for P0 of allowed address cidr 2 years ago
tox.ini P0 testcase Automation of NAT and Firewall order feature 3 years ago

README.rst

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_plugin successfully do:

    $ 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

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_plugin.*test_l2_gateway
$ ostestr vmware_nsx_tempest_plugin.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