Compare commits

...

13 Commits

Author SHA1 Message Date
OpenDev Sysadmins
61e1043ab0 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:44:48 +00:00
Ian Wienand
1331280bcc 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: Ie2b740b1c47c23a45a1448c6e853f02a33d466ce
2019-03-24 20:35:53 +00:00
Doug Hellmann
48cc4a0d84 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If5f03c92870e3d136893a3ede345fbcd81f10692
Story: #2002586
Task: #24314
2018-08-29 17:43:15 -04:00
Pavlo Shchelokovskyy
0e0e408048 Fix Pike gates
this patch is a combined collection of a number of fixes:

- use Zuul's CI user instead of hardcoded `jenkins`
- comply with new PTI re documentation building
- Pin pycodestyle to <=2.3.1
  2.4.0 breaks pep8 tests on stable branches,
  just pin in to known working verison instead of style changes accross project.
  This package is blacklisted in g-r so that each project can choose
  to enforce its own code style version.
- do not fail if pip has nothing to install inside a pre-built tox env

Change-Id: Ib98ea9e423338c3ebc9b697d74574866008d36e6
2018-05-03 09:53:57 +03:00
OpenStack Proposal Bot
e145c4ef8a Updated from global requirements
Change-Id: I8e40c8df14399fa08de2c3cb3d69599be26f9a19
2017-09-21 01:06:36 +00:00
Jenkins
68c2bd3e89 Merge "Update UPPER_CONSTRAINTS_FILE for stable/pike" into stable/pike 2017-08-23 16:10:47 +00:00
Jenkins
8332743f19 Merge "Updated from global requirements" into stable/pike 2017-08-16 17:48:56 +00:00
Jenkins
0af60a0dee Merge "Define shell.COMMANDS explicitly to avoid random UT failure" into stable/pike 2017-08-16 17:47:46 +00:00
Akihiro Motoki
a0893c32c7 Define shell.COMMANDS explicitly to avoid random UT failure
Mocking non-existing attribute causes UT failure.
As a result, neutronclient UT fails depending on
executing order of tests.

Change-Id: Id047527fba9e908938f7157781fb0e36e76011c7
Closes-Bug: #1709652
(cherry picked from commit 4c3fbe2639)
2017-08-12 20:27:50 +00:00
OpenStack Proposal Bot
9cc1f064c2 Updated from global requirements
Change-Id: I6f4d7ea7df8cf635607299f92f2144798d3db768
2017-08-11 19:05:34 +00:00
Igor Duarte Cardoso
69e97e204d Add missing correlation type "mpls" to port pair
Add missing correlation type "mpls" to Port Pair create
command's help (PortPairCreate).

The merged Port Pair command was still using the older help
description, before MPLS correlation support was merged to
networking-sfc.

Also add unit test coverage for correlation type "mpls".

Closes-Bug: #1708968
Change-Id: I708345b25b600ca94504725f1559988ae29413b8
(cherry picked from commit ff86783fd4)
2017-08-11 15:45:59 +00:00
ca278c5dab Update UPPER_CONSTRAINTS_FILE for stable/pike
Change-Id: I09b70282ea375b5bd56f156539b240d1c42b7198
2017-07-28 21:47:51 +00:00
171febb51e Update .gitreview for stable/pike
Change-Id: I2bab471aeb243bdbdfc5143c9dd8a71dc3449e50
2017-07-28 21:47:51 +00:00
14 changed files with 98 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
[gerrit]
host=review.openstack.org
host=review.opendev.org
port=29418
project=openstack/python-neutronclient.git
defaultbranch=stable/pike

47
.zuul.yaml Normal file
View File

