77 Commits

Author SHA1 Message Date
Zuul
c24c85c441 Merge "Fix some formatting issues in TESTING.rst" 2019-04-25 12:10:35 +00:00
Brian Haley
733d12991a Fix some formatting issues in TESTING.rst
Noticed when I copied a lot of this content over to
the networking-ovn repo.

Change-Id: I4e06cc15e4a30bf66c181d5ac729263b1efd605a
2019-04-24 11:36:01 -04:00
ZhongShengping
161e6b80f0 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: Ifc446e00d7f69cb23411b3a50c8d880c719f1e73
2019-04-23 10:00:45 +08:00
Ian Wienand
983d659d76
Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I4c9b513eb65ec4c50bdb9a66dfcc676360bdaa28
2019-03-25 11:31:17 +01:00
Doug Wiegley
55f2336981
Add method to tox to use local neutron-lib with unit tests
Change-Id: Ic96bb04cc3f9ed1438596b2150030ab22887b091
2019-03-02 14:56:15 -07:00
Lajos Katona
e4feed0af2 doc: Small clearances for fullstack testing
In TESTING.rst the section for fullstack testing is quite usefull, but
things changed, so small additions seems to be necessary:
* The QoS test referenced as good example no more exists.
* Small things to the how to run fullstack tests section to make clear
what kind of prerequisites are necessary on a freshly started new VM.

Change-Id: I7621d1d76fd94d6766fbe8db11a1466fcedb73ab
2018-09-05 09:40:07 +02:00
Zuul
5a9f82f087 Merge "Docs: Update API & Scenario Tests" 2018-08-16 09:34:21 +00:00
Dongcan Ye
9ea9163689 Docs: Update API & Scenario Tests
Add neutron-tempest-plugin project requirement, and add
examples for running individual test modules or tests.

TrivialFix

Change-Id: I9f2ad39d17646ddf5d4a1804982832f58ec2574a
2018-08-16 01:43:52 +00:00
Dongcan Ye
b4d3dbc835 Docs: Fix wrong stestr argument
Since ec537c49e9c599127e29dce0702b28fd0fa0a577 switched stestr,
regex argument will no longer support, this patch update
the test docs.

Change-Id: I3dea71143fc4568b1e4aaf8386d45a3dd62b69b2
2018-07-17 09:45:43 +00:00
tianhui
424848e743 Fix bug to doc:testing
There is a wrong url in the doc and amends it

Change-Id: I07b4e6a4a37ff9c4477b91030360277659e4fbe8
2018-06-08 11:22:41 +08:00
Jakub Libosvar
de6a7a9413 Update docs about openvswitch compilation
We stopped compiling openvswitch for ovs-fw tempest job with
change Idc34776e5b2fad105e246f7718220c23f0a94164. This patch updates
docs to reflect that.

Change-Id: I9fb962aee9a817c40aad37a37c582cb511d358c0
2018-05-24 15:57:18 +02:00
Zuul
6674ac5a2a Merge "Trivial: Update pypi url to new url" 2018-05-14 18:38:24 +00:00
Tovin Seven
aed28094fc Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: Ief56da9a7187cee9ff74d3323ab1081e5a9ec55e
2018-05-11 17:03:48 -04:00
Brian Haley
1b75c7cf9e Update fullstack section in TESTING.rst
In order to run the fullstack tests correctly, you must
first run "export VENV=dsvm-fullstack" so that it does
some extra steps.  Added it to the TESTING.rst file and
updated some of the text in the fullstack section as well.

Change-Id: Iad2683dfc2d63fa23096d40c01000d8ac285176a
2018-05-10 17:42:51 -04:00
Zuul
2076d0a9b5 Merge "Docs: Update tempest test directory" 2018-02-14 16:14:24 +00:00
IWAMOTO Toshihiro
46d693530b Compile ovs for ovsfw to avoid ovs-vswitchd core dumps
Change-Id: I750224f7495aa46634bec1211599953cbbd4d1df
Closes-bug: #1742863
2018-02-13 10:18:31 +09:00
Dongcan Ye
23ab8bd1d3 Docs: Update tempest test directory
Since we switched tempest test to neutron-tempest-plugin,
some of descriptions need updates.

