Commit Graph

50 Commits

Author SHA1 Message Date
Takashi Kajinami 5c150c8cf4 Bump hacking
hacking 3.1.x is too old.

Change-Id: I111e9aabea6470611b1eb1a83cbdc34d2f1e1c59
2024-01-27 23:34:44 +09:00
Dina Saparbaeva 275c132fd5 Update requirements
pip 20.3 brings in a strict dependency resolver which
is enabled by default. This causes our lower-constraints
tests to fail, because the requirement files were out
of date from reality - they had conflicting requirements
which previous versions of pip were ignoring. Let's catch
up package versions to newer ones that are supported in
the python runtimes that the Wallaby release will be
deployed to.

[1] http://pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html
[2] https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020

Change-Id: I6ddd11535e9365e8b55a6829967b886c2253d6f0
2020-12-31 20:48:15 -03:00
Andreas Jaeger 62031d8a7c 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: Ic888f31814431683d8cd71e1ab25c0dc63bcc8ef
2020-05-21 14:01:02 +02:00
Ghanshyam Mann 3f03e072d3 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: I3b9f61ccb0607acbd98cb3f09e8f622656ac8351
2020-05-12 19:28:42 -05:00
Andreas Jaeger 4d19dcd9ea Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Update lower-constraints for osprofiler as required by
  other dependencies.

Change-Id: I84ec7cae5b051bb9c69969d8ccaa28b053914840
2020-04-17 22:28:25 +02:00
Goutham Pacha Ravi a2dcb0e4eb Add pytest to test-requirements
We need this library to run unit tests
that depend on base classes in horizon.
See https://review.opendev.org/#/c/711195/
for the horizon change.

Change-Id: I39fcb629c44db156b3d59481b78f24338d494a7c
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-04-14 17:19:00 -07:00
Zuul 8a5658760f Merge "Update hacking for Python3" 2020-04-04 16:29:00 +00:00
Victoria Martinez de la Cruz 8dae688801 Use unittest.mock instead of third party mock
Following openstack horizon change
I2de669d8e89b8daeb7ee5405ffab35af6307c40b

Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Unblocks currently broken pyX gates

Change-Id: Id140c0a13c9d2a2bfcd1d851a04407f232021eef
Closes-Bug: #1870436
2020-04-03 17:48:42 +00:00
Andreas Jaeger ca070fe479 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not
installed in a running system.

Change-Id: Ia62b221aa0807300eaee7b075607ac6b56256b76
2020-04-01 13:37:50 +02:00
pengyuesheng a9c6352ef9 Update sphinx dependency
Sphinx 2.0 no longer works on python 2.7,
so we need to start capping it there as well
depend on https://review.opendev.org/#/c/657890/

Change-Id: Iaebf5772043c4fd97162154eda896dd26209f6d0
2019-06-06 10:40:59 +08:00
Ivan Kolodyazhny 019526b5f8 Add manila-ui integration tests
This patch adds basic tests to verify that manila-ui is
installed and could be opened.

manila-ui-integration-tests job is added in a
non-voting mode.

Depends-On: https://review.openstack.org/634712
Change-Id: I67e876a5cb26637b62225fc854a906dc1a714e76
2019-02-07 10:07:26 +00:00
jacky06 c4df2c9c5b Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Idf29433557f48425ba08565cdccbaf06b1acb785
2019-01-10 02:51:53 +00:00
Akihiro Motoki c63b745776 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

Change-Id: Ic462de67d57ad96887bd321323b8ff88d2c71185
2018-08-17 00:49:09 +09:00
Charles Short 0969553276 Require the (soon-to-be) Rocky version of Horizon
... or at least the first published tarball which will lead to Rocky.
On the other side this means forcing the usage of mox as long as
there are tests that depends on it (the switch was already flipped
in Horizon, so it needs to be enabled here).

This allows us to depend on newer Horizon features, including changes
to the test suite that are useful for the mox removal effort.

Also remove mox since there are no unit tests that need it.

