Deepthi Kandavara Jayarama a11efec55f [IPv6] Adding nsxp api port related tests for ipv6
Currently the tests are added for static ipv6 addressing
root@prome-mdt-dhcp412:/opt/stack/tempest# ostestr --pdb vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest                          /usr/local/lib/python2.7/dist-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a 2.7.x release that supports hmac.compare_digest as soon as possible.
  utils.PersistentlyDeprecated2018,
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_create_ipv6_port_allowed_allocation_pools [7.504976s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_create_port_with_no_securitygroups [7.530035s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_create_show_delete_port_user_defined_mac [5.459784s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_list_ports [0.352664s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_port_list_filter_by_ip [11.957026s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_port_list_filter_by_router_id [15.339687s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_show_port [0.316986s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_show_port_fields [0.288886s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_update_port [8.879776s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_update_port_with_security_group_and_extra_attributes [9.210824s] ... ok
{0} vmware_nsx_tempest_plugin.tests.nsxv3.api.test_nsx_ipv6_ports.IPv6PortsTest.test_update_port_with_two_security_groups_and_extra_attributes [9.983922s] ... ok

======
Totals
======
Ran: 11 tests in 87.0000 sec.
 - Passed: 11

Change-Id: Ia093a4b31bfe3581045a3cb153aad22a148cb46b
2019-04-10 16:03:44 +00:00
2018-07-31 09:09:52 -06:00
2018-07-31 09:09:52 -06:00
2018-06-17 10:41:00 +00:00
2018-09-30 09:44:18 +08: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_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
Description
A Tempest plugin to test Neutron VMware NSX plugin.
Readme 4 MiB
Languages
Python 100%