TrivialFix

Change-Id: I52e31d2237bb571cfbe9643c3c8d364824f6bfd0
2018-02-12 12:05:08 +00:00
Ihar Hrachyshka
99a12a2392 docs: clarify wording about how to use advanced glance image
This is to follow up on comments in
https://review.openstack.org/#/c/469838/

Change-Id: I59a0f63e56d972a2fadf5a4e0bf531ccf4da8dba
2017-08-01 08:56:45 -07:00
Dongcan Ye
d1f858b96d docs: Fix in TESTING.rst
Change-Id: I01c3016a7bdc9979756260759fc0ff8d4fd3f454
2017-07-30 10:48:06 +08:00
Jenkins
ef4119f83a Merge "[Tempest] Running Trunk test with advanced image only" 2017-07-28 11:17:09 +00:00
Genadi Chereshnya
314277286d [Tempest] Running Trunk test with advanced image only
1)Adding 'image_is_advanced' option to tempest config, so you can
run specific tests with images that are not cirros.
2)Adding decorator to run 'subport_connectivity' test with such
image for VLAN aware VM feature.
3)Configuring gate to run trunk test with ubuntu image only
4) Updating release notes and TESTING.rst with the change

Change-Id: Ie15b0e79c6ea320322b2815fb8afbc8ec95f853a
2017-07-25 10:21:58 -07:00
Akihiro Motoki
d3c393ff6b Update the documentation link for doc migration
* Update the URLs affected by the doc-migration
  (/developer/<project>/ to <project>/latest/)
* Follow content rearrangement
* Convert links to local documents into :doc: or :ref:
* Use https instead of http for the updated links on docs.openstack.org.

Part of the doc-migration work.

Change-Id: I62e317d9198f175a43d73bbfd419b6878de90d5a
2017-07-22 18:46:13 +09:00
Akihiro Motoki
eee9d2ca80 docs: Fix indent level
Leading spaces before item lists leads to vertical line
on the left side. They are completely unnecessary.

Change-Id: I08c3f077e470aa593076a525de1445bc5d0bdb9a
2017-06-16 08:21:56 +09:00
Akihiro Motoki
a23cd43abe docs: reorganize developer reference for new theme
openstackdocstheme generates the toc tree in the left sidebar
based on the page hierarchy from the top page.
The previous developer guide hirarchy is a bit deep, and
this commit reorganizes the devref pages for better navigation
with openstackdocstheme.

Change-Id: I1412b047efc1c268b34ef97e78073da7bcbb6d7e
2017-06-16 08:21:56 +09:00
Jenkins
b6bd475629 Merge "api-tests: Common way to define required extensions" 2017-06-08 18:31:59 +00:00
Ihar Hrachyshka
6cfe39708f Fixed docs job failure
Removed one orphan reference of unclear value (pudb), and moved another
one into the text itself. This allows to pass gate with new sphinx.

Change-Id: I943d9b0904731ebcc4d3fd3a9b686fd08b03c48b
Closes-Bug: #1694614
2017-05-31 07:39:11 -07:00
Jakub Libosvar
814fbc0501 api-tests: Common way to define required extensions
As some tests require extensions to be enabled on the server, this patch
introduces a new class attribute to the API base class. If any extension
defined in test class is not enabled on the server, then all tests in
the test class will be skipped.

Change-Id: I0629153f973daeb3bef3a6968360cbc2d427f9ad
2017-05-30 15:37:16 +00:00
Jakub Libosvar
648936b8c8 docs: Update TESTING.rst about openvswitch requirements
Since we switched to use Ubuntu Cloud Archives in upstream gate, the
note in TESTING.rst is not longer valid for the gate. The condition to
trigger the test still remains in order to avoid false negative test
results for those that run functional tests with older openvswitch
version.

Change-Id: Ibff983efe0f452864d003913205cbbfa39ee7374
2017-04-19 07:57:17 +00:00
Jakub Libosvar
b96029f6a2 docs: Update TESTING.rst with gate information about ovs
We used to compile from source for functional and fullstack jobs. For
functional job we skip single test and avoid compiling. We still do
compile from source for fullstack job. This patch adds justification to
TESTING.rst document.