Change-Id: Ia8e0d5512f11e3d191ca2f6259075e35490290c2
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-05-14 07:48:29 -04:00
OpenStack Proposal Bot 8ba2d5f275 Updated from global requirements
Change-Id: I4016d3c5fb18ecc911c144504aad4c25824a60aa
2018-04-15 02:23:54 +00:00
Victoria Martinez de la Cruz 9ca03cd68c Add horizon to requirements
Change-Id: I6ae1575f44f7619341d3009423abc9230a865955
2018-03-15 15:46:30 -03:00
OpenStack Proposal Bot 67ea44d1f4 Updated from global requirements
Change-Id: I2ce9562a2ad11fbf27f00bc39f4fabf2910263f6
2018-03-10 13:20:17 +00:00
OpenStack Proposal Bot 881c2d8c52 Updated from global requirements
Change-Id: Ibabb22c35e7ffc57dbfe6cd36e15f84936987156
2018-01-27 17:50:08 +00:00
OpenStack Proposal Bot 7feb84655f Updated from global requirements
Change-Id: Iabc2eeca87f8a885eefcd9a13d77e1c3be2d080f
2018-01-24 01:59:25 +00:00
OpenStack Proposal Bot dff468d1c6 Updated from global requirements
Change-Id: I2c29221e080af113d82297a2e840f1386dca6c27
2017-11-16 11:09:28 +00:00
OpenStack Proposal Bot 149f491505 Updated from global requirements
Change-Id: I950c5e7dc9d13873d916a2f5f595f9b61e875872
2017-09-17 17:44:41 +00:00
Tom Barron f74fff4d63 doc migration: openstackdocstheme
This patch transitions to the openstackdocs theme from
oslosphinx in accord with the OpenStack manuals project
migration spec [1].

[1] https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Change-Id: I92cc896bbd505d10c9dc7101bacb4caedf43da8f
Partial-Bug: #1706181
Needed-By: I9c378a188f9009a82100f5488a936d43536bd5b6
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
2017-08-21 10:21:33 -04:00
OpenStack Proposal Bot f165d0d2e1 Updated from global requirements
Change-Id: Ib8e91f8cf1d8a1e3ac19cac9bfe6c22eb18b01c3
2017-08-18 12:20:29 +00:00
OpenStack Proposal Bot aa7b40c61d Updated from global requirements
Change-Id: I694e2cd648be6b8d6ea8e11224da86b910773ede
2017-06-27 12:12:28 +00:00
OpenStack Proposal Bot 28111cf878 Updated from global requirements
Change-Id: I43aa521b5ec4b21b04cbfe277fc5e3c3f3ea426c
2017-06-02 21:57:43 +00:00
OpenStack Proposal Bot 0dea011248 Updated from global requirements
Change-Id: Ibb92c292e894a42c79a6e3d03212779760c55344
2017-05-18 12:47:21 +00:00
OpenStack Proposal Bot 24be2b4c24 Updated from global requirements
Change-Id: I287432357976e16c557f199dda7eebf91a985541
2017-05-15 00:46:23 +00:00
OpenStack Proposal Bot 8eb5d6853e Updated from global requirements
Change-Id: I61bd36d983acfd29fa41d72e31bf54edb2ac5158
2017-03-30 00:24:51 +00:00
vponomaryov 414f9ca0cb Fix 2 CI breakages
1) Fix unit test that was using already removed var from Horizon [1]
2) Update 'hacking' lib dependency version to avoid pbr version conflict

[1] 4958805863df463cebb79b0175fa2fe8cbb83c5e

Change-Id: I2c4b1bff2ab913daadb0331711fa8fa6118ccbbb
2017-03-02 19:48:04 +02:00
OpenStack Proposal Bot 90945005b8 Updated from global requirements
Change-Id: I562687fdf45290cf7d1c8f05562c739ace439365
2017-02-10 05:50:57 +00:00
OpenStack Proposal Bot 5be13b0c1b Updated from global requirements
Change-Id: I86fad26346c3561a04601e02cb1a788a14c01e5d
2017-01-20 01:47:54 +00:00
OpenStack Proposal Bot 5d9ce74c40 Updated from global requirements
Change-Id: I80ba236a4d82a1cd94353fab0af27e7914b79eea
2016-11-02 21:54:37 +00:00
OpenStack Proposal Bot 142ca06967 Updated from global requirements
Change-Id: I60b91a8e252ca83a1a1257d92d195541d13fa432
2016-09-29 00:05:11 +00:00
OpenStack Proposal Bot 2382916e3a Updated from global requirements
Change-Id: I4b0f9646a558f3b9705b293d3322b044c5f5c9e0
2016-07-19 15:26:31 +00:00
OpenStack Proposal Bot fbf28d025c Updated from global requirements
Change-Id: Ib72bbec882a23daf1ec8ba61a1ac64fca6a6e5b9
2016-06-24 03:12:41 +00:00
OpenStack Proposal Bot 93962d4620 Updated from global requirements
Change-Id: Id7e33a8c6c3d9a91eb8f2c0f114093c2acd29989
2016-06-21 18:00:30 +00:00
Thomas Bechtold 838ffb0056 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: I6c2f73e006cafa1c220d034e79fbca15a517a999
2016-06-10 10:31:46 +02:00
OpenStack Proposal Bot 6faab82743 Updated from global requirements
Change-Id: Ifc7194f539baa2c91f956eee57f3f6f1e14e8b21
2016-05-30 22:20:34 +00:00
Goutham Pacha Ravi 31bd6e3366 Add support for releasenotes
Create the releasenotes directory and add the requisite
conf.py file to generate manila-ui's release notes.

