Commit Graph

77 Commits

Author SHA1 Message Date
Ghanshyam Mann 0976964257 Retire oswin-tempest-plugin: remove repo content
Winstackers project has been retired
- https://review.opendev.org/c/openstack/governance/+/886880

this commit removes the content of oswin-tempest-plugin
deliverables of this project

Change-Id: I489d36a539cb943c1d7216390e469a471719a2cf
2023-09-09 12:30:57 -07:00
Lucian Petrut 9e95d33d9e Update zuul queue configuration
Zuul changed the way in which queues have to be declared [1][2].
We'll update the oswin-tempest-plugin zuul configuration
accordingly.

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

Change-Id: I9b443aba106df12de5a8d215a0d88843bfecddf7
2022-10-25 12:15:16 +03:00
niuke 4fe48c2e38 remove unicode prefix from code
Change-Id: I77c6466d0e60210f1eeebc8d738f667d81d6b2ce
2022-08-23 19:08:57 +08:00
leiyuehui 2cb1819240 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  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: Idc2841a26f59dc0ba6bf8a24116f5dbcbb059a74
2022-06-14 12:09:02 +03:00
leiyuehui 87af7e0351 Update python testing as per zed cycle teting runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

Change-Id: I09f5c8abfbf33a628af4f2157164c588e725eac6
2022-06-14 10:06:17 +03:00
Roman Popelka 9b090f1d7a Remove create_keypair method
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_keypair

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ib540c643882e7dc656c81b9fe9e113ee569a5fd2
2022-03-08 11:22:50 +00:00
zhangboye 59e6a14d01 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: Id9f0c4322204212a814d79f01769e07a3ff942db
2021-04-20 16:58:33 +08:00
Andreas Jaeger 4e2b705bc0 Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version 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: I91b0a362a80ebd37e9bdc3096707851df658e2e7
2020-06-01 16:19:29 +02:00
Zuul 362036ab9d Merge "Add py38 package metadata" 2020-05-28 12:49:18 +00:00
Zuul be415f60a4 Merge "Fix hacking min version to 3.0.1" 2020-05-28 12:13:06 +00:00
Lucian Petrut 0a11b668e3 Drop Python 3.5 testing
Most OpenStack projects no longer support Python 3.5, which
currently leads to dependency issues.

Change-Id: Ic2cfce6dd9c4e24a5cd5cbebe1c49c6ddfac3607
2020-05-28 14:24:14 +03:00
inspurericzhang 35ddb0d422 Add py38 package metadata
Change-Id: I33179327a5cdbca42bd04abe27cda1e691c2a4c4
2020-05-28 11:49:13 +08:00
Ghanshyam Mann ddc698e6dc 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: Ie343a8e748e899196ed543370efe7bf734127163
2020-05-12 21:40:13 -05:00
Andreas Jaeger 801924705c Update docs building, cleanup
Update docs building and cleanup:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3, remove oslosphinx which is dead, create
  doc/requirements.txt file
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.
* Move constraints into deps, use TOX_CONSTRAINTS instead of obsolete
  UPPER_CONSTRAINTS
* Switch to hacking 3.0, fix problems found

Change-Id: If3c5094d7fbdc9033851024c8e3ae364e4768521
2020-05-03 11:55:53 +02:00
Lucian Petrut fc5ae5e7be Ussuri contributor docs community goal
This patch updates the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Change-Id: I8200260196d71e2ea133e4157b4ec0765536d41f
2020-03-27 10:36:35 +02:00
Zuul 7545d7235b Merge "Switch to official Ussuri jobs" 2020-02-21 15:31:49 +00:00
Zuul b4aa7dc726 Merge "Update hacking version to latest" 2020-02-21 15:31:48 +00:00
Zuul 79f52c6924 Merge "Drop python 2.7 support and testing" 2020-02-21 15:29:35 +00:00
Zuul 77ed375eb6 Merge "Update the constraints url" 2020-02-21 15:15:08 +00:00
Lucian Petrut 0108a120e8 Switch to stestr
Most of the OpenStack projects have switched to stestr, mostly due
to the fact that testrepository seems to be unmaintained.

