summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "bump py37 to py38 in tox.ini"xena-emwallaby-em5.3.05.2.05.1.0Zuul2020-10-281-1/+1
|\
| * bump py37 to py38 in tox.iniwangzihao2020-09-221-1/+1
| | | | | | | | | | | | in 'victoria' cycle, we should test py38 by default. Change-Id: I91257def33d99a0fdebdf01e60e9e031104e81bd
* | Add Python3 wallaby unit testsOpenStack Release Bot2020-09-161-1/+1
|/ | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I8f8fbffec2aeeb649e74b3269da7d7f08f157575
* [goal] Migrate tox based testing to ubuntu focalGhanshyam Mann2020-09-081-3/+3
| | | | | | | | | | | | | | | | As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. Story: #2007865 Task: #40177 Depends-On: https://review.opendev.org/#/c/738328/ Change-Id: I046e2bf0e730849ef6fd8b8d1d355916632a467e
* Zuul: port to native v3 job and add victoria unit testsvictoria-em5.0.1Douglas Mendizábal2020-07-295-131/+8
| | | | | | | | | | | Port the functional job to the native Zuul v3 format, and remove a few old wrapper scripts which are not needed anymore (the tests can be run locally through `tox -efunctional` as well). Also, switch to the Victoria run time for unit tests. Co-Authored-By: Luigi Toscano <ltoscano@redhat.com> Change-Id: Ibce326044c240d6c4e7f1ca3c3ac50a18282a86d
* Merge "add py38 package metadata"Zuul2020-07-281-0/+1
|\
| * add py38 package metadatajiasirui2020-06-161-0/+1
| | | | | | | | Change-Id: Ida4233cfab3ce14bbf170cdc3037f6b0c3a087df
* | Merge "Switch from unittest2 compat methods to Python 3.x methods"Zuul2020-07-071-4/+4
|\ \
| * | Switch from unittest2 compat methods to Python 3.x methodsDirk Mueller2020-06-111-4/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the removal of Python 2.x we can remove the unittest2 compat wrappers and switch to assertCountEqual instead of assertItemsEqual We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - testing-cabal/testtools#286 [4] - testing-cabal/testtools#277^ Change-Id: I5e02a7ed7803e21ad2baa93fccd00a23cda3da79
* | Merge "Update hacking for Python3"Zuul2020-06-168-73/+74
|\ \ | |/ |/|
| * Update hacking for Python3Andreas Jaeger2020-06-098-73/+74
| | | | | | | | | | | | | | | | | | The repo is Python 3 now, so update hacking to version 3.1.0 which supports Python 3. Fix problems found. Change-Id: I54f9f7c5f6ee87ee886658388541f45e23c7546d
* | Merge "Switch to newer openstackdocstheme and reno versions"5.0.0Zuul2020-06-092-6/+8
|\ \
| * | Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-06-092-6/+8
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using these versions will allow especially: * Linking from HTML to PDF document * Allow parallel building of documents * Fix some rendering problems Update Sphinx version as well. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. Set openstackdocs_pdf_link to link to PDF file. Note that the link to the published document only works on docs.openstack.org where the PDF file is placed in the top-level html directory. The site-preview places the PDF in a pdf directory. Change pygments_style to 'native' since old theme version always used 'native' and the theme now respects the setting and using 'sphinx' can lead to some strange rendering. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: Iec58d8dfa90b9b3d7b67d81798b32fb2670e21d4
* | Use unittest.mock instead of third party mockSean McGinnis2020-06-093-3/+4
|/ | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I3b728aee2f07ad547ee75cabf78659cef1233bc5 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* [ussuri][goal] Drop python 2.7 support and testingGhanshyam Mann2020-06-085-16/+16
| | | | | | | | | | | | | | | | 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
* Fix gate job failures and py3 compatibilityTakashi Kajinami2020-06-0816-217/+227
| | | | | | | | | | - Fix incorrect type handling of secret payload in py3 (it should be bytes instead of str by default) - Fix py3 compatibility of test codes - Update expiration date so that resources are created with valid expiration. Change-Id: I4935f601f87e9c49499da1034a320eee2e655b4d
* Merge "PDF Documentation Build tox target"ussuri-em4.10.0Zuul2019-11-055-7/+27
|\
| * PDF Documentation Build tox targetAlexandra Settle2019-10-015-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "docs: Turn on warning-as-error"Zuul2019-11-053-6/+5
|\ \ | |/
| * docs: Turn on warning-as-errorStephen Finucane2019-10-013-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Support two-way auth for barbicanclientjonnary2019-10-022-2/+51
|/ | | | | | | This patch supports two-way auth for barbicanclient. Change-Id: I19fb971de864e94b31bf436bc27d5180aebbce4f blueprint:support-two-way-auth
* Fix lower-constraints tox targetDouglas Mendizábal2019-10-012-2/+2
| | | | | | | | | | We seem to be running into a coverage issue [1] in 4.0. This patch raises the lower bound of coverage to 4.1 to get the lower-constraints target to pass again. [1] https://github.com/nedbat/coveragepy/issues/359 Change-Id: Ieddef753b4ee3e9b6d246168ed17c5c99e084564
* Bump the openstackdocstheme extension to 1.20pengyuesheng2019-09-182-12/+7
| | | | | | | | | | | | | | Some options are now automatically configured by the version 1.20: - project - html_last_updated_fmt - latex_engine - latex_elements - version - release. This will show other versions of the doc, too. Change-Id: Ia22281730e0303cb9bcde4de6fd28739e544d27e
* OpenDev Migration Patchtrain-em4.9.0OpenDev Sysadmins2019-04-193-6/+6
| | | | | | | | | | | | | | | 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.
* Replace openstack.org git:// URLs with https://Ian Wienand2019-03-241-2/+2
| | | | | | | | | | | | | | | | | 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: I40e9a47bb1109bb6b8cc1c27b20b6bbf3a6522d6
* Merge "add python 3.7 unit test job"Zuul2019-03-061-0/+1
|\
| * add python 3.7 unit test jobCorey Bryant2019-02-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a mechanically generated patch to add a unit test job running under Python 3.7. See ML discussion here [1] for context. [1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html Change-Id: Ib304b1240cefacf28e29064318db495aa6b8ec25 Story: #2004073 Task: #27403
* | Update json module to jsonutilscao.yuan2019-02-263-24/+26
|/ | | | | | | | | | oslo project provide jsonutils, and barbicanclient use it in many place[1], this PS to update the remained json module to oslo jsonutils for consistency. [1]: https://github.com/openstack/python-barbicanclient/search?utf8=%E2%9C%93&q=jsonutils&type= Change-Id: I244c83edcf756b1e4682d5032179e57810ceaca5
* Merge "Update hacking version"stein-em4.8.1Zuul2019-01-041-1/+1
|\
| * Update hacking versionZhijunWei2018-12-281-1/+1
| | | | | | | | Change-Id: Iff536d9fc6d0b17d12f5badb5741f5b753252642
* | Merge "Use template for lower-constraints"Zuul2019-01-021-4/+3
|\ \
| * | Use template for lower-constraintsAndreas Jaeger2018-12-201-4/+3
| |/ | | | | | | | | | | | | | | | | | | | | Small cleanups: * Use openstack-lower-constraints-jobs template, remove individual jobs. * Sort list of templates Change-Id: I3ad5dc796983b6a770a5e413f5ab8d2ed3ffa74f Needed-By: https://review.openstack.org/623229
* | Merge "Change openstack-dev to openstack-discuss"Zuul2019-01-020-0/+0
|\ \
| * | Change openstack-dev to openstack-discuss98k2018-12-041-1/+1
| |/ | | | | | | | | | | Mailinglists have been updated. Openstack-discuss replaces openstack-dev. Change-Id: I47fd4cd591759efb9facbdca62e9ab04690dc586
* | Merge "Update mailinglist from dev to discuss"Zuul2019-01-021-1/+1
|\ \
| * | Update mailinglist from dev to discusschenlx2018-12-171-1/+1
| |/ | | | | | | | | | | | | openstack-dev was decomissioned this night in https://review.openstack.org/621258 Update openstack-dev to openstack-discuss Change-Id: Ifa1900a1ac8df659dff5042503e43847047dae58
* | Merge "Secret payload should also be fetched by UUID"Zuul2019-01-022-7/+11
|\ \
| * | Secret payload should also be fetched by UUIDAdam Harwell2018-12-202-7/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | We changed the client to fetch containers and secrets via their UUID from the API, rather than by HREF, so that the endpoint URLs set in the keystone client would be respected. Unfortunately, we (I) missed updating the payload fetch function to do the same. This brings it into line with the other fetches. Change-Id: Ic71cf6771563d669a2fa37a56d4b40c637db1511 Story: 2004653 Task: 28608
* | Merge "add python 3.6 unit test job"Zuul2019-01-021-1/+1
|\ \ | |/ |/|
| * add python 3.6 unit test jobVieri2018-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* | Add Python 3.6 classifier to setup.cfgqingszhao2018-11-291-0/+2
|/ | | | Change-Id: I33930ac42df62ef16e174a6bf905b72f255db3cc
* Update min tox version to 2.0huang.zhiping2018-11-071-1/+1
| | | | | | | | | 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
* Don't quote {posargs} in tox.ini4.8.0Vieri2018-10-091-1/+1
| | | | | | | | 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
* Allow fetching by UUID, and respect interfaceAdam Harwell2018-09-1114-96/+366
| | | | | | | | | | | | | | 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
* Import python-barbicanclient-dsvmAndreas Jaeger2018-09-043-2/+93
| | | | | | | Move definition of job python-barbicanclient-dsvm in-repo from openstack-zuul-jobs. Change-Id: Id1cc0523bfaf26574730fc103d353aea21ac33b0
* add python 3.6 unit test jobDoug Hellmann2018-09-041-0/+1
| | | | | | | | | | | | 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: I570ae27529755986f8c8ca669af5f1a6d98dfcd7 Story: #2002586 Task: #24285
* switch documentation job to new PTIDoug Hellmann2018-09-041-1/+1
| | | | | | | | | | | | | This is a mechanically generated patch to switch the documentation jobs to use the new PTI versions of the jobs 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: I65ada31053e9f53b794b7aebe8ef50046f09ddaf Story: #2002586 Task: #24285
* import zuul job settings from project-configDoug Hellmann2018-09-041-0/+8
| | | | | | | | | | | | | | | | | | | | 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: I02025ad4a9b53dfb5ae042554022ad3c96409688 Story: #2002586 Task: #24285
* Merge "fix tox python3 overrides"4.7.0Zuul2018-07-181-0/+4
|\
| * fix tox python3 overridesDoug Hellmann2018-06-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>