update readme with how to test changes

Change-Id: I4419dd03be1c2a8be97934e8aba4e829fe0a0d21
This commit is contained in:
Craig Vyvial 2016-02-17 00:36:51 -06:00 committed by Peter Stachowski
parent e97ee0b704
commit ea49596302

View File

@ -14,19 +14,48 @@ How to use with devstack:
Add the following to your devstack ``local.conf`` file::
enable_plugin trove-dashboard git://git.openstack.org/openstack/trove-dashboard
enable_plugin trove-dashboard git://git.openstack.org/openstack/trove-dashboard
To run unit tests:
------------------
::
./run_tests.sh
./run_tests.sh
Editing Code
------------
Apache
~~~~~~
Make a change to trove-dashboard then goto to the horizon directory and
compress the code with django and then restart apache.::
# rsync code to /opt/stack/trove-dashboard
# copy or link files from trove-dashboard/enabled/* to horizon/openstack_dashboard/local/enabled/
cd /opt/stack/horizon
python manage.py compress
python manage.py collectstatic --noinput
sudo service apache2 restart
Django
~~~~~~
You can also speed up development time using the django test server instead of
apache.::
/opt/stack/horizon/run_tests.sh --runserver
If you set COMPRESS_ENABLED and COMPRESS_OFFLINE to False in local_settings.py
that allows you to bypass the compress and collectstatic as well.
NOTE:
=====
As of the Mitaka release, the dashboard for trove is now maintained
outside of the Horizon codebase, in this repository.
As of the Mitaka release, the dashboard for trove is now maintained outside of
the Horizon codebase, in this repository.
Links:
------