23 Commits

Author SHA1 Message Date
Tong Liu
dcb7f8b0b8 Tempest: Update nsxv3_client to query more than 1k
The maximum page size is 1k in nsxv3 API response. Current read
logical resources only return maximum 1k. Change the nsxv3 client
to read all of the logical resources.

The update applies to GET API calls of logical resources.

Change-Id: I4d1f51c900e5ca89f1da8a5df13a535991765720
2016-09-27 20:47:17 +00:00
Tong Liu
019525b07b Tempest: Add native DHCP methods in NSXv3 client
To support Native DHCP test cases, add the following methods to
nsxv3 service client.
 - get_logical_dhcp_servers
 - get_logical_dhcp_server
 - get_dhcp_server_static_bindings

Change-Id: I595525370982e85d00b433e163c9d9c1dd0f843b
2016-08-22 22:42:44 +00:00
Jenkins
ef7c8fe01e Merge "Tempest: Network tags clients, CRUD and Filter testing" 2016-08-16 22:01:02 +00:00
Alex Kang
13c7e22179 Tempest: Network tags clients, CRUD and Filter testing
1. implement tags_client, complying to tempest framework
2. test tag-add CRUD operation
3. test tag-remove CRUD operation
4. test tag-replace CRUD operation
5. test filtering networks with combination of
   tags querying parameters:
       tags,
       tags-any,
       not-tags and
       not-tags-any

Change-Id: I0c4583dcdc77a402e597a249b419e37a06d18dfc
2016-08-11 09:33:12 -07:00
Jenkins
5e284c601c Merge "Tempest: Providing support for disable spoofguard feature" 2016-08-03 19:26:47 +00:00
Adit Sarfaty
7a9336f09f Fix xenial pep8 problems - add translations
Change-Id: Ib37f13cecd1078adb00227d604bfe02ccc1527ab
2016-08-01 08:42:01 +03:00
Puneet Arora
f530d93864 Tempest: Providing support for disable spoofguard feature
Added scenario testcase for disable spoofguard feature.

Change-Id: Ifd741e7fbc4a5fa6a577864bdf98eaad9082b876
2016-07-26 14:43:59 +00:00
Alex Kang
8dca2a4031 Tempest: Support lbaas api & scenario tests to run against upstream
NSX-v lbaas requires lbaas's network attached to an exclusive router.
To run lbaas tests on upstream implemantion, we need to remove
rotuer_type attributes at creating router.

Fixed lbaas API:
  delete-all load-balanacer resources without deleting listeners.
  wait for status function is now at load_balancers client.

Lbaas scenario tests replace urllib2 with urllib3.

Change-Id: Ief935eff8007c4c46115309f55ab3447ce146340
2016-07-01 10:47:10 -07:00
Jenkins
684ce0d3ae Merge "Tempest: Providing support for dhcp-121 feature" 2016-06-21 19:51:59 +00:00
Puneet Arora
866c222a18 Tempest: Providing support for dhcp-121 feature
Added scenario testcases for dhcp-121 feature.

Change-Id: I0a37500bd947c87fbbb6c21daf9de44d286a1792
2016-06-10 11:36:45 +00:00
Alex Kang
d5debdfafd Tempest: QoS clients and API CRUD operation tests
1. Port QoS clients from neutron qos and compliys with
   tempest network service client format.

2. Port QoS API tests from neutron qos to be part of
   vmware_nsx_tempest test suites.

3. Both NSX-v and NSX-t support QoS.

Change-Id: I20c90229a733b1b3a9ec4a623493298ec96c663b
2016-06-06 17:06:19 -07:00
Alex Kang
ba444fc48f Tempest: lbaasv2 scenario http round-robin operation test
Basic lbaasv2 ROUND_ROUBIN http forwording testing.

Add method wait_for_load_balancers_status which must
be called by every lbaasv2 resource update/delete to
indicate lbaasv2 operation is completed.

Change-Id: Ie04e7f4b864d74833d9ac4da9a17c0ff8749a082
2016-05-16 15:51:01 -07:00
Gary Kotton
85cf627540 Cleanup script: fix typo
Change-Id: I9977c2929f6171e59775efb07c2e4255149402ab
2016-05-10 19:45:09 -07:00
ZhiQiang Fan
417b736b63 [Trivial] Remove unnecessary executable privilege
vmware_nsx_tempest/services/nsxv3_client.py is a module, not a
scripts, hence no need to set it to be execuable.

