Commit Graph

335 Commits

Author SHA1 Message Date
Hasan Acar a5e3d8271f fix: pytz lib added to requirements.txt
fix: changing envlist
Change-Id: I9b086fb5c61156a3d41c381e5c1f2b29e4b31793
2024-03-06 13:41:45 +00:00
Dr. Jens Harbott 090db5b692 Fix deprecated zuul queue syntax
Zuul deprecated (and now removed) declaring shared queues at a pipeline
level [1]. This patch fixes the syntax to make the gate work again for
monasca-common.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-May/028603.html

Change-Id: I3cacbdc15cc4e8ed5d15d4dea1bd91e5e1dca109
2023-08-12 23:13:50 +02:00
Ghanshyam Mann 4163264c55 Update 'Maintained' stable branch jobs on master gate
We have stable/yoga released and stable/ussuri is in
'Extended Maintenance' state. Current 'Maintained'
stable branches are yoga, xena, wallaby, and victoria.

As per tempest stable branch testing policy[1], adding the
newly released stable/yoga job and remove the EM stable/ussuri
job.

[1] https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

Change-Id: Ie0a39407a98875afc7d2d87663b4a17c27fa8fc7
2022-04-14 20:29:06 -05:00
Ghanshyam Mann b908890301 Add stable branch jobs on the plugins master gate
Supported stable branches in maintenance state
(ussuri, victoria, wallaby, and xena) use the Tempest and plugins
master version for their testing. To make sure master version (new
tests or any changes) is compatible with stable branch testing,
we need to add the stable branches job on the plugins master gate.
Tempest and many other plugins are already testing the stable
branches in same way[1].

Ussuri onwards, Tempest or plugins are py3 only, so we are
running only python3 version of stable jobs

Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

 [1] e8f1876aa6/.zuul.yaml (L646)

Change-Id: Ib7b44634eae3b3ee4040380f589b1964a783f99b
2022-04-03 10:04:27 +00:00
Martin Chacon Piza 69bb2483ea Rename tenant_id with project_id
Since oslo.context=4.0.0 Feb 3, 2022  the deprecated argument
tenant was removed [1]

[1] f4cbe4c296

Change-Id: I710a19e14c795b4c74b7a772fbd80809c9777639
2022-04-02 22:33:54 +02:00
Pierre Riteau 062cb7576a Fix Docker build
The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: I55924ec1721181f8301357729df5d2c4abcad892
2021-05-20 18:33:53 +02:00
Martin Chacon Piza 74ad064fba Fix zuul publish docker image job
Add tag to docker push command

Change-Id: Ia14be949ad5b02d776d35ac24d008fe4661c9bab
2021-01-19 23:31:24 +01:00
Hervé Beraud f3692d124f 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: I4bbbd504e7be70e1a02b308c5e7b2a761e9d124f
2021-01-07 14:43:08 +01:00
wangzihao a46fb59245 Remove six
Remove six Replace the following items with Python 3 style code.
- six.PY3
- six.moves.urllib.parse
- six.text_type

Story: 2008305
Task: 41363
Change-Id: I864492ffcd05edf8bb803bf9fbe6c599617e749b
2020-12-07 11:03:02 +08:00
Martin Chacon Piza c0c22f800b Fix Zuul job publish-monasca-tempest-plugin-docker-image
This Zuul job [1] fails to login into Docker Hub

[1] https://zuul.opendev.org/t/openstack/builds?job_name=publish-monasca-tempest-plugin-docker-image

Change-Id: I0cb8e269399673f69928239e14285371bde8e01f
2020-11-25 11:29:57 +01:00
Doug Szumski 4e5cab3fb8 Improve configurability of Tempest tests
Adds basic support for configuring various parts of the tests to
make it easier to use them in environments which are configured
differently to DevStack. Specifically in this case the motivation
is to run the Monasca Tempest tests in Kolla CI.

This should be a NOOP change for existing environments.

Change-Id: If6be3a4d54a7b10c3ff40f9ed34045c50ffc3bae
2020-07-30 09:46:33 +00:00
Zuul 42e94266d7 Merge "Set tempest tests for logs as voting again" 2020-06-04 10:56:56 +00:00
Zuul aee9e91ac3 Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-03 10:43:01 +00:00
Andreas Jaeger 7752b4c912 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.

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: I5ebcd8f2cfa9f44830279679e3d6bcd24212bd93
2020-05-31 19:50:12 +02:00
inspurericzhang bdd3a1e808 Add py38 package metadata
Change-Id: I1c5c422f248438f1e6462befa205c4da0684060f
2020-05-28 11:43:38 +08:00
Ghanshyam Mann 08e45ac2f1 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Iea7d54b523130f0e3b251db0bacd3421ec7f99f6
2020-05-12 19:30:25 -05:00
Zuul e9f69f468b Merge "Update docs building" 2020-04-23 10:53:27 +00:00
Zuul dee5cc6388 Merge "Update hacking for Python3" 2020-04-23 10:53:26 +00:00
Witek Bedyk 47f2042ef9 Set tempest tests for logs as voting again
Change-Id: I4bbd289e3b0a8167af2c4249726411a5f9ad9422
Story: 2003881
Task: 38334
2020-04-23 09:56:56 +00:00
Zuul 65abd585ed Merge "Remove non-zero period negative tests" 2020-04-22 09:19:57 +00:00
Andreas Jaeger e26e00897e Update docs building
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.

