Commit Graph

8 Commits

Author SHA1 Message Date
Ian Wienand bc94150974 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: I77ef82065c0ae1f6250f46f41840372b01adf541
2019-03-24 20:34:50 +00:00
lihaijing f1e54d1a7f Replace assertTrue(isinstance()) with assertIsInstance()
Some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by test tools.
And add some relevant hacking files.

Change-Id: I4b154a2e2898e316c61decf856547d57b1dcc2f8
2017-10-11 04:30:08 +00:00
Sanket 92ee8cde01 Cleanup unused requirements from Omni
Consolidating all python requirements required to run unit tests
in test-requirements.txt. Removed rest of all files.

Change-Id: Ifed7288e2b1d92fb180cb8c722578e9887f6f844
2017-09-11 09:39:39 +05:30
Pratik Shah 264939cfb5 Applied pep8 fixes
Closes-Bug: #1703514

Change-Id: I89c25bd9e678dc2f7cc27f952aa4833e26c90f4a
2017-07-24 16:25:25 +05:30
Pratik Shah 84b9c632f5 Modified tox.ini to clone repos using zuul-cloner
Replaced "," with "%" in logs statement for files:
- cinder/volume/drivers/aws/ebs.py
- cinder/volume/drivers/gce/gceutils.py
- glance/glance_store/_drivers/aws.py
- neutron/neutron/common/gceutils.py
- neutron/neutron/plugins/ml2/drivers/gce/mech_gce.py
- neutron/neutron/plugins/ml2/managers.py
- neutron/neutron/services/l3_router/gce_router_plugin.py
- nova/virt/ec2/ec2driver.py
- nova/virt/gce/driver.py
- nova/virt/gce/gceutils.py

Added import fix in nova/tests/unit/virt/ec2/test_ec2.py

Modified run_tests.sh to get total number of passed and failed tests

Closes-Bug: #1704147

Change-Id: I4b144b8095cf9ff4807c4b9f4ca21577a43de27f
2017-07-14 13:19:22 +05:30
Sanket 8eacfa7e4b Enable flake8 checks with tox
1. Report all style checks with source.
2. Also enable additional helper checks providined in openstack-dev/hacking.

To run pep checks:
tox -e pep8

Change-Id: I46f020bafcea97305d4dc03a3c34040e0d70092a
2017-07-11 00:13:20 +05:30
Pratik Shah ece3139e2d Added a fix to run this script from zuul.
Description:
- While running tests using zuul, we are cloning repositories inside zuul configuration.
To handle this, created "clone_repos.sh" which contains cloning logic.

Change-Id: Ic94df88f48d147c190fd9699aeebb13b6adb156f
2017-06-29 11:45:25 +00:00
Pratik Shah 699caafaa0 Added tox integration to run unit tests for Omni project.
Description:

1. Fixed file paths in Nova, Neutron according to actual Openstack repository.
2. tox.ini: init file to run to tox command
3. run_tests.sh: actual script to run unit tests
4. omni-requirements.txt: Contains Python packages from Nova, Glance, Neutron and Cinder

Usage:
To run unit tests, execute 'tox -epy27' command in Omni project directory.

Change-Id: Ife3a5d4c009198fb46faff7a21525dd739a87e9c
2017-06-19 16:17:03 +05:30