Commit Graph

90 Commits

Author SHA1 Message Date
Ghanshyam Mann 76fea14dbc 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: I722019df784bbc7b791f2146beb1d0ca20dd04de
2020-05-12 21:01:19 -05:00
Luigi Toscano 18921beb2e Test fixes: unittest.mock, better l-c job, pytest dep
Now only python 3 is supported, which means unittest.mock
can be used instead of the external mock module.
This change can be done thanks to the Horizon
change I2de669d8e89b8daeb7ee5405ffab35af6307c40b

Switch to openstack-lower-constraints-jobs-horizon
which pulls in the last horizon. The lower-constraint
version of horizon should be bumped when a new
version (post-18.2.0) is released.

Finally, add pytest to the set of test requirements
to prevent an missing import error (even through
the sahara scenario tests still need to be ported
to pytest).

Change-Id: I2c61e9d88b2d05c9f0b68066d7bb15b43cdf083f
2020-04-15 17:59:11 +02:00
Andreas Jaeger 24e6863ba7 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, it's not needed
there for co-installing.

Change-Id: I3d250ba82cc14f163f4295381b9b9c232486ac9f
2020-03-31 17:38:17 +02:00
Akihiro Motoki 72a6a7a94b 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.
* Integraion tests is marked via django.test.tag mechanism which is
  introduced in Django 1.10.
* Rename filename of test files to names starting with 'test_'
  so that the django test runner can find tests expectedly.
* run_tests.sh is no longer called from tox.ini, so it can be dropped.
  Note that the similar run_tests.sh in horizon was dropped long ago.

Change-Id: I1e5471078cc95031e8819f01100319a9ee2a3a73
2018-08-21 23:16:36 +09:00
Zuul 1679f79691 Merge "Fix the coverage tox target" 2018-07-11 23:18:45 +00:00
Luigi Toscano 56b69d6477 Goodbye mox - no more needed
The porting to mock of sahara-dashboard is complete.
This fulfills the community goal
"Remove Use of mox/mox3 for Testing" set for Rocky:
https://governance.openstack.org/tc/goals/rocky/mox_removal.html

Raise the requirement to the Rocky M2 release of Horizon,
which drops the usage of mox by default (it should be
explicitly enabled). Without a forced import from Horizon
the mox dependencies can be dropped here.
Bump also a dependency needed by this new version of Horizon.

Change-Id: Iaf272af9919f8a69562c0a469130bbf8628936cf
2018-07-04 19:38:21 +02:00
Luigi Toscano 465b10e1ef Fix the coverage tox target
It was broken for a long while, since the migration
of the dashboard code into Horizon, and then back
into this repository, as .testr.conf was removed.

Use coverage directly instead of testrepository,
the same way as Horizon does. We should port
the normal test runner to the Django test runner too,
instead of the custom run_tests.sh script, but
that's for another (future) review.

Change-Id: I08966ddc7e891156a1c934bb115ce8a02f77ec83
2018-06-29 14:53:30 +02:00
Doug Hellmann b81d74661c 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.

---
sahara-dashboard specific changes:
- sahara-dashboard uses django.urls module which is only available in
  Django 1.11 or later, so the Django min version needs to be bumped to 1.11.
  Horizon Rocky bumped the Django min version
  to >=1.11
- django-babel needs to bumped to 0.6.2 to support Django 1.11 and 2.0.
- nose-exclude needs to bumped to 0.5.0 to run all existing unit tests.

https://review.openstack.org/555402 allows us to bump lower requirements.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I6cc5d973ea0e586e6fbe2ab4ba1345857722d008
Depends-On: https://review.openstack.org/555034
Depends-On: https://review.openstack.org/555402
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
2018-03-26 05:13:19 +09:00
Andreas Jaeger ca02545ad6 Avoid tox-install.sh
Instead of using tox-install.sh, we can install
horizon now directly from pypi - or use the current branch in CI system
using tox-siblings.

Create doc/requirements.txt for doc requirements as well, it's use
currently only for releasenotes. Remove obsolete oslosphinx requirement.
Remove docs environment - this project has no docs, only releasenotes.

Update tox.ini for this change and add horizon to requirements
file.