We'll do the same for oswin-tempest-plugin, especially since
testrepository no longer handles skip exceptions properly, treating
them as failures.

Change-Id: I27a20bad68fef9f19d46eea4aefcd7e4998fe838
2020-02-21 16:12:12 +02:00
Ghanshyam Mann dc1b2e77a0 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

oswin-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://review.opendev.org/#/c/691178/

Change-Id: I1e570f003a55fcbb3d4a628f788d5b34b76671db
2020-01-22 02:55:34 +00:00
pangliye b8f63498a3 Switch to official Ussuri jobs
Change-Id: I9ad440ad897867ca6f188500af61a70c19fc89b1
2019-11-20 09:47:09 +00:00
pengyuesheng 003d91b838 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I1d3e1632523ad385c7c686f8b17bd05853130503
2019-09-23 16:29:36 +08:00
Corey Bryant a291a1b471 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that since tempest is branchless that we retain py35 support.

Change-Id: I622ef0306ac48509c46e243c83f458e57e496258
Story: #2005924
Task: #34257
2019-07-30 11:11:42 -04:00
caoyuan b457fbffbb Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Iec2c8fbc41f3c49bd129068e8baaded1774dfc22
2019-04-24 18:52:59 +08:00
OpenDev Sysadmins 35f6001a9b 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:31:57 +00:00
zhouxinyong 4a602dcc8e Update hacking version to latest
Change-Id: I8609705015db2b4a2d851c4c780973d75f01b24d
2019-01-26 11:59:08 +08:00
Vieri df19edfc31 Add Python 3.6 classifier to setup.cfg
Change-Id: Ie9daa7fd219319bbe75bbe0f413db0f22b0f218e
2018-11-27 07:29:45 +00:00
98k a6a9a4a7eb Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Iaa9bde9ddde632edde9158c344cdd4d24a68998e
2018-11-09 03:16:34 +00:00
qingszhao 277eef503d Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added

Change-Id: I0aa14f4030b85fdcd0ca2647785aa7b812e340ed
2018-09-29 18:01:46 +08:00
98k ef0396e186 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I9040c024342d2e5b3de45db9e6f5ffc010ca228a
Story: #2002586
Task: #24345
2018-08-24 06:31:41 +00:00
98k 7a788c7e89 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: I5c2357e12288e6aa1abef9346d5e6156ebf2c5c7
Story: #2002586
Task: #24345
2018-08-24 06:31:39 +00:00
Zuul b8417de02f Merge "change default python 3 env in tox to 3.5" 2018-08-01 13:22:51 +00:00
qingszhao 9329f1872a change default python 3 env in tox to 3.5
Change-Id: If4ec18360c446bf5af1ab7ef4c256a0cc784d78c
2018-06-12 12:05:14 +08:00
huang.zhiping 0a7ec630db fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ica0eb93b9b6703f9be57205eaae94cf9e2fb0268
2018-06-09 19:57:37 +08:00
Zuul f5c9ea4dc8 Merge "Fixes test_metrics test" 2018-03-09 07:24:02 +00:00
Claudiu Belu dac28d1334 Fixes test_metrics test
Ceilometer API was removed in Queens, meaning that test_metrics has
not way to validate the metrics collected by the ceilometer-polling
agent.

The metrics are instead sent and collected by Gnocchi.

This patch adds a Gnocchi client, and updates the test_metrics
to use this client properly.

Change-Id: Id999d758505de10abb356befb854736e1904f6ee
2018-02-22 01:52:54 -08:00
Claudiu Belu e1ebf08001 Fixes devstack plugin script
The repo and path name is oswin-tempest-plugin, not
oswin_tempest_plugin. Because of this, Devstack fails if this plugin
is included in devstack's local.conf.

Change-Id: I3ea29fc0d9d7c3151c21728daf7345fbeb710b68
2018-02-11 08:28:21 -08:00
Andreas Jaeger 13506c22a8 Update requirements manually
The global requirments sync for this repo fails since it lists
packages that are not in the global list. Manually sync
requirements.

Failure log from requirements sync:
http://logs.openstack.org/d8/d89aad257d43fe02e42e44b2a0187dbd9f505c36/post/propose-update-requirements/15a7777/job-output.txt.gz#_2018-01-31_07_10_14_115335

