Commit Graph

10 Commits

Author SHA1 Message Date
Liam Young a65ef82ef5 Fix code for non-ha keystone saml mellon deploys (#912)
When deployed in a non-ha setup the keystone ip can fail to be
found due to problems with getting ips of subordinates. Also,
there is duplicate code for finding the keystone ip so put this
in the setup class.
2022-09-15 14:42:13 +01:00
Alex Kavanagh 0af4c93d52 Switch unit.public_address to unit.get_public_address()
Due to the bug [1] on OpenStack providers, unit.public_address doesn't
actually work reliably.  The fix [2] is only for the async function
unit.get_public_address().  Sadly, zaza relied on unit.public_address
and so it needs this patch for juju 2.9 support on OpenStack providers.

This patch relies on an associated patch in zaza [3]; thus this will
fails its tests until that passes.

[1]: https://github.com/juju/python-libjuju/issues/551
[2]: https://github.com/juju/python-libjuju/pull/600
[3]: https://github.com/openstack-charmers/zaza/pull/468
2022-01-14 15:21:32 +00:00
Ionut Balutoiu d728458afa Add multi-backend testing for Keystone SAML Mellon
The new updated tests rely on new testing bundles deployed with
two local IdPs via the Juju charm https://jaas.ai/u/ionutbalutoiu/test-saml-idp.
2021-02-24 20:21:14 +02:00
David Ames 7d4d40700a Region is different for before and after Focal
For the Horizon region setting use the Keystone URL prior to Focal and
"default" thereafter.
2020-08-07 01:12:37 +00:00
David Ames c498b35852 Lint fix 2020-08-06 23:16:11 +00:00
David Ames 8a47b981b9 Tell horizon to use the "defaul" region
SAML Mellon tests have been broken on Focal. The handling of the region
selection behaves differently from bionic. Or it may be that bionic
accidentally was working by seeing a string as int 0.

Horizon has a "default" region which returns the keystone URL.
2020-08-06 23:06:01 +00:00
David Ames 4172efd8c6 Explicitly set KSM application name
After a change to the way application name is set and because
keystone-saml-mellon uses BaseKeystoneTest which sets the application
name to "keystone" which breaks KSM actions.

This change explicitly sets application name to keystone-saml-mellon.
2019-08-16 11:26:37 -07:00
David Ames dc3ca2edef Bug fix for HA SAML tests 2019-05-21 20:36:27 +00:00
David Ames 40e3148133 Fixes for SAML testing
Move SAML testing to zaza.openstack tests
Bug fixes
2019-05-17 22:13:47 +00:00
Chris MacNaughton 0c2f36fb4e modify base zaza poackage into zaza.openstack package 2019-05-08 13:38:33 +02:00