| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
in 'victoria' cycle, we should test py38 by default.
Change-Id: I91257def33d99a0fdebdf01e60e9e031104e81bd
|
|
|
|
|
|
|
|
|
| |
The repo is Python 3 now, so update hacking to version 3.1.0 which
supports Python 3.
Fix problems found.
Change-Id: I54f9f7c5f6ee87ee886658388541f45e23c7546d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OpenStack is dropping the py2.7 support in ussuri cycle.
python-barbicanclient is ready with python 3 and ok to drop the
python 2.7 support.
Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
Change-Id: Id55914141099650752027aa9dc0ad8a90528a2e9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a `pdf-docs` tox target that will build
PDF versions of our docs. As per the Train community goal:
https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
Add sphinxcontrib-svg2pdfconverter to doc/requirements.txt
to convert our SVGs.
Update docs requirement as well to follow PTI.
Change-Id: I0b866b2e57557290533ee7e7e162e56c9c17cf54
Story: 2006072
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There were two main issues here. Firstly, a function was being
documented as a class, resulting in:
WARNING: error while formatting arguments for barbicanclient.client.Client:
'function' object has no attribute '__mro__'
Secondly, a docstring for a common function had an incorrect field list
format, resulting in:
docstring of barbicanclient.v1.acls.SecretACL.get:4: WARNING: Field list
ends without a blank line; unexpected unindent
docstring of barbicanclient.v1.acls.ContainerACL.get:4: WARNING: Field list
ends without a blank line; unexpected unindent
Resolve both.
Change-Id: I69ef97cb48c6b5a1add4e89c4a53047420d314f4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I91a737a5a204bc202faadccd22bafa4aee5e7332
Story: #2002586
|
|
|
|
|
|
|
|
|
| |
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
targets.
Change-Id: I413110b14dfe294c8a51c1dc23232bd4f09619dd
Closes-Bug: #1802030
|
|
|
|
|
|
|
|
| |
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: Idf3ecc193e91c65010a0de08a02e01efcf1bd3a7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When passing a UUID to the client, use the Barbican endpoint from
the service catalog to fetch the entity. When passing an href, strip
everything before the UUID and use it the same as a passed UUID.
This allows for service usage when secrets are created with a public
endpoint but must be retrieved from an internal or admin endpoint,
and is probably how all usage should have worked to begin with.
Change-Id: I90778a2eeefc4cfe42b0e2a48ba09036e3e6d83d
Story: 2003197
Task: 23353
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I872ea4b71f35c5bad53fe1bcf2a50a6f21b8f9ee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
|/
|
|
|
|
|
|
|
|
| |
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I3597edc56ac5115347baaf72af72b071976468e7
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I3d437112f47074e7cd91cac798bd83cfb7c4bfed
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Running py2* post py3* tests results in error.
Add 'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Closes-Bug: #1565928
Change-Id: I31fa34e48f24014885668c249eaf8bb62b70fadc
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I39ad6aa578434d803d481d67c4ae67f06e376834
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
Change-Id: I8bdd2912638e497f3ade79967136d1d6924574f5
|
|/
|
|
|
|
|
|
|
|
|
| |
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I600fa540b45e8dfddb18c36cae778fcddccff705
|
|
|
|
|
|
|
|
| |
We just run pep8 test on barbicanclient directory and functionaltests
directory is not included. This patch extends pep8 test coverage and
removes the script for running pep8 test.
Change-Id: I2b4fe6fadd69884c749a91b390297600bfa40182
|
|
|
|
|
|
|
|
|
|
|
| |
Flake8 was configured to ignore F and H rules, which are the PyFlakes
rules and OpenStack hacking rules.
H202 (tests for the too-general Exception used with assertRaises) is
still ignored because some code actually throws a generic Exception
and so the unit test must check that Exception is raised.
Change-Id: I4c4b67631547cd2db784936287355968a6d3b6c7
|
|
|
|
|
|
| |
Set test directory to `barbicanclient/tests` to be more specific
Change-Id: I158720ee08317b4b84c81438eff675c4d5a7258c
|
|
|
|
|
|
|
|
| |
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: If9a737676cd82f5e2170042da71f241ff35a0edb
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.
Change-Id: Ifbd1147a3c8c4d6fa745d210d37a90f5ae8321dd
|
|/
|
|
|
|
| |
As openstack/common file is not there in repo.
Change-Id: I0cb6b2c16c3de95fa6b8f08d92850bfa9ca882ab
|
|
|
|
|
|
|
|
|
| |
Since the python-barbicanclient itself is in upper-constraints.txt now,
in CI job, we should remove it from the constraints file before applying it,
otherwise pip will fail due to python-barbicanclient version conflict.
Change-Id: I980a85a3b5cc21d2a5029b0e9d8ac2932aa15ba6
Closes-bug: #1614361
|
|
|
|
|
|
|
| |
Coverage combine deletes reports and thus jenkins failed
saying `no data to report`, this change fixes it.
Change-Id: I1d7ea816e82fa81d3edb8ecdbe2d602d3624c126
|
|
|
|
|
|
|
|
|
|
| |
Caching is enabled by default from pip version 6.0
More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching
Change-Id: I0349f6d3812783391bc74cacae6ad947a4d19622
|
|
|
|
|
|
|
|
|
|
|
| |
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.
Closes-Bug: 1519510
Depends-On: Ic8241e55b5f4e3d567156d4c1e8bf8a0303f6d29
Change-Id: I4386dc70e3d467e31963d852726af78fbdbbba38
|
|
|
|
|
|
|
|
|
| |
Allows tox to be able to run all functional tests in a Class as
well as a single functional test. Also runs the tests in verbose
mode, as is done in the gate.
Change-Id: I1fba43aa8c577c81da07522f84cddc36fd7807e1
Closes-Bug: #1514699
|
|
|
|
|
|
|
| |
We no longer need to pip install tempest code, so removing
that from tox.ini
Change-Id: I4caa8b44299dd3254d6c08f52d873f38f358ff55
|
|
|
|
|
|
|
|
|
|
| |
Removed extra "nose" pre-req from tox.ini as it is already in
test-requirements.txt, and it causes a "double requirement"
error when running via tox. Also fixed relative directory
reference to ensure we pick up the right etc/functional_tests.conf
file.
Change-Id: Iffb2891012ff0a4bb13a34bd7f8784104453b150
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Updated tox.init to add a test environment "functional".
You can run using "tox -e functional" from a command line.
Change-Id: Id3ac2b52ade9b7e683ae74e2f9e3efc2dbceb6f1
|
|/
|
|
|
|
|
|
|
|
|
| |
Remove Python 3.3 tox environment because Infra changed all Python 3
gates to Python 3.4.
References:
http://lists.openstack.org/pipermail/openstack-dev/2015-February/055775.html
Change-Id: I355323aa0e03580f86b46fb2d7ab41da3f4d59c2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The script oslo_debug_helper enables the usage of Python's pdb without
having to do the tedious listing of test cases from testr and then
running it. Only thing that needs to be done now is the adding of
"import pdb; pdb.set_trace()" as usual and then one can just call:
$ tox -e debug
And we will end up in the debugger when that test is hit.
Note that you can also give a test_regex such as:
$ tox -e debug -- some_test_regex
To run only tests that match that regex.
Change-Id: I63386e68ac3ef5c05bc8290d889efa7f71b33cf1
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will enable us to pass a regex to tox (such as we already can for
testr) of what tests we want to execute. So we can do stuff like this:
$ tox -e py27,py33 -- test_barbican
Which will execute the tests that match that "test_barbican" argument
(which will actually be the tests in the test_barbican module) on the
given environments.
Change-Id: Id81b8ab4829c25454ee049b22e3e13a551055946
|
|
|
|
|
|
| |
Added sphinx documentation source skeleton from cookiecutter.
Change-Id: I7c9fa2c0668b93dd00eecca90617121fdae304ea
|
|
|
|
| |
Change-Id: Ie06e59518306124e60ab9b741036015f9e977840
|
|
|
|
|
|
|
|
| |
There's a few things - most notably the missing venv env,
but also getting tox to skip the sdist step in builds that
will align python-barbicanclient with the rest of the project.
Change-Id: I7b3c8f992040c0a7f0cace1452a93f4958d0cd2a
|
|
|
|
| |
Change-Id: I095b7027b61594947ee04f041d66cd05268adee2
|
|
|
|
| |
Change-Id: I0822a7da1206729b9149f0d4ee3195a50e6873c6
|
|
|
|
| |
Change-Id: I364dcaac1db1922cc815ece455a69734aa6c51f6
|
|
|
|
| |
Change-Id: Id914183a5098e2fdc3f325fc83ecc5161886733d
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Update the unit tests to reflect all changes made
rename the command line tool to "keep" and add it to setup.py
Add nosetest to tox
|
| |
|
| |
|