Commit Graph

740 Commits

Author SHA1 Message Date
Zuul a14739658c Merge "coveragerc: Remove non-existent path" 2024-03-27 15:48:21 +00:00
Zuul 92035b9391 Merge "Update python classifier in setup.cfg" 2024-03-27 15:48:20 +00:00
Zuul c25f87915f Merge "Bump hacking" 2024-03-27 15:48:19 +00:00
Zuul 2ac2b97593 Merge "Bump hacking" 2024-03-27 05:59:33 +00:00
Takashi Kajinami 08e6662549 Replace pytz
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
2024-03-15 13:44:38 +09:00
Takashi Kajinami 2b676640a2 Bump hacking
hacking 3.1.x is too old.

Change-Id: Id3a43018f09ef66c6caceed1ac4452476762c56b
2024-02-19 02:32:16 +09:00
Takashi Kajinami a29eba3436 Bump hacking
hacking 3.0.x is too old.

Change-Id: I5d426927e73e275dcc145dc351bfcf7c03b1ebad
2024-01-27 22:36:48 +09:00
Takashi Kajinami 8b55b8646d coveragerc: Remove non-existent path
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
2024-01-25 23:50:08 +09:00
Ghanshyam Mann 95e0d165d6 Update python classifier in setup.cfg
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
2024-01-03 21:24:04 -08:00
Zuul e0005a11f2 Merge "Migrate back to Launchpad" 2023-09-26 18:20:51 +00:00
Grzegorz Grasza cb31351e92 Migrate back to Launchpad
Change-Id: I8e2db5a3d3e3f5991527f3951af70ff7e98bc550
2023-09-12 15:11:35 +00:00
Stephen Finucane 721e9d8838 Use constraints for docs job
Change-Id: Ia668961054a793f37ef83ec795ae84aaad382409
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-12 15:39:42 +01:00
Stephen Finucane e597e8d13a Fix functional tests
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>
2023-09-12 13:11:32 +01:00
Mauricio Harley 7d9c28ab17 Fixed typo in the release notes
Change-Id: I5d651e85d984a6a854481087ccfd4d716a245068
2023-03-03 14:47:50 +01:00
Mauricio Harley ad14b64a7a Add secret consumers documentation
Change-Id: I55cdf4735d6936c966f7b1638714762747f6d480
2023-02-15 10:30:03 +01:00
Mauricio Harley da03fc5cf0 Added secret consumers list functionality. Unit, smoke
and functional tests were also added.

Change-Id: I093475833cdc6d68ff2d4735a0d4a8d0eb143a53
2023-02-10 18:22:43 +01:00
Mauricio Harley 7f6b3cf790 Added the force parameter to consumer removal and the corresponding CLI commands
When deleting a secret that has consumers, the
--force parameter must be specified in the CLI.

Change-Id: I49d19ac843d5c805fd7f533d07a3a719ce9a1104
2023-02-07 13:50:51 +01:00
Mauricio Harley 3ffa1600af Add secret consumers Python API
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
2023-01-18 13:20:45 +00:00
Andre Aranha 35599e2b98 Unit tests for microversion, initial change for consumers
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
2023-01-17 17:06:11 +01:00
Douglas Mendizábal b3f3912a71 Implement microversions
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
2023-01-03 16:46:09 +00:00
Grzegorz Grasza 9a457b434d Bump tox minversion to 3.18.0
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
2023-01-03 14:35:58 +01:00
Zuul 8a509d0670 Merge "Update the constraints url" 2022-10-27 17:45:35 +00:00
Zuul b5eda7224d Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2022-09-29 08:47:29 +00:00
Ade Lee dc81852e95 Make functional tests use stestr instead of nose
This moves in the direction that most projects have been moving
and it works on python 3 too.

Change-Id: I471f803c62722aa9935713921db27fca34282fb5
2022-09-26 13:32:51 -04:00
OpenStack Release Bot a6dd25b107 Switch to 2023.1 Python3 unit tests and generic template name
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
2022-09-14 09:17:14 +00:00
Takashi Kajinami 771eb86402 Remove unicode literal
... 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
2022-05-18 13:31:28 +00:00
Takashi Kajinami 69125bfd07 Remove six
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
2022-05-18 22:31:01 +09:00
Zuul c6ce0af028 Merge "Fix unit test failue with cliff>=3.5.0" 2022-05-18 13:28:34 +00:00
pengyuesheng 438d09a89f Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I632d25063333c178cf980e9dab5c36c155068112
2022-05-17 09:56:40 -05:00
Zuul 7d834cc8dd Merge "setup.cfg: Replace dashes by underscores" 2022-05-17 14:45:28 +00:00
Zuul af3ff226a5 Merge "Add Python3 zed unit tests" 2022-05-17 13:59:39 +00:00
Zuul 55e145774b Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable" 2022-05-17 13:59:36 +00:00
Zuul cb07386af7 Merge "Updating python testing as per Yoga testing runtime" 2022-05-17 13:59:34 +00:00
Takashi Kajinami 1fc7d459ad setup.cfg: Replace dashes by underscores
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
2022-05-17 17:11:18 +09:00
Zuul 3870938e1d Merge "Add Python 3 only classifier" 2022-05-16 22:27:24 +00:00
Zuul f869b86b55 Merge "Fix the import warning of secrets" 2022-05-16 22:27:22 +00:00
Douglas Mendizábal 1c46400be2 Add Python3 zed unit tests
This patch updates the python jobs to use the Zed jobs.

Change-Id: I24d1e379b2118954f51b856213d9baa977c8536c
2022-05-16 16:35:12 -05:00
wuchunyang 57b559b38b Replace deprecated UPPER_CONSTRAINTS_FILE variable
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
2022-05-16 21:27:16 +00:00
Takashi Kajinami ca596f05b1 Fix unit test failue with cliff>=3.5.0
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
2022-05-16 16:21:18 -05:00
likui d6a7022778 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I27a1bcb84c6f14a424fc355f8895304723f48024
2022-05-16 21:13:14 +00:00
Ghanshyam Mann 65db5694d1 Updating python testing as per Yoga testing runtime
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
2022-05-16 16:10:02 -05:00
Takashi Kajinami ed56446d2d Add Python 3 only classifier
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
2022-05-16 21:04:44 +00:00
Masayoshi Mizuma 03c59e832f Fix the import warning of secrets
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
2022-05-16 21:02:55 +00:00
Ghanshyam Mann 8e3a391fd6 Drop lower-constraints.txt and its testing
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
2022-05-13 16:15:54 -05:00
Zuul ad49c406fe Merge "bump py37 to py38 in tox.ini" 2020-10-28 22:12:22 +00:00
wangzihao b46836eeb0 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

Change-Id: I91257def33d99a0fdebdf01e60e9e031104e81bd
2020-09-22 01:28:39 +00:00
OpenStack Release Bot 2c563d5616 Add Python3 wallaby unit tests
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
2020-09-16 21:21:08 +00:00
Ghanshyam Mann c663fd2713 [goal] Migrate tox based testing to ubuntu focal
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
2020-09-08 23:44:09 +00:00
Douglas Mendizábal 1f0feb30cc Zuul: port to native v3 job and add victoria unit tests
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
2020-07-29 15:29:39 +02:00
Zuul 72dedebbfa Merge "add py38 package metadata" 2020-07-28 14:18:08 +00:00