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
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove sahara-dashboard.
As sahara-dashboard also uses run_tests.sh I've modified that code in
line with the horizon change I9bf85adb5aa2c85d8c0f0f22ac9efe5cac3646c0
Change-Id: Ieb8afdef1e9649b18a4394620e52b9f6ac3d997b
clean_enabled_files script is no longer needed since
migration to sahara-dashboard repository is done
for several cycles. that was a temporary file required
for period when sahara-dashboard's content was in both repos (horizon
and sahara-dashboard)
Change-Id: I763b9c536ca826695a0e02f9522a070b6624ad98
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
This plugin moves the current content from the horizon repo to this
plugin repo. The code has been tested in a devstack install using the
following steps:
1. packaging the plugin: "python setup.cfg sdist"
2. pip installing the tar.gz in the resulting dist directory
3. a. (temporary step) remove existing sahara enabled files from
horizon
"rm openstack_dashboard/enabled/_18*.py"
b. finding the install location and changing to it
"cp sahara_dashboard/enabled/* /opt/stack/horizon/local/enabled"
4. in /opt/stack/horizon
a. python manage.py collectstatic
b. python manage.py compress
5. restarting the horizon server
Additionally, you can run the unit tests by:
./run_tests.sh
Note: added script to programmatically remove the old configuration
files from the targeted horizon install, either in venv or system
install.
Known issues:
1. running tests locally emits missing neutron service messages.
2. plugin code for devstack needs to be added
3. README is inadequate
4. integration tests are still in horizon repo
5. local copy of run_tests is heavy weight, but a better solution is
not available currently.
6. localization tooling and strings
Change-Id: Icdce2d3e945e612d368556dd5cea1930194c7b67
Clearing out all of the old code from the Sahara
dashboard repo in preparation for bringing the new
code back into the repo for the Mitaka release.
Change-Id: I83cb932c35987ea80ac9233bd355355398b9164b