Commit Graph

24 Commits

Author SHA1 Message Date
manchandavishal 28d4393995 Cleanup for lower-constraints job
The patch 7f29364734 removes the lower-constraints job from
the gate but related file like lower-constarints.txt are not
removed. This patch removes the lower-constraints.txt file and
its reference from tox.ini.

Also TC passed a resolution about 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. For more info please refer [1], [2].

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ica7454c88d17874ed29c5d29d399ba5684f7f9d1
2022-05-02 22:55:07 +05:30
manchandavishal ab7d97fe45 Run npm nodejs job with Firefox browser
This patch update browser from Chrome to Firefox
in karma.conf.js because nodejs fails with Chrome
browser as not able to access some URL.
So let's switch to Firefox browser now then we can
use Chrome browser in future once this issue is resolved.

It also bump few pacakges version in 'lower-constraints.txt'
to fix lower-constraint job.

Change-Id: Id8454b0b0f7dc4b257699734f779935fb05b512f
2020-12-23 13:41:31 +00:00
Ghanshyam Mann 65b44569a5 [goal] Migrate 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: #40198

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: I1158e928766888a1db9081f20e3c3540d7ce1fd3
2020-08-04 12:45:41 +00:00
Hervé Beraud faf77e9561 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I6240c4a3ba79858cfbdb9341b26d72a3910c0b7d
2020-06-09 01:27:23 +02:00
Andreas Jaeger f4fca35744 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: Ifd0cbfb6e8ee1c6b998e73b3c6c4e922fe07841f
2020-05-31 19:56:44 +02:00
Andreas Jaeger 7975ca5ca4 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete
- remove unused sections from tox.ini

Change-Id: Ia14273b824c3ee16ac2c8517ea73c3fa8d24484b
2020-05-09 19:34:39 +02:00
Sean McGinnis 22efa8fd7f Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I5ad2c7a44dee2e19ab2576f206c69d94126a22b1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
2020-04-20 03:54:03 -07:00
zhurong 160feca049 Remove six from lower-constraints.txt
Change-Id: Iaa60aca4a9a31ede2322ecc6fdc751d35ccb7bcb
2020-04-14 06:33:20 +00:00
zhurong c946775e91 Add pytest to test requirements
Change-Id: I3ea0c9255d99ce213065cfcf9038b638d19691aa
2020-04-13 23:32:32 -07:00
manchandavishal 23978c6019 Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in murano-dashboard uses pyScss 1.3.4 which can cause the
failure in future. So this patch update pyScss version in
lower-constraints.txt to sync the change.

[1] https://review.opendev.org/#/c/715241/

Change-Id: I3815273c3adebe1230355ccc0803da7989560611
2020-04-01 18:22:40 +00:00
zhurong a9956206d5 Fix openstack-tox-lower-constraints job
Change-Id: Ie684ebba86cbab6e6a8d162067eb711225b0f355
2020-03-30 02:02:08 -07:00
manchandavishal 8ab6fbd0cf Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I59e016fd771282798bd095c562e2fa11a8e4ea43
2020-01-09 02:31:14 +00:00
Akihiro Motoki c62fe30493 Drop django-babel from requirement.txt
We have switched the babel extractor for Django from django-babel
to enmerkar recently. murano-dashboard requirements.txt needs to
sync the change. enmerkar, a successor of django-babel will be
installed via horizon, so we don't need to have it in requirements.txt
explicitly.

lower-constrants.txt is updated to use enmerkar accordingly.

Change-Id: Iab0a50a6f6546d3d67d0e9b00f9bbd04ee2f6c7c
2020-01-08 18:11:51 +09:00
zhurong 4eb6d37a2a Fix semantic_version compared
Change-Id: I1e9566c9e5cc93c87f38286965677e5f07009ab2
2019-09-26 00:16:54 -07:00
pengyuesheng 090fa214f8 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: I8c9dbce32c592a99671716c249b1a338824169c0
2019-07-04 16:04:18 +08:00
zhurong dc0bc45713 Remove the dependency of floppyforms
django-floppyforms is not very well supported anymore
and was dropped from Ubuntu in Xenial.

Closes-bug: #1805193
Change-Id: I46bf2d43794a67a4dc080afa9f1740a582cb7631
2019-02-27 05:42:23 +00:00
Akihiro Motoki 98ef69ab2c Clean up usage of APIMockTestCase
In Stein development version of horizon, APITestCase and APIMockTestCase
are identical, and APIMockTestCase will be dropped in future.
murano-dashboard is the only consumer of APIMockTestCase now.
This commit clean up the usage of APIMockTestCase.

horizon stein depends on osprofiler>=2.3.0, so lower-constraints.txt
file is updated accordingly.

Change-Id: I36cb8ade8ec80cd313dc9be9e1f1a67daeb60c87
2019-01-31 23:43:42 +09:00
zhurong 494b45efb6 Fix lower constraints
Change-Id: I2a14b43b80e6bdb7c59ca051c9657da0b6ae800a
2019-01-02 02:21:35 +00:00
zhurong 4985bfa010 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

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.

And murano-dashboard using unittest instead of testtools.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
2018-10-09 02:22:08 +00:00
zhurong caaa9ea88d murano-dashbord python3 fix and use standard cover tox env
Change-Id: I1d68ca7cbe325425cd1c05ff3101f19d3cb50b0a
2018-10-08 16:54:53 +08:00
Chuck Short 5e52eb36d2 Remove use_mox directive
As of horizon 14.0.0.0b2 or later the use_mox directive is unecessary
so we can remove it.

Additionally:
* Drop mox3 from test-requirements.txt
* raise lower bound for Horizon (due to mox3 removal)

Change-Id: Ibcdd5fcda789a4038a538b19d09bc87cdc6fe7f3
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-09 13:50:51 -04:00
Akihiro Motoki 6285103ef0 Fix lower-constraints tox env
Previously install_command specifies upper-constraints
so lower-constraints actually did not work.
upper-constraints must be specified via 'deps' instead of 'install_command'.

The fix reveals that django-formtools 1.0 is not compatible with
Django 1.11 or later. django-formtools 2.0 seems the minimum requirement.

Castellan 0.16.0 is not compatible with murano-dashboard because there is
barbican_endpoint_type. The minimum required version is 0.18.0.

This commit also drops Django dependency in requirements.txt.
After commit 7e91070789187d9e6b5ac2b57ca755504e058e32 in
openstack/requirements repo, all project requirements.txt must
have lower bounds and Django entry hits this.
Horizon declares django dependencies, so there is no need to
declare django dependencies in murano-dashboard explicitly.

Change-Id: I3048ca5570523494f5a58a15449902f8cb3eb3a4
2018-07-16 16:35:21 +09:00
zhurong 87f1b5b658 Django 2.0 support and fix lower-constraints tox env
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.
And update the lower-constraints.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Co-Authored-By: Ellen Batbouta <ellen.batbouta@oracle.com>

Change-Id: I3456162c934eb48ccf180d80b5cf7ff5614221c0
2018-06-13 12:03:55 +00:00
Doug Hellmann 129da5afa3 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I90e43331d22a2f2eb324e3b742153cd0327fcee3
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-26 00:45:51 +00:00