Commit Graph

90 Commits

Author SHA1 Message Date
Zuul ffefe045df Merge "Remove six" 2024-02-21 02:30:32 +00:00
Zuul 5906bd6d00 Merge "Update deprecated zuul syntax" 2024-02-20 20:51:40 +00:00
Takashi Kajinami e0ed95af66 Remove six
This plugin no longer supports python 2 thus usage of six is no longer
needed.

Change-Id: Ide365a91b434c015cf44c9aa900813237b752be9
2024-02-20 10:05:07 +09:00
Takashi Kajinami 026f0e732e zuul: Declare queue at top level
Zuul deprecated declaring shared queues at a pipeline level with
release 4.1.0[1]. This updates the job definition to use the top level
declaration instead.

See [2] for details.

[1] https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-4-1-0-deprecation-notes
[2] http://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: Ia2b73c9cf7c927b774dc2731d32aa6a2e58136b7
2024-02-20 10:05:07 +09:00
Dr. Jens Harbott e5fe8ad54c Update deprecated zuul syntax
Queues are now declared at the project level

https: //lists.openstack.org/pipermail/openstack-discuss/2021-November/025797.html
Change-Id: Ic67de5110fe7e6394bc1fa374a2da9bc14b639df
2023-08-21 17:30:04 +02:00
JyotiJauhari 3813c99e50 Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore and test-requirements.txt file accordingly
* Use py3 as the default runtime for tox
* Add a new job, openstack-cover-jobs, to run the coverage in Zuul
* Use tox version 3.18.0 for using allowlist_externals

Signed-off-by: JyotiJauhari <jyotijauhari222@gmail.com>
Change-Id: Ifd6fc7b0c22919b91fff9eb136de8c023bce3849
2021-07-22 13:32:01 +05:30
Hervé Beraud fef59164aa Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I2aebaf6be3ffc86659782f8272f03a2ea0463c8c
2021-01-07 17:29:03 +01:00
Luigi Toscano 9146cc9dbf New native Zuul v3 version of the tempest jobs
Create the jobs in this repository: they will be used from
zaqar repository, not the other way round as it is now.

The jobs have been renamed according the naming guidelines.
The IPv6 jobs has been added here as well to prevent regressions.

Change-Id: Icffb53316e4a7db67db22aef6988f15a3ff79b1f
2020-08-22 23:23:22 +02:00
Andreas Jaeger 4195ae11b2 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove py2 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
- Switch to using sphinx-build
- Remove install_command from tox.ini, the default is fine
- Remove Babel from requirements, it's not needed for running.
- Remove obsolete babel.cfg
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.
- Update hacking to current 3.1.0 version
- Remove use of six library

Change-Id: I233dfc7a06cbd2e098499629f63d0b8f2db5258e
2020-06-09 14:37:58 +02:00
Andreas Jaeger 820a42650d Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I6e7b744bb8f56b0a237dc27da45635d99f3a0290
2020-06-01 16:26:29 +02:00
wanghao ef3aee1250 Optimize the tempest job for zaqar-tempest-plugin
No need to copy the playbooks from zaqar, just use 'parent'.

Change-Id: I979c9c94bf5a3662bc9d5f0312b2abb6fa936d7e
2020-03-26 09:03:44 +08:00
wanghao 7d009cd2ff Add tempest jobs for zaqar tempest plugin
To avoid the breakages when code merge.

Change-Id: I6f37c55f7bba8b0bc7b1ce15636e12fb6d3c15ea
2020-03-25 11:20:33 +08:00
wanghao 2fb8cc5ef2 Fix bug/1863560
Change-Id: I81cb467bb63d60bd7cdd8d04d878fdc6bd6e8b69
2020-03-19 22:08:27 +08:00
wanghao f2dd398a1b Fix bug 1863560
Closes-Bug: #1863560
Change-Id: Ic5b9cd9a2795c9c915cfc0554880718e2733fed1
2020-03-18 14:21:34 +08:00
Zuul 80aa2946c5 Merge "[ussuri][goal] Drop python 2.7 support and testing" 2020-02-24 10:56:31 +00:00
wanghao 8365718006 Add tempest test for querying queus with count
Change-Id: I0b35d3d4a0c0220478e13496d1d994e193fa1fa5
Implements: blueprint query-queues-with-count
Closes-Bug: #1863560
Signed-off-by: wanghao <sxmatch1986@gmail.com>
2020-02-24 10:49:49 +08:00
Andreas Jaeger 56345e681f Revert "Add tempest test for querying queus with count"
This change breaks zaqar.
See https://bugs.launchpad.net/puppet-openstack-integration/+bug/1863560

