summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed typo in the release notesHEADmasterMauricio Harley2023-03-031-2/+2
| | | | Change-Id: I5d651e85d984a6a854481087ccfd4d716a245068
* Add secret consumers documentation5.5.0Mauricio Harley2023-02-153-7/+317
| | | | Change-Id: I55cdf4735d6936c966f7b1638714762747f6d480
* Added secret consumers list functionality. Unit, smokeMauricio Harley2023-02-108-43/+387
| | | | | | and functional tests were also added. Change-Id: I093475833cdc6d68ff2d4735a0d4a8d0eb143a53
* Added the force parameter to consumer removal and the corresponding CLI commandsMauricio Harley2023-02-0710-52/+387
| | | | | | | When deleting a secret that has consumers, the --force parameter must be specified in the CLI. Change-Id: I49d19ac843d5c805fd7f533d07a3a719ce9a1104
* Add secret consumers Python APIMauricio Harley2023-01-184-1/+300
| | | | | | | | | | This adds the Python API for secret consumers, similar to the container consumers API. Also adding functional tests for both secret and container consumers. Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Change-Id: I024db27d12ea33713bda0273d8748577cc89a38d
* Unit tests for microversion, initial change for consumersAndre Aranha2023-01-176-105/+409
| | | | | | | | | | | | | | Add unit tests for microversions. This also changes the default microversion to 1.1, which tells Barbican to return secret consumers. Because of that, this patch adds consumers to the Secret object in barbicanclient/v1/secrets.py , so that the API response is correctly interpreted. Co-Authored-By: Ade Lee <alee@redhat.com> Co-Authored-By: Andre Aranha <afariasa@redhat.com> Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Change-Id: Ibfaea3fe9e394f6b1286d92437629d0400305968
* Implement microversionsDouglas Mendizábal2023-01-036-131/+237
| | | | | | | | | | | | This patch introduces a new `microversion` parameter to the factory method for the Client class. The parameter is used to set `default_microversion` in the HTTPClient. Co-Authored-By: Andre Aranha <afariasa@redhat.com> Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Depends-On: https://review.opendev.org/c/openstack/keystoneauth/+/865439 Change-Id: I2a0a5315daca8ce5bd6164cebbd2f917348c7675
* Bump tox minversion to 3.18.0Grzegorz Grasza2023-01-031-5/+7
| | | | | | | | | | | | | | | | Since tox 3.18.0, the whitelist_externals option has been deprecated in favor of the new allow_list_externals option[1]. This change bumps the minversion of tox so that we can replace the deprecated option. This also adds requirements.txt to the docs tox environment, to fix the openstack-tox-docs job. [1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Co-Authored-By: Grzegorz Grasza <xek@redhat.com> Change-Id: I9066385091c80405c265bf95728c2011a8ad4780
* Merge "Update the constraints url"Zuul2022-10-271-1/+1
|\
| * Update the constraints urlpengyuesheng2022-05-171-1/+1
| | | | | | | | | | | | For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: I632d25063333c178cf980e9dab5c36c155068112
* | Merge "Switch to 2023.1 Python3 unit tests and generic template name"Zuul2022-09-291-1/+1
|\ \
| * | Switch to 2023.1 Python3 unit tests and generic template nameOpenStack Release Bot2022-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for antelope. Also, updating the template name to generic one. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I2a678a5ecdf68783e8a5daff7cad7f8cec0f648e
* | | Make functional tests use stestr instead of noseAde Lee2022-09-263-16/+11
|/ / | | | | | | | | | | | | This moves in the direction that most projects have been moving and it works on python 3 too. Change-Id: I471f803c62722aa9935713921db27fca34282fb5
* | Remove unicode literal5.4.0Takashi Kajinami2022-05-1810-83/+83
| | | | | | | | | | | | | | | | ... because u'...' is equivalent to '...' in Python 3. Also, removed the unicode prefix from example outputs because it is no longer shown in Python 3. Change-Id: I1f8fbec1d711659872cb07d2dcef9e33d5a9d21a
* | Remove sixTakashi Kajinami2022-05-189-45/+31
| | | | | | | | | | | | | | | | Python 2 is no longer supported, so we no longer need the six library. This change removes usage of the library as well as reference to it (and Python 2) from the documentation. Change-Id: I6328b11dcad54f70f64ecff53eb60708e34351cf
* | Merge "Fix unit test failue with cliff>=3.5.0"Zuul2022-05-181-4/+1
|\ \ | |/ |/|
| * Fix unit test failue with cliff>=3.5.0Takashi Kajinami2022-05-161-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | This change fixes the failure in unit tests, which was caused by the different exception raised by HelpExit since cliff 3.5.0[1]. [1] 7fdd7cb4c50a33233a7052fc345221cc7b935889 Story: 2010022 Task: 45241 Change-Id: I07e51211befa0296d15e6dbdd726c7a989678183
* | Merge "setup.cfg: Replace dashes by underscores"Zuul2022-05-171-3/+3
|\ \
| * | setup.cfg: Replace dashes by underscoresTakashi Kajinami2022-05-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since setuptools v54.1.0[1], the parmeters with dash have been deprecated in favor of the new parameters with underscore. This change updates the parameters accordingly to avoid the warnings like the example below. UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: Ic8c6a45bfe86efff00061384e334af9d9840a08d
* | | Merge "Add Python3 zed unit tests"Zuul2022-05-171-1/+1
|\ \ \
| * | | Add Python3 zed unit testsDouglas Mendizábal2022-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch updates the python jobs to use the Zed jobs. Change-Id: I24d1e379b2118954f51b856213d9baa977c8536c
* | | | Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable"Zuul2022-05-171-1/+1
|\ \ \ \
| * | | | Replace deprecated UPPER_CONSTRAINTS_FILE variablewuchunyang2022-05-161-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UPPER_CONSTRAINTS_FILE is old name and deprecated -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. Change-Id: I54126f6aae313b28e54293d362b1cd81e19807b9
* | | | Merge "Updating python testing as per Yoga testing runtime"Zuul2022-05-173-3/+3
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| |
| * | Updating python testing as per Yoga testing runtimeGhanshyam Mann2022-05-163-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yoga testing runtime[1] has been updated to add py39 testing as voting. Unit tests update are handled by the job template change in openstack-zuul-job - https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286 this commit makes other required changes in zuul.yaml and update the classifier in setup.cfg file. [1] https://governance.openstack.org/tc/reference/runtimes/yoga.html Change-Id: Ia7cd1aaf66714d7d885187fa14627d4d5c424f65
* | Merge "Add Python 3 only classifier"Zuul2022-05-161-0/+1
|\ \
| * | Add Python 3 only classifierTakashi Kajinami2022-05-161-0/+1
| |/ | | | | | | | | | | | | Python 2 support was removed during Ussuri cycle. This change adds the classifier to clearly state that only Python 3 is supported. Change-Id: Iaff42279c88bd72eaa1ed58d2a675b5967896069
* | Merge "Fix the import warning of secrets"Zuul2022-05-161-1/+1
|\ \
| * | Fix the import warning of secretsMasayoshi Mizuma2022-05-161-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | openstack command gets the following warning: /usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead. To fix that, import secrets from barbicanclient.v1 as the warning indicates. Change-Id: Ib6548cfe30ce407f349cdeebec9a67e22a31bc74
* | Replace git.openstack.org URLs with opendev.org URLslikui2022-05-161-1/+1
|/ | | | Change-Id: I27a1bcb84c6f14a424fc355f8895304723f48024
* Drop lower-constraints.txt and its testingGhanshyam Mann2022-05-136-82/+7
| | | | | | | | | | | | | | | | | | | | As discussed in TC PTG[1] and TC resolution[2], we are dropping the lower-constraints.txt file and its testing. We will keep lower bounds in the requirements.txt file but with a note that these are not tested lower bounds and we try our best to keep them updated. This patch also fixes a broken test by updating the maximum payload size to match the current maximum in Barbican. [3] This patch also skips an additional broken test. It will be fixed in a separate patch. [1] https://etherpad.opendev.org/p/tc-zed-ptg#L326 [2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal [3] https://opendev.org/openstack/barbican/src/branch/stable/yoga/barbican/common/config.py#L33 Change-Id: Id192b8eef2c2518b8a89f200727bd03c47dbd07e
* 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
|\ \ | |/