Change-Id: Id8f361777cf4be096df687258eb070bba930c5d0
2016-04-29 23:41:45 +08:00
Devang Doshi
c12b31ee03 Tempest: Added L2GW API tests
- Restructured function to reuse some of the function in various module
- Move pass and fail test verification within the test functions.
- Added L2GW connection API tests
- Added negative test cases

Change-Id: I9ac67b8ae0473dfc5b855744d2a4ca429b0045a6
2016-04-19 20:01:47 +00:00
Alex Kang
95fb8acd92 [Tempest]: initial lbaasv2 clients and API tests
Ported LBaasV2 clients and API tests from repo neutron_lbaas.

1. LBaasV2 core network is updated to reflect that nsxv
   requiring subnet attached to exclusive router.
2. Modified to comply with tempest service client standard.
3. bugs opened to trace differences against upstream
   1638148, 1637877, 1638571(p0), 1639223,
   1638601(p0), 1639340, 1641643, 1641652, 1641902

Change-Id: I46d9dec3e8e23b9df6561acecf929fc0fd99686b
2016-04-14 14:27:35 +00:00
Devang Doshi
44db5342af Tempest: Adding l2gw test
Added L2 gateway API tests into tempest.
Test l2 gateway create,
Test l2 gateway create with segmentation id,
Test l2 gateway delete,
Test l2 gateway update interface,
Test l2 gateway update l2gw name,
test l2 gateway show

Change-Id: Ibfd08960bb0828b4a7b1fe7c84b4abef1e22723f
2016-03-21 19:33:06 +00:00
Gary Kotton
1a09c24120 Tempest: fix broken tempest tests
Commit f70a4e48f58818d04bcd1f25ca94e3e5d5a9f858 broke the tempest
tests.

Change-Id: Iedc053b6bfa24fc38d0e2230f2bd66098d1f296b
2016-03-13 06:41:14 -07:00
Tong Liu
c760363d83 Used warning instead of warn
To be compatible with python 3, use LOG.warning instead of warn.

Change-Id: If8e93b79824f565152ab7366d39313026b2daf50
2016-03-11 22:43:38 +00:00
Tong Liu
cf38354175 Tempest: change tempest_lib to tempest.lib
Due to a recent upstream change, tempest project switched to
using in-tree tempest lib instead of tempest_lib. We need to
change our NSX tempest plugin test to use in-tree tempest lib too.

Upstream change:
https://review.openstack.org/#/c/284911

Fixes-Bug: #1552453

Change-Id: I522d234d948f5b7a6f70dec69c98c44eb5d7582f
2016-03-03 00:49:37 +00:00
Tong Liu
d8569bb7ee Add method to get firewall rule in nsxv3 client
Add a method in nsxv3 client to get firewall rule in a firewall
section based on name. The name of the firewall rule is the uuid
of the security group rule created from OpenStack.

Change-Id: I33c9c44cfd716cb91579b598ba8fbcc777f2c467
2016-02-03 04:52:19 +00:00
Tong Liu
09e0257cbf Add nsxv3 client for vmware_nsx_tempest
To run NSX tempest test cases, we need a NSX client to communicate
with NSX backend. Right now it supports the current NSX resource
    - logical switch
    - firewall section
    - nsgroup
    - logical router

Change-Id: I15f3a0bc659d0b2c417e0b14a062ee536b5fb967
2016-01-28 23:20:56 +00:00
Alex Kang
00c98dce02 init release of vmware-nsx tempest tests in tempest external plugin
installation procedure & tech-notes at vmware_nsx_tempest/README.rst
With this plugin method, vmware_nsx_tempest tests can be treated as
tempest tests and executed under tempest environment.

Fix nsxv_client to support multiple transport zones.

Change-Id: Id103c0ce03d75749fe6295108db48493f565b05a
Implements:  blueprint vmware-nsx-tempest-plugin
2016-01-21 10:02:00 -08:00