@@ -0,0 +1,47 @@
- project:
templates:
- openstack-python-jobs
- openstack-python35-jobs
- publish-openstack-sphinx-docs
- check-requirements
- lib-forward-testing
- release-notes-jobs
- openstackclient-plugin-jobs
check:
jobs:
- legacy-neutronclient-test-dsvm-functional:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^neutron/locale/.*$
- ^releasenotes/.*$
- legacy-neutronclient-test-dsvm-functional-adv-svcs:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^neutron/locale/.*$
- ^releasenotes/.*$
gate:
jobs:
- legacy-neutronclient-test-dsvm-functional:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^neutron/locale/.*$
- ^releasenotes/.*$
- legacy-neutronclient-test-dsvm-functional-adv-svcs:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- ^neutron/locale/.*$
- ^releasenotes/.*$
post:
jobs:
- openstack-tox-cover
experimental:
jobs:
- legacy-grenade-dsvm-neutron-libs:
irrelevant-files:
- ^(test-|)requirements.txt$
- ^setup.cfg$

7
doc/requirements.txt Normal file
View File

@@ -0,0 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
openstackdocstheme>=1.16.0 # Apache-2.0
reno!=2.3.1,>=1.8.0 # Apache-2.0
sphinx>=1.6.2 # BSD

View File

@@ -58,8 +58,8 @@ class CreateSfcPortPair(command.ShowOne):
action=parseractions.MultiKeyValueAction,
optional_keys=['correlation', 'weight'],
help=_('Dictionary of service function parameters. '
'Currently, only correlation=None and weight '
'is supported. Weight is an integer that influences '
'Currently, correlation=(None|mpls) and weight '
'are supported. Weight is an integer that influences '
'the selection of a port pair within a port pair group '
'for a flow. The higher the weight, the more flows will '
'hash to the port pair. The default weight is 1.'))

View File

@@ -103,6 +103,9 @@ def check_non_negative_int(value):
return value
COMMANDS = {}
# NOTE(amotoki): This is only to provide compatibility
# to existing neutron CLI extensions. See bug 1706573 for detail.
def _set_commands_dict_for_compat(apiversion, command_manager):

View File

@@ -1,2 +1,2 @@
enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas
enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas
enable_service q-fwaas

View File

@@ -31,8 +31,8 @@ function generate_test_logs {
function generate_testr_results {
# Give job user rights to access tox logs
sudo -H -u $owner chmod o+rw .
sudo -H -u $owner chmod o+rw -R .testrepository
sudo -H -u $USER chmod o+rw .
sudo -H -u $USER chmod o+rw -R .testrepository
if [ -f ".testrepository/0" ] ; then
.tox/$VENV/bin/subunit-1to2 < .testrepository/0 > ./testrepository.subunit
$SCRIPTS_DIR/subunit2html ./testrepository.subunit testr_results.html
@@ -48,9 +48,8 @@ function generate_testr_results {
}
export NEUTRONCLIENT_DIR="$BASE/new/python-neutronclient"
owner=jenkins
sudo chown -R $owner:stack $NEUTRONCLIENT_DIR
sudo chown -R $USER:stack $NEUTRONCLIENT_DIR
# Go to the neutronclient dir
cd $NEUTRONCLIENT_DIR
@@ -60,7 +59,7 @@ VENV=${1:-"functional"}
echo "Running neutronclient functional test suite"
set +e
# Preserve env for OS_ credentials
sudo -E -H -u $owner tox -e $VENV
sudo -E -H -u $USER tox -e $VENV
EXIT_CODE=$?
set -e

View File

@@ -1 +1 @@
enable_plugin neutron-vpnaas git://git.openstack.org/openstack/neutron-vpnaas
enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas

View File

@@ -81,16 +81,17 @@ class TestCreateSfcPortPair(fakes.TestNeutronClientOSCV2):
self.assertEqual(self.columns, columns)
self.assertEqual(self.data, data)
def test_create_port_pair_all_options(self):
def _test_create_port_pair_all_options(self, correlation):
arglist = [
"--description", self._port_pair['description'],
"--egress", self._port_pair['egress'],
"--ingress", self._port_pair['ingress'],
self._port_pair['name'],
"--service-function-parameters", 'correlation=None,weight=1',
"--service-function-parameters",
'correlation=%s,weight=1' % correlation,
]
sfp = [{'correlation': 'None', 'weight': '1'}]
sfp = [{'correlation': correlation, 'weight': '1'}]
verifylist = [
('ingress', self._port_pair['ingress']),
@@ -109,12 +110,19 @@ class TestCreateSfcPortPair(fakes.TestNeutronClientOSCV2):
'egress': self._port_pair['egress'],
'description': self._port_pair['description'],
'service_function_parameters':
[{'correlation': 'None', 'weight': '1'}],
[{'correlation': correlation, 'weight':
'1'}],
}
})
self.assertEqual(self.columns, columns)
self.assertEqual(self.data, data)
def test_create_port_pair_all_options(self):
self._test_create_port_pair_all_options('None')
def test_create_port_pair_all_options_mpls(self):
self._test_create_port_pair_all_options('mpls')
class TestDeleteSfcPortPair(fakes.TestNeutronClientOSCV2):

