Commit Graph

36 Commits

Author SHA1 Message Date
manchandavishal 56958ac0fd [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: #40197

Closes-Bug: #1886298

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

Change-Id: I88cdf86365a0af8450e5fb823eab830834ce8fa1
2020-08-21 11:42:57 +00:00
Hervé Beraud ca55abec23 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Bump horizon to 18.3.0 in lower-constraints.txt since it is the
first version with "Use unittest.mock instead of third party mock"
change [1]

[1] 7eeb9e14f9

Change-Id: Ic64fffaeded18ac11ce438c77526e60a37aeaa1d
2020-06-10 13:59:58 +02:00
Ghanshyam Mann d2b5b18b3a 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: I7028aa296303e1dd138bcbc511072a4e4f228aad
2020-05-12 19:30:27 -05:00
Andreas Jaeger d694236c3a Cleanup py27 support
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:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
- Remove sphinx requirements, the repo has no docs

Change-Id: I3ee6abac9b5c4c639521bb2834a104bc53ce93ed
2020-04-15 19:01:08 +02:00
Andreas Jaeger db7c489c7a Add pytest requirement
Fix py36 and py37 tests, they are failing since pytest is not installed.
Horizon tests need this.

Change-Id: I8755d7e11e17aad6b48e7917eb07bf286fbd6e4f
2020-04-15 15:21:04 +02:00
Andreas Jaeger f037523797 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.

Remove hacking and friends from lower-constraints, they are not needed
for co-installing.

Change-Id: Ibef3bbaceb61612d678c542bc8c95da24a7e2c87
2020-04-01 12:22:43 +00:00
Ghanshyam Mann 4e82a8103e [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-ui 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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I47be69fe3b53df70ba775bad342d88129de5ff0a
2019-11-16 16:59:02 +00:00
jacky06 6d1ac152a6 Update hacking version to latest
1. Update hacking version to latest
2. Update some urls to https
3. change the py35 to py36 since py35 is removed

Change-Id: I6de72299d865225ccb522dca8316a024eebe75fd
2019-05-28 18:35:47 +08:00
Witek Bedyk 51cc63494c Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

This change fixes `requirements-check` Zuul job.

Change-Id: Ifa99a376c2b0e0e2504a8078cfa4fe1d45881310
2019-05-22 15:59:20 +02:00
Akihiro Motoki 4701b0f681 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

django_nose is unnecessary in test/settings.py.
The related settings are dropped.

Change-Id: Ic8683e670f472079bfbe57e1cdd0f9105a358023
2018-08-17 01:59:02 +09:00
Charles Short c0ab99a070 Drop mox3 from test-requirements.txt
create_stubs in test.helpers is also dropped in this
commit because this creates a stub using mox

This is part of mox-removal community goal in Rocky.

Story: 2001546
Task: 8719

Change-Id: Ic97d45f3b265cf61ad483c33b4d29b975dd93a5f
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-03-23 10:11:52 -04:00
OpenStack Proposal Bot 04dcc0111e Updated from global requirements
Change-Id: I1a661c6570f3e0d380215edc5272add4696770d3
2018-03-15 08:33:41 +00:00
OpenStack Proposal Bot b28a0cd8ac Updated from global requirements
Change-Id: I12aff17a2a0dc5a0f9e18c12606014666b386ed8
2018-03-13 07:01:57 +00:00
OpenStack Proposal Bot 94bea6b892 Updated from global requirements
Change-Id: Ib8aedc87ead57615b348ee52ae38970dc462239a
2018-03-10 13:22:47 +00:00
OpenStack Proposal Bot f8cbd2e658 Updated from global requirements
Change-Id: I854587c7d2fcad3b827f5254e591e2cab6e84e41
2018-01-18 03:04:27 +00:00
OpenStack Proposal Bot 1c0bb61672 Updated from global requirements
Change-Id: I7e5d535fbfd750c40659bc28f50792a97a97e129
2017-09-16 23:15:02 +00:00
OpenStack Proposal Bot 4951542f11 Updated from global requirements
Change-Id: I6776509a6e4c142a5e1bcd7e6c5d993f9cc38584
2017-09-11 21:39:45 +00:00
OpenStack Proposal Bot af2afde507 Updated from global requirements
Change-Id: I4b851fa6e4aecc0c227775b382176f2147636bcd
2017-08-18 04:43:37 +00:00
OpenStack Proposal Bot fb6702b690 Updated from global requirements
Change-Id: I0d085ce2c7efb0351aa61b5cb5a8752b9647a1fa
2017-06-27 12:13:06 +00:00
Tomasz Trębski a7e8a14c2d Add monitoring_policy.json
monasca-ui misses policies file to control the permissions
over actions executed from within Horizon plugin.

Extra:
* enabled running tests with configured policies
* removed unbounded policy sample file

Change-Id: I273f06332fa11a81ea8de2c13059dce9d160e90d
2017-06-19 07:17:44 +02:00
OpenStack Proposal Bot 777f69305d Updated from global requirements
Change-Id: I446d2fe0db7a196b1f50a8e23db4e0cd7d42e6ef
2017-05-17 03:50:30 +00:00
OpenStack Proposal Bot 054fe051f2 Updated from global requirements
Change-Id: Ia54fb3f70b02aacc737dc17802eef53ad7f6b316
2017-05-15 00:47:00 +00:00
OpenStack Proposal Bot 2e18adf3f3 Updated from global requirements
Change-Id: I89b71d351978f57f6d891aa036768b44807284aa
2017-03-02 17:45:04 +00:00
ricolin 4f143fbfa0 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ibce7593f94908f85bcd9bc0abc8c5f917a8e9bb2
2017-03-02 19:27:38 +08:00
OpenStack Proposal Bot 23cb0fd553 Updated from global requirements
Change-Id: I98b3fe600cd51d4bc46c869c1fd4b1d734f733a0
2017-02-10 05:51:29 +00:00
OpenStack Proposal Bot 536e0c2340 Updated from global requirements
Change-Id: I68f88fede086c20d8c2fced4975658bb7f3fe7f6
2017-01-20 01:48:18 +00:00
OpenStack Proposal Bot 0cd115d1e1 Updated from global requirements
Change-Id: I0ef38f97e6518c9153358b3cff3c204b8a331dfd
2017-01-03 20:23:38 +00:00
Dirk Mueller db90acbdd9 Sync from global-requirements
Being a horizon plugin, concurrent installability is important. This
module should sync from global-requirements. Syncing once manually
in preparation for adding a g-r sync.

Change-Id: I38516a2a2e1477891378c2058ba8dcb513f2fd2e
2016-12-04 03:35:57 +01:00
Shinya Kawabata 01b40e4fae Fix compiling messages for i18n
"./run_tests.sh --compilemessages" is failed due to oslo packages
version mismatch. Oslo packages are required by Horizon. So monasca-ui
does not need to specify these packages. Unit tests are passed even
without these packages.

Change-Id: I8514d1fefe18c0a03d34b1bd7be85d7064c3bb26
2016-04-04 10:48:10 +09:00
Maciej Maciaszek 8861bede7e Simple Kibana integration
* add simple proxy for kibana requests
* organize settings in `local_settings.py`
* narrow down coverage to monitoring package
* fix requirements with stable versions
* upgrade Horizon

Change-Id: I618485e9b6fa11fe423c3b1b3ad5f8c02cc163b4
2015-09-30 13:49:13 +09:00
Piotr Smialkowski 5cb8b8dad8 Fix unittests
- Update horizon version
- Remove --upgrade option in venv installer and tox.ini
- Freeze oslo libs versions

Change-Id: I4b6697cba20699da59af8f9cc7440a669d9f0c6e
2015-07-27 12:07:20 +02:00
SamKirsch10 8ee4a178ad fixed overview service/hostname bug
Change-Id: I810bc543c6931a0a7fbc835adc4b88d09f299963
2015-07-10 17:08:10 -06:00
Rob Raymond 0536dd6e31 Show label with status icon. Improves sorting as well
Change-Id: I7d3b0e0f6749976a5cff8df4d388c1f821bb1e7e
2015-02-12 12:59:27 -07:00
Andreas Jaeger 1e1f1fb6d2 Remove docutils pin
This was added to work around bug 1091333.  A new sphinx has been
released and so this is no longer necessary.

Also update sphinx requirements from global requirements.

Change-Id: I9107884d964757a9154bdd1feb4ea6df4e9df43e
2014-10-14 20:38:30 +02:00
Christian Berendt a406aaf6aa Bump hacking to 0.9.x series
Change-Id: I2b9881a0a5685b714c6957f7e245a31c105493b0
2014-07-24 11:21:04 +02:00
Rob Raymond 125ee4b768 Enable unit and pep8 tests 2014-06-27 16:16:29 -06:00