Change-Id: I72a942149a88183a32afc0440ead7b927bdc93b5
2018-03-14 15:01:10 +01:00
OpenStack Proposal Bot 0c02a5d04b Updated from global requirements
Change-Id: I9284386ad4ee7ab68a65132cdff43e933d26b1e3
2018-03-13 07:31:47 +00:00
OpenStack Proposal Bot 75beaf42b2 Updated from global requirements
Change-Id: I324293f9845f4a8082ad3eb7df633bf3364d84d1
2018-03-10 13:53:35 +00:00
OpenStack Proposal Bot c5775bead7 Updated from global requirements
Change-Id: Iebe0abafeaa34b336c77c11abf2b6a03ed4dc632
2018-01-24 01:35:26 +00:00
OpenStack Proposal Bot 5279d05d40 Updated from global requirements
Change-Id: I4ba2302e9ac37d3e6c02c27045c1d22356005238
2018-01-18 03:33:53 +00:00
OpenStack Proposal Bot a6c9ad52cc Updated from global requirements
Change-Id: Ie2b9f49887bdb306340eb163daace6f1eb5bb5b8
2017-11-20 19:16:25 +00:00
Andreas Jaeger 6d05c1932d Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

Also, use openstackdocstheme for releasenotes.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I39b0501425823fa24996f2f215fa326453ed72c9
2017-11-17 13:52:28 +01:00
OpenStack Proposal Bot e14ed2b7e8 Updated from global requirements
Change-Id: I4e8c5e05c8563df4bc6ed3bf52d7e0a632e82059
2017-11-16 11:28:01 +00:00
OpenStack Proposal Bot ce6d2607ee Updated from global requirements
Change-Id: I5791f4feb9ee8e40772eb6f517159fd30d9cb709
2017-09-16 23:24:48 +00:00
OpenStack Proposal Bot 739754aaba Updated from global requirements
Change-Id: Iaf2f88061adbfb487aee00a3790c56907372bdb6
2017-09-11 21:50:23 +00:00
OpenStack Proposal Bot 909d91983a Updated from global requirements
Change-Id: I4f41927b4cc1f5db2ec7978652cb47598d442db1
2017-08-18 11:43:06 +00:00
OpenStack Proposal Bot 16bea03baf Updated from global requirements
Change-Id: Id3318d0d716e4ea4410a13428a9ec232bf788ac8
2017-08-18 04:53:09 +00:00
OpenStack Proposal Bot 5f07d19d68 Updated from global requirements
Change-Id: Ie6a633061a81b08b7fae3b649bfbba736be10972
2017-06-27 12:23:20 +00:00
OpenStack Proposal Bot 018ea207be Updated from global requirements
Change-Id: Iba9056c014ea70dc5cf0c651b7e677f70e369358
2017-06-06 23:27:59 +00:00
OpenStack Proposal Bot 29a350c9d4 Updated from global requirements
Change-Id: Id4f6eeb23c9cb3816db9b4e29b4eafc9f9a11b63
2017-05-17 03:59:17 +00:00
OpenStack Proposal Bot f3c196c938 Updated from global requirements
Change-Id: I789cca6bd07dd53b0751f92cd660ac00317f5f57
2017-05-15 00:55:44 +00:00
OpenStack Proposal Bot 4909335ae1 Updated from global requirements
Change-Id: Icb463b2df1e1f078c2b05f4140d6f4a16e55810b
2017-03-02 17:53:49 +00:00
ricolin 1cdf705931 [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: Ic274bb0da74e9bea52ac96e8fbe3809b50b3e434
2017-03-02 19:57:02 +08:00
OpenStack Proposal Bot 7c4b0e587f Updated from global requirements
Change-Id: Ie57f43b9a5f2fe193ad1fd6fec21bf3a69e5118a
2017-02-10 06:00:12 +00:00
OpenStack Proposal Bot 03dffdbbd5 Updated from global requirements
Change-Id: Ibb49a72ce98b792e758629cf436d11c1296856a7
2017-01-20 01:55:33 +00:00
OpenStack Proposal Bot fd61b9817f Updated from global requirements
Change-Id: I6aafc8880467c3d64fd18c2b71c9fd593cf84136
2016-11-02 15:41:18 +00:00
OpenStack Proposal Bot a5efe492ff Updated from global requirements
Change-Id: Ia977413ce19d33408947951e3e770224011ec87e
2016-10-22 01:28:05 +00:00
OpenStack Proposal Bot 654542d2a9 Updated from global requirements
Change-Id: I699321f5e50c0638a0519ca2b813c3ca3b0f3334
2016-09-28 17:01:31 +00:00
OpenStack Proposal Bot bf01a86a91 Updated from global requirements
Change-Id: I87cd34381f5afa5a785e6b199ed792f0a580e899
2016-09-27 10:08:13 +00:00
Shu Yingya 167b5a9a3b Delete the requirement package "discover" in the "test-requirements.txt"
discover package is only needed for python < 2.7 which is not supported

Change-Id: I2cca9fa1630ad1e37bba7b1107991e81bad6f9bf
2016-07-22 19:30:46 +08:00
OpenStack Proposal Bot 6ce9834afc Updated from global requirements
Change-Id: I4c18710d79593aa8b6efbbc7703c3851231478b9
2016-07-19 15:32:42 +00:00
OpenStack Proposal Bot 4d3f93fc56 Updated from global requirements
Change-Id: Ic06e3293f117457057e07115c4c39315a13ffdea
2016-06-24 03:18:15 +00:00
OpenStack Proposal Bot 4c2f0f237e Updated from global requirements
Change-Id: Icfa380f7bf7982c11ce8af09ab75e6f80e60b5da
2016-06-21 18:06:15 +00:00
OpenStack Proposal Bot deb650bf1f Updated from global requirements
Change-Id: I573142856ff7a235ab68142ae870c4f6f5b918db
2016-06-09 16:14:30 +00:00
Vitaly Gridnev 4b438255a9 Start using reno for release notes
Change-Id: I9189f580ce0f48d360d251922e70d247aae04e9a
2016-06-08 16:08:42 +03:00
OpenStack Proposal Bot bc74bfcd3a Updated from global requirements
Change-Id: I80b7d3e27719fb8006ea8be486411d1bbe2584b0
2016-05-30 22:25:36 +00:00
Akihiro Motoki 64b6e973bd Install horizon more efficiently
This patch introduces a pip install wrapper script which
checks horizon is installed and installs it from efficient way
(try zuul-cloner first and then use the horizon git repo).

This can also avoid a problem reported in bug 1540328.

When run_tests.sh is used, horizon is installed by
the customized install_venv.py now.
run_tests.sh is not directly used in our gate jobs,
so we can always install horizon using git repo.

This idea is borrowed from neutron subpurojects.

Change-Id: Ice304957823ac1d2c63f7c417c0dc9bb9c1fa757
Related-Bug: #1540328
2016-02-17 02:33:47 +09:00
OpenStack Proposal Bot ecdd89583a Updated from global requirements
Change-Id: I6bf49950c1c7234d4d93b7a8312488a8d79525d3
2016-02-11 07:45:12 +00:00
OpenStack Proposal Bot 4ae3e00584 Updated from global requirements
Change-Id: If13c75d05dbe9918d19986e94531c3a455eb9894
2016-02-10 21:59:58 +00:00
OpenStack Proposal Bot dba2664930 Updated from global requirements
Change-Id: I335f09105582f8e69b0f5e4afa2af81e3efbb9dd
2016-02-06 23:28:30 +00:00
OpenStack Proposal Bot d748568243 Updated from global requirements
Change-Id: I717c16c820834fe700aee815abc9a68acd71c919
2016-02-03 03:43:59 +00:00
OpenStack Proposal Bot 5acabcee6f Updated from global requirements
Change-Id: I42bc1cd301f24bb00ade760a2fd074b53e96984d
2016-01-29 20:50:22 +00:00
Chad Roberts 9e32872fb3 Fixing imports and no longer always running int tests
The horizon.utils.urlresolvers module no longer
exists, so we need to use django.core.urlresolvers.
The integration tests were always being run when
run_tests.sh was invoked.  That is not desirable.  This
patch addresses that by only running them when the
appropriate flags are passed.  Additionally, the
nose-exclude package is added to test-requriements.txt
to allow the exclusion of the integration test directories.  These 2 fixes are presented together
because tests would not pass individually, with each
patch failing on the other problem.

Change-Id: I5d3ccc8c8969992073f122f63df2c430f690a06c
Closes-Bug: #1538265
Closes-Bug: #1538159
2016-01-26 14:17:21 -05:00
OpenStack Proposal Bot 182e6feba9 Updated from global requirements
Change-Id: If977dcccc01d0163a5f23f26adc43c7c36ef1cb8
2016-01-16 03:33:05 +00:00
David Lyle c6024d2b5d Adding integration test support
Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Depends-On: I99718970af78feeafc25dbb3aa9639ea2cf401ad
Change-Id: I8b6d681d0f517c57ee5f58eaca5754356878b581
2015-12-31 12:56:12 +03:00
OpenStack Proposal Bot f693550cef Updated from global requirements
Change-Id: If0ff2867cccca15452e0ae41ac2d2557c6a6b6f0
2015-12-08 11:01:36 +00:00
Chad Roberts 165d3658c6 Fixing unit tests after removal from Horizon
Our code was still pointing at openstack_dashboard.
test rather than sahara_dashboard.test.  This patch
should fix that and allow our tests to start passing
again.  Also adding a requirement for netifaces.

Change-Id: Icea05e4cf3c55937a4b84728cc6ef63e6c944080
2015-12-07 15:14:32 -05:00