From 477ad5699aca028e399302c2d325785ff6938e84 Mon Sep 17 00:00:00 2001 From: pwalczysko Date: Tue, 19 Nov 2024 17:48:19 +0000 Subject: [PATCH] Only use relevant tests --- molecule/tests/test_default.py | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/molecule/tests/test_default.py b/molecule/tests/test_default.py index 1660aff8..28593bd5 100644 --- a/molecule/tests/test_default.py +++ b/molecule/tests/test_default.py @@ -13,10 +13,7 @@ 'nginx', 'omero-server', 'omero-web', - 'postgresql-13', - 'prometheus-node-exporter', - 'prometheus-omero-exporter', - 'prometheus-postgres-exporter', + 'postgresql-16', ]) def test_service_running_and_enabled(host, name): service = host.service(name) @@ -31,33 +28,6 @@ def test_omero_login(host): 'login -C -s localhost -u root -w omero') -@pytest.mark.parametrize("curl", [ - 'localhost:9449/metrics', - '-u monitoring:monitoring -k https://localhost/metrics/9449', -]) -def test_omero_metrics(host, curl): - out = host.check_output('curl -f %s' % curl) - assert 'omero_sessions_active' in out - - -def test_omero_metrics_auth_fail(host): - out = host.run( - 'curl -f -u monitoring:incorrect -k https://localhost/metrics/9449') - assert out.rc == 22 - assert '401' in out.stderr - - def test_omero_nginx_ssl(host): out = host.check_output('curl -fkI https://localhost/') assert 'Location: /webclient/' in out - - -def test_local_ldap(host): - initialised = host.check_output( - '/home/ldap/ldapmanager get dc=openmicroscopy,dc=org') - if len(initialised.strip()) == 0: - host.check_output('/home/ldap/ldapmanager init') - - out = host.check_output( - '/home/ldap/ldapmanager get dc=openmicroscopy,dc=org') - assert 'dn: dc=openmicroscopy,dc=org' in out