vmware-nsx/vmware_nsx_tempest
ghanshyam b4de6bb5d4 Fix to use correct config options for image_ssh_user
image_ssh_user config options under compute group have been
deprecated since 1 year and it has been under new group validation.

Tempest will remove the deprecated config options soon.

This commit use the config options from correct group.

This is needed in ocata as tempest is branch less and those config
options would not be available for ocata branch.

Change-Id: Ia46b4a0c2f7038b78b24e4bf58c7c1be4f02e91a
(cherry picked from commit Ia46b4a0c2f7038b78b24e4bf58c7c1be4f02e91a)
2017-03-24 01:04:11 +00:00
..
common Tempest: Added MDProxy scenario test cases 2016-12-16 10:49:31 -08:00
doc tempest: lbaas l7 switching scenario tests 2016-10-18 13:12:28 +00:00
services Fix vmware_nsx tempest plugin 2017-01-18 18:57:33 +00:00
tests Fix to use correct config options for image_ssh_user 2017-03-24 01:04:11 +00:00
README.rst Use https for *.openstack.org references 2017-02-06 15:45:18 -08:00
__init__.py init release of vmware-nsx tempest tests in tempest external plugin 2016-01-21 10:02:00 -08:00
_i18n.py init release of vmware-nsx tempest tests in tempest external plugin 2016-01-21 10:02:00 -08:00
config.py Merge "Stop adding ServiceAvailable group option" 2017-01-25 21:48:51 +00:00
plugin.py Use https for *.openstack.org references 2017-02-06 15:45:18 -08:00

README.rst

Welcome!

vmware_nsx_tempest is a plugin module to openstack tempest project.

If you are not familiar with tempest, please refer to:

https://docs.openstack.org/developer/tempest

It is implemented with tempest external plugin. The official design sepcification is at:

https://review.openstack.org/#/c/184992/

Overview

vmware_nsx_tempest hosts vmware_nsx's functional api and scenario tests.

All vmware_nsx_tempest tests are in "master" branch. For this reason, it is recommended to have your own developer version of vmware-nsx repo installed outside the devstack folder, /opt/stack/.

For example at /opt/devtest folder. In doing so, you can install editable vmware-nsx repo under tempest VENV environemnt.

Installation:

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

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

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

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

    $ cd /opt/devtest/os-tempest
    $ source .venv/bin/activate
    $ pip install -e /opt/devtest/vmware-nsx/

    Run command:

    $ pip show vmware-nsx

    You should observe the following statements:

    Location: /opt/devtest/vmware-nsx

    and under section of Entry-points:

    [tempest.test_plugins]
    vmware-nsx-tempest-plugin = vmware_nsx_tempest.plugin:VMwareNsxTempestPlugin
  5. Validate installed vmware_nsx_tempest successfully do:

    $ cd /opt/devtest/os-tempest
    $ tools/with_venv.sh testr list-tests vmware_nsx_tempest.*l2_gateway

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/devtest/os-tempest
$ ./run_tempest.sh -t vmware_nsx_tempest.*test_l2_gateway
$ ./run_tempest.sh -d vmware_nsx_tempest.tests.nsxv.api.test_l2_gateway_connection.L2GatewayConnectionTest.test_csuld_single_device_interface_vlan

TechNote on vmware_nsx_tempest:

vmware_nsx_tempest 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 are not acceptable, unless vmware_nsx is installed in your tempest environment:

from vmware_nsx._i18n import _LE
import vmware_nsx.shell.admin.plugins.common.utils as admin_utils

TechNote on logging:

tempest repo itself does not enforce LOG complying to _i18n. So for tempest tests for vmware-nsx, that is vmware_nsx_tempest, use LOG.debug() command.

However, if you need to log other than debug level, please do:

from vmware_nsx_tempest._i18n import _LI
from vmware_nsx_tempest._i18n import _LE
from vmware_nsx_tempest._i18n import _LW

Customize it depending on the log level your scripts will use.