Change-Id: I60c272bba6fa9eeefa29dfa4faa69433989efde2
2017-04-12 16:31:31 +00:00
yuhui_inspur
d5c3361753 Fix some grammatical errors in TESTING.rst
TrivialFix.

Change-Id: I1a0c2b2da9d6ae0a52028420a98f5ae17e8d6855
2017-04-09 19:31:26 +00:00
Jenkins
e2550837bb Merge "TrivialFix: Modify the spelling mistake" 2017-02-03 09:59:05 +00:00
Yushiro FURUKAWA
e1f43a673e Fix typo
Trivial fix

Change-Id: Ia6b25c8b91db5efa839e1077c224c5c679c1f07e
2017-01-04 14:37:29 +09:00
Armando Migliaccio
76c9984426 Fix docs headers
Ic68858aaf1a519085dff394e6edc8c8fe6aeee6a forgot to move these
sections one level up. Without this, tox -edocs barfs.

Change-Id: I649ba20013ccbe25023b2c8c3a2014fb7be47d97
2016-11-30 11:54:34 -08:00
Jenkins
f6199da7c9 Merge "Deprecate run_tests.sh" 2016-11-22 06:08:21 +00:00
Armando Migliaccio
f5e30abcc5 Add rally hook to neutron devstack plugin
This allows us to configure neutron when running the rally job in
the gate. This effort stems from patch [1]. Blame Kevin for not
wanting to squash the two together.

[1] I12aaf6121b677e9696131601b3539a7091e2858c
Change-Id: I006957784ac7900021bcfee57cbc83b5a6c533c4
2016-11-10 07:44:28 +00:00
Henry Gessau
e8e4e5d7ab Deprecate run_tests.sh
We support tox for testing.
We don't maintain anything else.
In the Pike release we will remove the script.

Change-Id: Ic68858aaf1a519085dff394e6edc8c8fe6aeee6a
2016-11-08 03:50:20 +00:00
lilintan
26050562ca TrivialFix: Modify the spelling mistake
Change-Id: I07bd96de0dd1f89b66b3a4fd2bed0f222c237fb8
2016-10-27 11:52:17 +00:00
Ihar Hrachyshka
31e1aeb66b Forbid importing neutron.tests.* from outside tests subtree
neutron-sanity-check tool was importing neutron.tests.base module, which
may be not present on some systems (f.e. RDO splits neutron/tests/
subtree in a separate python-neutron-tests package). It made the tool
not usable in some setups.

https://bugzilla.redhat.com/show_bug.cgi?id=1374282

This is not the first time when we by mistake import from
neutron.tests.* and break distributions. It's time to stop it by
proactively forbidding that pattern via a new hacking check.

Some functions were moved from neutron.tests.base to
neutron.common.utils to fulfill the need requirement. They were moved
using debtcollector, no current consumers should be affected.

Closes-Bug: #1621782
Change-Id: I790777ddcbd1b02218b3db54ae3d5c931d72d4fa
2016-09-15 18:42:45 +00:00
Carl Baldwin
98838c491a Add information about using file based sqlite for unit tests
This is helpful when you want to inspect the database when sitting at
a break-point in a unit test.

Change-Id: Id4e25ef980437fe160822c3598135aa220127ac8
2016-07-25 23:54:38 +00:00
Itzik Brown
707363fea0 Adding basic connectivity scenario to Neutron
A Basic scenario:
- Creates an internal network and a subnet
- Creating a key pair
- Creating a router, setting the gateway and adding an
  internal interface
- Lauching an instance with a Nic connected to the internal network
- Adding rules to the tenant's default security group to allow SSH
  and ICMP
- Creating and associating a Floaing IP to the instance
- Checking SSH connectivity to the instance Floating IP address

