These are detected as errors since the clean up was done[1] in
the requirements repository.
[1] 314734e938f107cbd5ebcc7af4d9167c11347406
Change-Id: I7dd3fe7cfeecc5e7f1d2d4b2080c49d59503faae
The current usage can be easily replaced by the built-in datetime
module. Also it has been missing from the test requirements and now
is no longer installed by the dependencies.
Change-Id: Idb2ca40fd7ab2334bc97fcf23888a2d326daa1c5
The barbicanclient/openstack directory does not exist.
This also adds a few more options to make the file content consistent
with the other repos.
Change-Id: Iaa8208dd133a4c586b5622e3ece0d1a5df1428b9
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg
Change-Id: Ic23273fde5a3bba18ee9970baea88279c4d45c40
The 'skip_sdist' option in 'tox.ini' changes behavior in tox 4. In tox
3, it was ignored if 'usedevelop = true' was specified. In tox 4, the
opposite is true. This means our plugin was not installed in the
environment. Fix this.
While we're here, cleanup the whole 'tox.ini' file and remove a lot of
stuff that is no longer necessary in a world where everything is Python
3.
Change-Id: Iee4ef8e1c15e67c4ab9a77676214f1062bd0c96a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
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
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
... 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
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 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
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
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