| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I55cdf4735d6936c966f7b1638714762747f6d480
|
|
|
|
|
|
| |
and functional tests were also added.
Change-Id: I093475833cdc6d68ff2d4735a0d4a8d0eb143a53
|
|
|
|
|
|
|
| |
When deleting a secret that has consumers, the
--force parameter must be specified in the CLI.
Change-Id: I49d19ac843d5c805fd7f533d07a3a719ce9a1104
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| | |
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html
Change-Id: I632d25063333c178cf980e9dab5c36c155068112
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| | |
This moves in the direction that most projects have been moving
and it works on python 3 too.
Change-Id: I471f803c62722aa9935713921db27fca34282fb5
|
| |
| |
| |
| |
| |
| |
| |
| | |
... 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
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This patch updates the python jobs to use the Zed jobs.
Change-Id: I24d1e379b2118954f51b856213d9baa977c8536c
|
|\ \ \ \ |
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| | |/ /
| |/| /
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
| |
Change-Id: I27a1bcb84c6f14a424fc355f8895304723f48024
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| | |
in 'victoria' cycle, we should test py38 by default.
Change-Id: I91257def33d99a0fdebdf01e60e9e031104e81bd
|
|/
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ida4233cfab3ce14bbf170cdc3037f6b0c3a087df
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The repo is Python 3 now, so update hacking to version 3.1.0 which
supports Python 3.
Fix problems found.
Change-Id: I54f9f7c5f6ee87ee886658388541f45e23c7546d
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|