Change-Id: Ica6fef4763b6f98c7795629b99ab392e6f7b6e59
Co-Authored-By: John Schwarz <jschwarz@redhat.com>
2016-06-02 13:39:25 -04:00
Assaf Muller
8adc737cd1 Delete post_test_hook.generate_test_logs
Log files as .txt files, don't zip them, and put them where
they need to be instead of copy them there in the post gate
hook. The benefit to doing this is that we'll get logs
for tests even if the job timed out.

Change-Id: I4bfd27534c827aed3cbd7b43d7d1289480ea4806
Related-Bug: #1567668
2016-05-04 11:11:46 -04:00
Armando Migliaccio
965e1d18a7 Move away from invoking api tests explicitly
Since adoption of the Tempest plugin framework, this
extra plumbing is no longer necessary in tree.

Related-bug: 1555356

Depends-on: If5f7ea82c45494953452f728fabb7403d0b6e14e
Change-Id: I5377f33c5a7b29f97f00878e048d154378a4fe34
2016-04-15 17:13:59 +00:00
Daniel Mellado
c56918027a Use tempest plugin interface
Make use of the Tempest plugin interface instead of copying Neutron
files into Tempest. This will remove the burden to port Neutron
tests onto Tempest master recurrently.

It uses neutron/tests/tempest/ as new top folder for all Tempest
tests. It follows the model of Heat [1].

[1]: https://github.com/openstack/heat/tree/master/heat_integrationtests

Partially implements bp external-plugin-interface

Change-Id: Ia233aa162746845f6ae08a8157dcd242dcd58eab
2016-04-14 15:19:14 +02:00
Jenkins
4f8050b172 Merge "Fix typos in Neutron documentation" 2016-04-02 19:11:00 +00:00
Jenkins
5bee125bff Merge "Add fullstack logging" 2016-03-30 14:38:03 +00:00
Nguyen Hung Phuong
0f15c461d7 Fix typos in Neutron documentation
This patch fixes typos in Neutron documentation.

Change-Id: I3a7d7e7c6c9623412781dab021e4de95a46b7851
2016-03-25 16:26:04 +00:00
Nate Johnston
c064258886 Note fullstack depends on released neutronclient
Note in TESTING.rst that fullstack tests that depend on changes to
python-neutronclient to execute need to wait until there is a released
version of python-neutronclient before they will work in the gate.

Change-Id: I1d32c65f0c941cf8f163a441258faa34b50ff88f
2016-03-24 11:10:19 -04:00
Assaf Muller
8603ea6340 Add fullstack logging
We currently don't log everything being output from the test
runner, only what the processes themselves are logging.

Change-Id: Id5fb9cd44a0ed677a03da1d153ee3079fd5b7975
2016-03-23 11:37:56 -04:00
Assaf Muller
ddd5df9526 Delete 118~ API tests from Neutron
Deleted tests that duplicate tests from Tempest, according to the
new criteria specified in TESTING.rst.

Follow up steps are detailed here:
https://etherpad.openstack.org/p/neutron-tempest-defork

For reviewers, here's how to get a complete list of network
tests from Tempest. From a Tempest directory, execute:
testr list-tests tempest.api.network | cut -d"[" -f1 | cut -d"." -f4-
I verified that every test removed here actually exists in that list.

Here's a list of patches that modified tests after the fork:
https://etherpad.openstack.org/p/neutron-tempest-defork-patches-since-initial-sync

And the list of tests we care about:
https://etherpad.openstack.org/p/neutron-tempest-defork, Ctrl-F for:
'Tests that should be synced from Neutron'

Related-bug: #1552960

Change-Id: I685291058f221a7ef0b5b7485280cdabceaa4af3
2016-03-10 15:34:08 -05:00
Sławek Kapłoński
2254acef06 Add fullstack resources for linuxbridge agent
This patch adds resources, fixtures and base test_connectivity tests
for host with linuxbridge agent.

Model of host with linuxbridge agent is made in separate namespace
named "host-XXX". It has got connectivity with rabbit via ovs port.
Same port is used also to provide connectivity with different "hosts"

Co-Authored-By: Mathieu Rohon <mathieu.rohon@gmail.com>

Change-Id: I6230d8d09f77bd20674bf6c3be69fbc1627d66f8
Closes-bug: #1518675
2016-02-19 13:12:25 +00:00