project-config change: Ibb5e84e621ee0dadd8f6748252536a6447202611

Change-Id: I7a129c47bc3eba904754f4ec8e8140d42b29a0d1
2016-05-25 17:19:09 +00:00
OpenStack Proposal Bot bf382083b2 Updated from global requirements
Change-Id: I615539a7770b85ca483f4fe78ed73f09620477aa
2016-01-21 17:43:06 +00:00
OpenStack Proposal Bot 7e09cf66f9 Updated from global requirements
Change-Id: Id22fa0356f994a41cb4e3801f12d1111613535b8
2015-12-08 10:56:58 +00:00
OpenStack Proposal Bot bc3a2a7815 Updated from global requirements
Change-Id: I4c7d45ca1464cb711988e6698f31588695f4dee7
2015-11-19 15:46:43 +00:00
vponomaryov 9175d98493 Updated requirements and unit tests config
Changes:

1) Updated from global requirements

2) Updated "run_tests.sh" script to be able to run unit tests
using Django 1.8.* removing "--verbosity" opt.

3) Added tox jobs 'py27dj17' and 'py27dj18' to be able to run
unit tests for Django 1.7.* and 1.8.* in separate envs.

Change-Id: I267c8e7a6cb8d67d7331f4f00cb79ad98832d0e7
Closes-Bug: #1496412
2015-09-17 17:38:11 +03:00
vponomaryov ce1147977f Fix broken unit test
Horizon change I763f7606dde5df6cf09cbaf2c8e90158e0f256e3 fixed Horizon
when raised exception was not properly handled.
Our test 'test_detail_view_with_exception' was verifying old incorrect
behaviour of Horizon. When 'exceptions.handle" method is used and
message is provided exception is not expected to be escalated anymore.

Also, make manila-ui project pull always latest version of master branch
of Horizon project instead of latest tarball built on latest tag.
It will allow to run unit tests in CI and locally using same version of
Horizon.

Change-Id: I1f4ed03e69b06fe872abe48857b56ec480ec81a0
Closes-Bug: #1493845
2015-09-14 21:32:11 +03:00
Valeriy Ponomaryov 43f6005f20 Fix set/unset extra specs for share type update form
Currently, form of share type extra specs update does not allow several
valid cases for set/unset operations.

So, fix them and cover with unit tests.

Change-Id: I446a7226a3154f7d475115560fe343142311973b
Closes-Bug: #1481903
2015-08-25 12:24:28 +03:00
Igor Malinovskiy 6472612aa3 Fix breakage of unit tests
Fix import error in unit tests.

Change-Id: I32ea902d79e3b16d8eaac9377d1c97e03704c8e5
Closes-Bug: #1480354
2015-07-31 18:16:58 +03:00
Gary W. Smith 436d6b2cac Enable unit tests to run standalone
Enable unit tests to be run standalane; that is, without having a
local copy of the horizon source.  This is primarly intended for use in
automated builds.  The approach, taken from tuskar-ui, is to add an
entry in test-requirements.txt that refers to a source tarball of
horizon which is expanded into the virtual environment, permitting
references to horizon and openstack_dashboard to resolve correctly.

Add additional tooling to support running tests and building virtual
environments to mirror what is done in horizon.
2015-04-20 15:08:53 -07:00
Gary W. Smith 34d6957d30 Initial attempt to get unit tests working 2015-04-09 16:34:30 -07:00
Gary W. Smith 72cdc8488d Fix pep8 violations 2015-04-09 16:34:30 -07:00
Gary W. Smith 95dfd941cb Initial project creation 2015-03-13 14:01:16 -07:00