Change-Id: I5678058e43df7e708c7aefd7c06431ab21415e34
2020-04-19 09:51:25 +02:00
Doug Szumski 764b024eb7 Remove non-zero period negative tests
By allowing all notification types to support periodic notifications
these tests are no longer required. After this feature has been merged,
some tests could be added back to prevent regressions in the new
behaviour.

Depends-On: https://review.opendev.org/719989
Change-Id: I18a27800b8c1b28ab224375b42c57ac6a0f7ae78
Story: 2006837
Task: 37421
2020-04-18 13:12:53 +02:00
Andreas Jaeger 1ddfa88fec Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

The tempest plugin is used on older branches as well.
We really only need hacking on master anyways,
where we no longer support python 2, so here we
make the requirement specific to python 3.

Change-Id: I39f95e4ce193c1435c4901825bed949cdaaba72e
2020-04-04 09:25:09 +02:00
Ghanshyam 34a5bdff42 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-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: I27c82c48541291553141c197cb9c227720cc6dbb
2020-01-24 14:46:04 +00:00
Arseni Lipinski 6f2f401bd5 Change headers in requests to Kibana
This is related to changed behavior in newer Kibana versions.

Story: 2006376
Task: 36165

Change-Id: I2d25afe3ad4e29efa540381450ba71405f36ff5c
2020-01-17 16:26:11 +00:00
Witek Bedyk dc7c893d33 Update Zuul job name for tempest tests
We should run the job testing the new merged API.

The change also removes Pyhon 2 tempest tests which are not supported
anymore.

Additionally, temporarily set the job as non-voting to allow merging
cross-dependant changes in API and tempest test related to ELK upgrade.

Change-Id: I4e679ca48a971bf39231688b57d03fc0ccd48183
Story: 2003881
Task: 37984
2020-01-14 09:21:38 +01:00
Zuul dd8ba2778a Merge "Publish the doc for monasca tempest plugin" 2019-11-12 15:44:14 +00:00
Adrian Czarnecki 0b4183c018 Fix test_should_reject_if_wrong_content_type test
Adjust test to proper handle response from new unified api when wrong content type

Change-Id: I4bcd3abdc188e58db758b6e3250954d6c4d3b254
2019-10-23 09:52:03 +00:00
Zuul 81469fbe21 Merge "Support time range to query dimension names/values" 2019-10-02 19:23:54 +00:00
Manish Kumar c6153dfa3a Publish the doc for monasca tempest plugin
Adding the publish doc job which will publish the doc instead of
just building it.

Change-Id: Ieaedb2d09cf7e4163c22a5f28341440c95dcc7f6
2019-08-14 09:57:39 +05:30
pengyuesheng e8db39351c Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I5d405167c73b6e2409d6673e116475c67b18b96e
2019-08-01 10:39:07 +08:00
Bharat Kunwar 9734af4fe8 Support time range to query dimension names/values
At present, dimensions are not scoped by time window, which makes
dimension related queries to large databases timeout because it searches
all of time instead of a time window specified on the grafana app.

This commit adds tempest tests to accompany the changes to the API
server and as such, depends on it.

Depends-On: https://review.opendev.org/#/c/670318/
Change-Id: Ibc5378deea51a18ed7dac857b26d770950b17620
Story: 2006204
Task: 35805
2019-07-29 13:45:20 +01:00
pengyuesheng 8284146887 Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details
Depend-On: https://review.opendev.org/#/c/663060/

Change-Id: Icb34c67de5f3015800650bc50b04eff1b1974c25
2019-07-29 15:06:02 +08:00
Zuul cc0581fcab Merge "Use unicode literals in test_metrics" 2019-07-10 18:54:34 +00:00
poothia 15857dfe91 Update hacking version to 1.1.x
This commit updates hacking version in test-requirements

Change-Id: If88575d4fdb16b2f5f4acc71f750414e4ce423fb
Story: 2004930
Task: 35690
2019-07-05 15:14:53 +05:30
Witek Bedyk ffd5317158 Use unicode literals in test_metrics
The change unifies the usage of text string literals in the package and
declares them as unicode. It simplifies comparing test values with
actual results across Python 2 and 3 deployments. It also fixes the bug
described in the user story.