This reverts commit 04f720906d.

Change-Id: Ib946f57855ac22948792eaaa2bb901ad46704779
2020-02-23 19:13:01 +00:00
wanghao 04f720906d Add tempest test for querying queus with count
Change-Id: I0fca9cb65b65da6d8f386175fc5c29abf12c4311
Implements: blueprint query-queues-with-count
Signed-off-by: wanghao <sxmatch1986@gmail.com>
2020-02-12 22:10:26 +08:00
Ghanshyam Mann 4a32739cb3 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

zaqar-tempest-plugin 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: I2417f29592bb87c9e3071b1918515a05f77cf8a3
2020-01-21 20:52:49 -06:00
wanghao ad91e171db Fix incompatibility in python3
Fix the issue in tempest tests

Change-Id: I7db75adb06399003a82f4a522e4ea821ae6271e2
2019-12-16 16:30:19 +08:00
wanghao f6211b4e5c Fix Tempest error
The url of listing subscription should be "{0}/queues/{1}/subscriptions"

Change-Id: Iaa0e114ce0f3876a0c2630ff1bdcbb4549592498
2019-05-25 15:56:54 +08:00
OpenDev Sysadmins f89d4ba022 OpenDev Migration Patch
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.
2019-04-19 19:32:41 +00:00
wanghao 8662c91038 Update the outdated README.rst in zaqat_tempest_plugin
Now the command of running zaqar tempest tests in zaqar_tempest_plugin
is outdated and not working anymore.

This need to update and fix.

Change-Id: I9a96367e0de151ca114beadc9769eec3d09b1ca6
Closes-Bug: #1809719
2019-01-10 10:47:20 +08:00
huang.zhiping 1eddb5ace5 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ib158ce595bd14adf5b2dbdc64e0d3f59f5a762a0
2018-12-04 12:51:06 +00:00
Zuul dfd41f524f Merge "import zuul job settings from project-config" 2018-09-13 06:41:51 +00:00
98k 53bff60366 import zuul job settings from project-config
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: I179fc787fe38914a6d7dceaa0c7cc64cda4683b3
Story: #2002586
Task: #24346
2018-08-24 06:41:24 +00:00
wander.way 97abad9108 Remove the ambiguous test
If Zaqar is deployed under Apache, the empty input negative check
will return UnexpectedContentType which is not 405 error.

This patch remove this ambiguous test.

Change-Id: Ic384cd51581f0ad024bd2033eb9e00d022e253d4
2018-07-18 09:17:11 +00:00
Zuul f6c761d213 Merge "Add test for claim for non existing queue" 2018-03-23 06:25:45 +00:00
Javier Pena e0d4c41d5d Fix documentation build
contributing.rst had a mistake in the included path, and index.rst
was referencing a non-existing document.

Change-Id: I0d99893b57018e0e1f6206b10b197dfe14cecaa3
2018-03-15 10:30:38 +01:00
Thomas Herve df888ccf1c Add test for claim for non existing queue
Change-Id: I7e2128f3a5608ed9a41d1e18bd72d771a2a4ddb3
Related-Bug: #1754061
2018-03-12 10:57:56 +01:00
lvxianguo 9051907cf7 fix error url
Change-Id: I15d2147f47ea895d88392980cd053c4d682e8231
2018-02-02 11:27:22 +08:00
yangzhenyu 92d57f52a1 Tempest plugin support for message body md5.
Add the property ``checksum`` for message schema.

Implement blueprint support-md5-of-body
Change-Id: Icb82042afb1759f129f09e55c2961f1802ae83b4
2018-01-21 17:52:37 +08:00
gecong1973 2c466738b2 Fix zaqar tempest plugin grenade ci failure
There are grenade ci failure in zaqar, this patch fix it

Change-Id: Iba6024354cc37c1b0d68292d44352014c343d58e
2018-01-03 21:38:37 -08:00
yangzhenyu 59144c045c Tempest plugin support for delayed queues
This patch is mainly to deal with the tempest plugin for delayed queue.
The delay queue added the `_default_message_delay` attribute, so tempest
plugin also add this attribute-related tests.

Change-Id: I4799690e00f62a3124e390324b3957a9aae37535
Implement: blueprint delayed-queues
2017-12-23 20:54:17 +08:00
yangzhenyu 7e69ec22ba Delete the number of queue metadata check
Currently in the tempest plugin, the number of queue metadata will be
forced to check, this is not conducive to the new metadata added. And the
need for verification is not great, so delete it here.

Change-Id: I0a15600a836f609e4b992f8a80ba887e312aa780
2017-12-07 14:11:03 +08:00
yangzhenyu a4112c58ad Revert "Tempest plugin support for delayed queues"
This reverts commit 3935644ae5.

