Set can_set_mount_point default to False

Patch https://review.openstack.org/#/c/59229/ only changed the default
value in the local_settings.py example file. If the setting isn't defined,
it still defaults to True

Change-Id: Ia3525786e5eb9ec83b8057c1cb6158ab153adc59
Closes-Bug: #1255136
Limit coverage report to horizon modules

Reduce scope of coverage to horizon/* and openstack_dashboard/*
to get a more accurate % of coverage.
As a bonus, generated report folder size gets reduced ( >50%).

Change-Id: Id375e88ae478277b2af9191937c1b91f4b616250
Increase Horizon base unit test suite.

Add unittests for templatetags, decorators, filters and common utils.
Complement tests merged on commit #258e9b465314d33e669b77b52cec63b2c8aca370

Change-Id: I3f4486815a11c22d6bbcaa014b8e632b43d3be89
Fix VPNaaS success messages translation

Success messages for VPNaaS "Delete" options are translatable now.
Also this patch set adds descriptions to error messages.

Fixes bug 1252239

Change-Id: I6e15f7c594ff20dcfe7587a19540d11aaeb97e3b
Fix display of images in Rebuild Instance

The image list in Rebuild Instance is constructed from (id, name)
pairs. As the name is a string, the transform function is never called
unless image name is None. In that case it crashes the view.

This change:
  - Builds the image list with (id, image) so the correct thing
      is passed to the transform
  - Corrects the size/name attributes
  - Handles None display name (displays id instead)
  - Set the name of one of the public images in glance_data.py to
      None so errors like these are picked up in the future.

Change-Id: I0d1f8594cccc404c0dd6f254b70d23789817dd06
Closes-bug: #1258349
Removal of json2.js

    As long as Horizon does not support any browser lower than IE8,
json2.js library is no longer needed, browsers have a native
implementation of JSON.stringify and JSON.parse.
    Removing this script allow us to reduce the javascript footprint
of Horizon.
    jQuery $.parseJSON will replace all parsing of JSON in order to
standardize the use of this functionnality.

Change-Id: Ifaf027e2adc462ee7b3d9587b28583ade376ccfc
Corrected incorrect message when deleting port.

Updated the file /horizon/openstack_dashboard/dashboards/admin/
networks/ports/tables.py so it will give the correct error message
when trying to delete a port that is in use.This updated error
message will give the same information as when using the command-line.

Change-Id: I62c0fb1c5b9b073c0d083bddc45133d502b554be
Closes-Bug: #1251314
CSV Summary not working inside Admin panel.

When browsing Project usages from 'Admin->Projects->More->View Usages'
an AttributeError exception is thrown due to missing csv_render_class
attribute.
Also, project_id instead of tenant_id in BaseUsage  were expected, so
any request to /admin/projects/[id]/usage/ will always return the current
tenant from session.
This fix reuse logic from project/overview/ into this view.

Change-Id: I7d762569a7de176fdb8545a226e563afac34adae
Closes-Bug: #1255667
Hide key field in edit Flavor Extra Specs dialog

Nova allow user to add key/value to flavor, but its api is only
able to update value according to key.

Hide the key field in edit dialog, in order to avoid confusion.
User can delete and create new one when need to update "key".

Change-Id: Ibd13bfe8a3832d019d16a39b40f643b860e3c612
Closes-Bug: #1257882
Merge "Allow snapshots of paused and suspended instances"
Add a loadAngular function

    If something is added to the DOM with external tools, angular is not
aware of these changes (Ajax call, pure js DOM manipulation, etc...).
This patch add an utility function which will load angular on the given
element.
    There is also an example on modal, angular is now loaded when a
modal is shown.

Fixes bug #1258192

Change-Id: I3266b455d79d7d1856e4a622e927ed4af8e90b5e
Hide AZ when creating Volume from snapshot

Volume created from snapshot must match the AZ of the snapshot.
It doesn't make sense to allow the user to select the AZ as the
only valid values are Any AZ or AZ of the snapshot - which the user
still need to figure out.

Change-Id: Id3fb03fc2bc152ae0af72b939f63d9d403324fe6
Closes-Bug: #1257845
Merge "CSV Summary not working inside Admin panel."
Initialize the table after data load in TableTab

Change-Id: Icd4b5b4f01f1ecdf54146fa70311cc873ee4d0c6
Closes-Bug: #1259226
Adds Trove mock to tests in database_backups

Test cases in database_backups/tests.py now have a mock for the
method api.trove.instance_get(). The absence of this mock was
causing real HTTP requests to Trove.

Change-Id: Icf760d7eaba2d136626dbbbbf6e49260a18fb874
Closes-Bug: #1255936
Adds Cinder client mock to tests

Test cases now have a mock for the method tenant_absolute_limits
in cinder client. The absence of this mock was causing real HTTP
requests from this client.

Change-Id: I8b9c4f5affc43e2649f3ebf08580bb3d3687e09b
Closes-Bug: #1259533
Add architecture field in image properties.

It would be beneficial for us to be able to add architecture
to the image file, and we already have an architecture field
on update Image dialog.

Change-Id: Ic48a377b5a449ac632a72f9fb5cbdfafaf39993f
Closes-Bug: #1257191
Fix URLs of panels grouped into packages

If you group related panels into packages using the
dot notation, the URLs generated for them will have
the dot in them where you would rather expect a
slash. This patch fixes it by replacing the dots in
the panel slug with slashes when generating URLs for
them.

Change-Id: I450321f2c2a64297fbd3e1104ad5635aa5d9aba8
Closes-bug: #1259458
Specify tenant_id when retrieving LBaaS/VPNaaS resource

In Neutron API, resources from all tenants are listed when
retrieving a list of resources with admin role. Horizon
project dashboard is for project-specific operations,
so we should retrieve only resources of the given project.
LBaaS/VPNaaS panels have this problem, but FWaaS does not.
router_list should be called with tenant_id filter too.

This commit also fixes VPN/FWaaS tests so that it extract tenant_id
from request attribute rather than use tenant_id of test_data.

Change-Id: I080e6c6d1e426a878c1d088763bbc7e5add15820
Closes-Bug: #1244126
Run selenium tests only when requested

In some environments, it's not wanted or possible
to execute selenium tests. These are only executed, if
--with-selenium is specified.

Change-Id: I39c40ac1feb64565f0bcbc97f6345d203b1d816e
Closes-Bug: 1259072