Chris MacNaughton
6590172d87
Strip trailing slash from dashboard URL
...
The trailing slash gets handled badly by the Ceph dashboard when
the auth URL ends up looking like https://ip.address//api/auth
2022-08-16 14:06:37 +00:00
Chris MacNaughton
a6040e2e03
Get ceph-dashboard's public addresses from the mon
...
At some point, Juju stopped returning a list of units for subordinate
charms, so this test now fails to find the address for the dashboard units
2022-06-24 22:55:08 +02:00
Luciano Lo Giudice
1a5b3f6152
Also wait for the SAML 'enabled' message
2022-05-02 17:31:27 -03:00
Luciano Lo Giudice
eaf33ab2bd
Add docstring to public method
2022-05-02 14:43:36 -03:00
Luciano Lo Giudice
a6846dd161
Add a few retries to avoid race conditions
2022-05-02 14:37:54 -03:00
Luciano Lo Giudice
7d70b22846
PEP8 style fixes
2022-04-29 18:04:15 -03:00
Luciano Lo Giudice
d9a2c95cd5
Fix ceph-dashboard SAML tests
...
This PR ensures that the SAML tests are using a fully valid IDP
metadata (Ceph's dashboard doesn't report its validity until SAML
features are used), as well as using TLS in the requests, in addition
to some cleanups here and there.
2022-04-29 18:00:18 -03:00
Luciano Lo Giudice
b7d7588f46
Test SAML redirect and presence of metadata
2022-04-05 14:50:15 -03:00
Luciano Lo Giudice
99b3cd6dec
Use ceph-mon as application
2022-04-04 19:59:43 -03:00
Luciano Lo Giudice
d1ad9f7a2a
Use an existing application for version fetching
2022-04-04 18:21:31 -03:00
Luciano Lo Giudice
124d16acbb
Add test for ceph-dashboard SAML functionality
2022-04-04 15:49:34 -03: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
Liam Young
d689fb91fc
Add retries when accessing Ceph dashboard ( #646 )
2021-10-04 12:16:43 +01:00
Liam Young
6918f9ebb3
Extend Ceph Dashboards tests to check ceph services are registered ( #643 )
2021-10-03 16:13:50 +01:00
James Page
66b1c35d94
Merge pull request #631 from gnuoy/ceph-dash-grafana-url
...
Add setup method for setting grafana api for ceph dashboard
2021-09-13 10:47:02 +01:00
Liam Young
23f95655b9
Add setup method for setting grafana api for ceph dashboard
2021-09-08 17:44:11 +00:00
Liam Young
36d85aece5
Pacific requires client to set accepted api version
2021-09-08 13:34:30 +00:00
Liam Young
5993f3f2c5
Dashboard test updates
...
Verify CA now that bug is fix released *1.
Check logging in to the dashbaord works
Use a random username for tests so a test reruns work.
*1 https://bugs.launchpad.net/cloud-archive/+bug/1933410
2021-09-06 12:17:41 +00:00
Liam Young
5baf16237f
Add certificate check for Ceph dashboard
...
Add setup step for the dashboard which will block until the
certificates are present and the model is idle. This is to prevent
the tests from continuing when the certificates are not ready.
Also up CephDashboardTest to use standard tools for collecting
ca cert.
2021-08-31 17:24:15 +00:00
Liam Young
7cec6a27b5
Fix doc string
2021-06-24 11:57:21 +00:00
Liam Young
dc78fb6616
Add missing __init__
2021-06-24 09:51:06 +00:00
Liam Young
110df7f2c7
Add very basic ceph dashboard tests.
2021-06-24 09:19:34 +00:00