charm-openstack-dashboard/unit_tests
Daniel Axtens 51b099c79e Rework enforce_ssl to use host name, not address
If enforce_ssl is set to true in openstack-dashboard, a user is
redirected to the IP address of the server, not its hostname.

This boils down to the template used to construct the site, which
is always fed an IP address by horizon_context.py.

Instead of using an IP address, use the result of resolve_address.

(This is part of an odd quirk whereby the charm doesn't use the
standard https tooling but does its own. A conversion to standard
tooling would be required for a full fix to #1664954.)

Closes-Bug: #1689882
Related-Bug: #1664954
Change-Id: I93365b75211e3c48d64ba8510898750dbc7b73cd
Signed-off-by: Daniel Axtens <dja@axtens.net>
2017-05-22 11:43:12 +10:00
..
__init__.py Re-license charm as Apache-2.0 2016-07-03 17:40:18 +01:00
test_actions_git_reinstall.py Re-license charm as Apache-2.0 2016-07-03 17:40:18 +01:00
test_actions_openstack_upgrade.py Re-license charm as Apache-2.0 2016-07-03 17:40:18 +01:00
test_actions.py Re-license charm as Apache-2.0 2016-07-03 17:40:18 +01:00
test_horizon_contexts.py Rework enforce_ssl to use host name, not address 2017-05-22 11:43:12 +10:00
test_horizon_hooks.py Fix alphanumeric comparisons for openstack and ubuntu releases 2017-03-29 10:52:42 +01:00
test_horizon_utils.py Fix alphanumeric comparisons for openstack and ubuntu releases 2017-03-29 10:52:42 +01:00
test_utils.py Re-license charm as Apache-2.0 2016-07-03 17:40:18 +01:00