Use an existing application for version fetching

This commit is contained in:
Luciano Lo Giudice
2022-04-04 18:21:31 -03:00
parent 124d16acbb
commit d1ad9f7a2a
@@ -226,8 +226,9 @@ class CephDashboardTest(test_utils.BaseCharmTest):
def test_saml(self):
"""Check that the dashboard is accessible with SAML enabled."""
if (openstack_utils.get_os_release() <
openstack_utils.get_os_release('focal_yoga')):
get_os_release = openstack_utils.get_os_release
if (get_os_release(application='vault') <
get_os_release('focal_yoga', application='vault')):
return
url = self.get_master_dashboard_url()