View File

@@ -11,7 +11,7 @@ oslo.i18n!=3.15.2,>=2.1.0 # Apache-2.0
oslo.serialization!=2.19.1,>=1.10.0 # Apache-2.0
oslo.utils>=3.20.0 # Apache-2.0
os-client-config>=1.28.0 # Apache-2.0
keystoneauth1>=3.0.1 # Apache-2.0
keystoneauth1>=3.1.0 # Apache-2.0
# keystoneclient is used only by neutronclient.osc.utils
# TODO(amotoki): Drop this after osc.utils has no dependency on keystoneclient
python-keystoneclient>=3.8.0 # Apache-2.0

View File

@@ -386,12 +386,6 @@ neutron.cli.v2 =
vpn-ikepolicy-delete = neutronclient.neutron.v2_0.vpn.ikepolicy:DeleteIKEPolicy
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc/source
warning-is-error = 1
[wheel]
universal = 1

View File

@@ -8,15 +8,13 @@ fixtures>=3.0.0 # Apache-2.0/BSD
flake8-import-order==0.12 # LGPLv3
mox3!=0.19.0,>=0.7.0 # Apache-2.0
mock>=2.0 # BSD
openstackdocstheme>=1.11.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
osprofiler>=1.4.0 # Apache-2.0
python-openstackclient!=3.10.0,>=3.3.0 # Apache-2.0
python-openstackclient>=3.11.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
reno!=2.3.1,>=1.8.0 # Apache-2.0
requests-mock>=1.1 # Apache-2.0
sphinx>=1.6.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
testscenarios>=0.4 # Apache-2.0/BSD
tempest>=16.1.0 # Apache-2.0
pycodestyle<=2.3.1

View File

@@ -33,7 +33,7 @@ elif [ -x "$ZUUL_CLONER" ]; then
$ZUUL_CLONER --cache-dir \
/opt/git \
--branch $BRANCH_NAME \
git://git.openstack.org \
https://git.openstack.org \
openstack/requirements
cd openstack/requirements
$install_cmd -e .
@@ -51,5 +51,10 @@ fi
# install will be constrained and we need to unconstrain it.
edit-constraints $localfile -- $CLIENT_NAME "-e file://$PWD#egg=$CLIENT_NAME"
$install_cmd -U $*
if [ -z "$@" ]; then
echo "No packages to be installed."
exit 0
fi
$install_cmd -U "$@"
exit $?

10
tox.ini
View File

@@ -12,7 +12,7 @@ setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
usedevelop = True
install_command =
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike} {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
# Delete bytecodes from normal directories before running tests.
@@ -47,9 +47,17 @@ commands =
coverage report
[testenv:docs]
# The upper constraints are handled by tox_install.sh script
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
# The upper constraints are handled by tox_install.sh script
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]