The delayed queue patch must merge before the patch.

Change-Id: Ibda781d1822c683e3e52be013ea7ad8d48b31c5b
2017-12-04 10:15:57 +00:00
Zuul fdc427ef8a Merge "Added docs for installation and running tests" 2017-12-04 08:36:00 +00:00
yangzhenyu 3935644ae5 Tempest plugin support for delayed queues
This patch is mainly to deal with the tempest plugin for delayed queue.
The delay queue added the `_default_message_delay` attribute, so tempest
plugin also add this attribute-related tests.

Change-Id: Ibea711ebb7377bba497db53c64a216c889cd0ee8
Implement: blueprint delayed-queues
2017-12-04 09:51:51 +08:00
Chandan Kumar 8b929b30fb Added docs for installation and running tests
Change-Id: I2fef8374ff8efe9fcb5588de0c312f87f6a803e4
2017-11-10 17:35:54 +05:30
Chandan Kumar 30219666aa Refactored zaqar tempest plugin directory structure
* switch from zaqar.tests.tempest_plugin to zaqar_tempest_plugin
* Cleaned up README.rst and setup.cfg
* Use zaqar_tempest_plugin as a tempest plugin package
* Fixed git-review
* Fixed tox.ini

Implements: blueprint zaqar-tempest-plugin

Change-Id: I78d657bcdec4d5c095af8eb1dfb93b5e3dfa0ff5
2017-09-22 04:59:27 +00:00
Chandan Kumar db9d4c259b Apply cookiecutter to newly split project
This tempest plugin is being split out of the main zaqar project in
accordance with Queens goal "Split Tempest Plugins into Separate
Repos/Projects"[1]. This patch applies the standard boilerplate files
for OpenStack projects so that it can stand on its own.

[1] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html
2017-09-06 21:33:12 +05:30
Jenkins 56699d78a0 Merge "Fix bug in mongodb backend for dead letter queue" 2017-08-07 07:25:46 +00:00
gengchc2 570baba42b Fix bug in mongodb backend for dead letter queue
In the function{ClaimController:create} for mongodb backend, there
is an error when a message is inserted to the dead letter
queue.Because a mongodb collection(messages) is shared by
many queues, we need to delete first and then insert,
otherwise insert_one will cause the following error:
pymongo.errors.DuplicateKeyError: insertDocument :: caused by ::
11000 E11000 duplicate key error index: admin.test.$_id_  dup key:
{ : ObjectId('xxxxxxxxxxxxxxxxxxxxxx') }

Depends-On: I1ee88a8963e2bc80172710da5ab60313952495e4
Depends-On: I8c3642f3883ecc68853735636fc3a748b9c780b6
Closes-Bug: #1707814
Change-Id: If7824d135ecd6999716954e6fa4fa000434c4ed4
2017-08-07 02:44:55 +00:00
Jenkins be00d8b6f4 Merge "Fix tempest test_set_and_get_queue_metadata" 2017-08-07 01:50:18 +00:00
gecong1973 ce117999c7 Fix tempest test_set_and_get_queue_metadata
test_set_and_get_queue_metadata is skipped as result of 'bug1543900',
this patch fix it

Change-Id: If0e71213bd65106fd95ec18a89782448ffe67264
2017-08-03 07:24:07 +00:00
Jenkins bc4a8ea356 Merge "Remove Deprecation tempest Warning" 2017-07-31 03:31:18 +00:00
gecong1973 508a0609e8 Remove Deprecation tempest Warning
when running tempest test, there are some DeprecationWarning:
Read-only property 'os' has moved to 'os_primary' in version 'Pike'
and will be removed in version 'Queens', this patch fix it.

Change-Id: I51511a06ca863f6a98801fef55a5c845fbf58619
2017-07-29 14:03:43 +00:00
ritesh.arya 490a44b733 Replace uuid.uuid4().hex with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids.
We should use that function to generate uuids for consistency.

Change-Id: If31cc81bbf2f386db660a760eb866c7c1abd786a
2017-07-24 05:30:23 +00:00
Jenkins 91bbe35b6c Merge "Replace test.attr with decorators.attr" 2017-05-19 01:03:37 +00:00
wangxiyuan 0cec5d4143 Replace test.attr with decorators.attr
Function 'tempest.test.attr()' has moved to
'tempest.lib.decorators.attr()' in version 'Pike'
and will be removed in a future version.

Change-Id: Id9cca7a685afd6d0736d2bad8492d48845771ad4
2017-04-25 15:50:24 +08:00