Change-Id: I87c38faf41f7c1bff72d45d238a6f38751fad483
Story: 2005841
Task: 33613
2019-07-03 10:57:13 +02:00
akhiljain23 f3696e3818 Update sphinx version in test-requirement.txt
Update sphinx dependency to avoid gate failure.
Global requirement link [1]

[1] 23ff2adcec/global-requirements.txt (L455)

Change-Id: I619562474501922fd3fa250da0835cc5e3ff42cd
2019-07-01 13:13:04 +00:00
zhulingjie f90c73911d Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I10f155c316dc77b69dcbbc387f3edf59ed84b5dd
2019-06-14 14:09:25 +00:00
OpenDev Sysadmins ed1000f9bf 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:01 +00:00
Dobroslaw Zybort d0681feba2 Push Docker image to Docker Hub
Story: 2001694
Task: 30529

Depends-On: https://review.openstack.org/#/c/652976
Change-Id: I8eb06aa7b0ec7ce56db16e2c2bde800e5dbc0f9f
2019-04-18 10:06:45 +00:00
Dobroslaw Zybort 546fc67584 Add waiting for monasca-api before starting in docker
Story: 2001694
Task: 30534

Change-Id: I6794b9c71ac86427a2abaa812c3a4039bab75e8a
2019-04-16 14:40:10 +02:00
Zuul 3ea749dda1 Merge "Use proper naming for docker service image zuul job" 2019-04-10 11:21:37 +00:00
Dobroslaw Zybort aaf0c8766f Use proper naming for docker service image zuul job
https://docs.openstack.org/infra/manual/drivers.html#consistent-naming-for-jobs-with-zuul-v3

Depends-On: https://review.openstack.org/#/c/650011
Change-Id: I85611204d7da01639e9aac8e0ecf9b11e775cb97
2019-04-09 10:54:51 +02:00
Ethan Apodaca 46a97d9c52 Update alarms count tests
Updates alarms count test for multiple metric dimension values.

Change-Id: Idd2b5b66700a3c1234b22fad98020e31369f60f3
Story: 2005311
Task: 30278
2019-04-08 19:15:02 +00:00
Dobroslaw Zybort 71817e2ede Create Docker image and build in Zuul
Change-Id: I9de51069c8302ac44711f08f0d396d09389b0067
Story: 2001694
Topic: 29771
2019-03-25 14:58:24 +01:00
Adrian Czarnecki f1d457fc79 Add tests for events
Story: 2004549
Task: 28302
Change-Id: Id505116637ac66de349962c9f804ddaa14601475
2019-03-04 12:46:09 +00:00
Zuul fa5f826138 Merge "Make rejectable_message_size configurable for log-api tests" 2019-02-26 14:16:38 +00:00
Thomas Bechtold 2bb88453ed Recognize config options from [service_available]
Currently, settings in [service_available] for Monasca in tempest.conf
do not have any effect. That can lead to the situation where the
monasca-tempest-plugin is installed but monasca is not configured
which results in all monasca tempest tests failing.
With this patch, setting:

- [service_available]monasca
- [service_available]logs
- [service_available]logs-search

to "False" will skip all available tests for monasca.
If only monasca-api is available (no monasca-log-api and/or
elasticsearch), [service_available]monasca can be set to "True" and
the other 2 options ("logs" and "logs-search") to "False" so only the
monasca-api tempest tests are executed.

Depends-On: https://review.openstack.org/634308
Change-Id: I1f0cbb95765ae5fc6dca0da7af8ab56d2daf9a7f
Story: 2004917
Task: 29277
2019-02-11 05:41:22 +00:00
Thomas Bechtold 2bbd16e46d Make rejectable_message_size configurable for log-api tests
When setting [service]max_log_size in the monasca-log-api
configuration to a value larger than the default (which is 1 MB
currently), the following tempest tests fail:

- monasca_tempest_tests.tests.log_api.test_constraints.\
  TestLogApiConstraints.test_should_reject_too_big_message
- monasca_tempest_tests.tests.log_api.test_constraints.\
  TestLogApiConstraints.test_should_reject_too_big_message_multiline

This happens because the tempest tests assume that the maximum log
size is 1 MB but that is not always the case because
[service]max_log_size can be increased to a larger value.

So add a new configuration option in tempest.conf under the
[monitoring] section to be able to set the maximum log size. This
option (called "log_api_max_log_size") should be set to the same value
than [service]max_log_size in the monasca-log-api configuration file.

Depends-On: https://review.openstack.org/#/c/634308/
Change-Id: I893c66fd640017e6cc94298207d771a3ac3b8053
Story: 2004944
Task: 29346
2019-02-06 10:04:52 +01:00
Witek Bedyk 52e319e20f Add tempest tests jobs
Change-Id: I1d6ede6b088ab9c5aeb819d8cc4205ee003acf0c
2019-01-31 21:44:05 +01:00