Errors are:
'pywinrm' is not in global-requirements.txt or blacklist.txt

Change-Id: I24dd3c7ea9fa0a907c26ff62773b336c9d2d0b80
2018-01-31 09:14:33 +01:00
Zuul f1f2f8c29a Merge "Adds metrics collection scenario" 2017-11-21 11:13:55 +00:00
Claudiu Belu bce179882a Adds metrics collection scenario
This test suite verifies that the instance metrics are properly published
and collected and have non-zero values. The verification is done via the
ceilometer API.

Waiting for the ceilometer compute agent to poll the resources is crucial,
otherwise the test suite will fail due to the fact that no samples would
be found published before checking the samples.

The ceilometer agent's polling interval should have the same value as
the test suite's polled_metric_delay. This can be done in two ways:
a. Configure tempest's polled_metric_delay, by adding the following
line in tempest.conf, in the telemetry section:
    polled_metric_delay = <desired value>
b. Set the interval value in pipeline.yaml on the compute node to the
desired value and restart the ceilometer compute agent.

The second method is preferred, as the interval value defined in
pipeline.yaml is 600 seconds, which would mean each test would last
at least 10 minutes.

Change-Id: I2ad696c221fba860a30621686b464b8486bea583
2017-11-16 14:02:53 +00:00
zhengwei6082 3b340a54d4 Update the documentation link for doc migration
Change-Id: I4aa74602021d3383e6f9a9e606b31013afc8437a
2017-09-25 11:47:05 +08:00
Claudiu Belu cfe2ef1600 sets test_qos hypervisor version to 6003
Hyper-V disk QoS is supported on Windows / Hyper-V Server 2012 R2
or newer.

Change-Id: I981347ecfcba59e89c8d7537cda00a0d20e0e124
2017-09-11 14:41:23 -07:00
Claudiu Belu ab50a17aff Fixes tests method resolution
Python allows multiple inheritance, which we use in order to mix and
match test scenarios and actions.

Python performs method resolution as follows:
- checks if the method is defined in the current class.
- if not, check parents, left to right.

Since all tests have test_base as its left-most parent, all methods
are resolved in test_base, which is not the desired behaviour. This
affects optional_feature mixin in particular.

Change-Id: I19d3bdef85a12ef45b600aa4fc68afd390b96c9f
2017-09-07 05:18:02 -07:00
Claudiu Belu 975fe2382d Deduplicates optional_feature tests
The optional_feature mixin's tests can use the _check_resize
helper method, reducing the code duplication.

Change-Id: I3e3c9be1fe5ba3629e9c7b8db4917c421ce7bd71
2017-09-07 11:36:45 +00:00
Claudiu Belu 49f63c77d3 splits the resize mixin into two
Splits the _ResizeMixin into _ResizeMixin and _ResizeNegativeMixin.
Not all test scenarios have negative test scenarios (the cluster tests).

Change-Id: Icab2ebe1233f1bcf4f469d141a8046a5bbbed38e
2017-09-07 01:36:07 -07:00
Jenkins 727c9981cf Merge "Fixes flavor ref usage" 2017-09-07 08:35:00 +00:00
Claudiu Belu fb70f974b2 Fixes flavor ref usage
The test_base's _get_flavor_ref method should be used
when a flavor ref is required. Optional features rely on that
method, as it adds the optional feature as a flavor extra_spec.

The optional_feature's _get_flavor_ref should use the class' _FLAVOR_REF,
not the CONF.compute.flavor_ref. Some tests might require a different
flavor (secure_boot tests).

Change-Id: Ie7f0b0f20fe76a7df5a9b60c8f4c290e810eb2df
2017-09-06 16:22:24 +00:00
Jenkins efcec59cfa Merge "Fixes wsman's methods" 2017-09-06 14:40:51 +00:00
Claudiu Belu 1d804fdf2c Fixes wsman's methods
In a previous patch, a few extra arguments were added to
wsman's functions, but the argument names were a bit inconsistent,
or not passed correctly. This patch addresses this issue.

Change-Id: I93ee19248bb8fd511d3a42265d936cd2fff2839f
2017-09-06 04:23:28 -07:00