Cert test should test all installed apps if no specific app is passed
Right now, the cert test simply iterates over app known apps, regardless if they are installed or not:
❯ py.test -s --ansible-inventory=${CLUSTER_DIR}/inventory.yml --hosts='ansible://*' -m certs
================================================================================= test session starts ==================================================================================
platform linux -- Python 3.9.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/varac/projects/work/greenhost/openappstack/test, configfile: pytest.ini
plugins: testinfra-6.4.0, rerunfailures-10.1
collected 9 items / 8 deselected / 1 selected
pytest/test_certs.py
grafana:
Using domain oas.greenhost.net from ansible inventory.
Validating cert from https://grafana.oas.greenhost.net ...
CN: grafana.oas.greenhost.net (Issuer: R3)
CN: R3 (Issuer: ISRG Root X1)
CN: ISRG Root X1 (Issuer: DST Root CA X3)
Successfully Verified SSL Cert.
nextcloud:
Using domain oas.greenhost.net from ansible inventory.
Validating cert from https://files.oas.greenhost.net ...
CN: files.oas.greenhost.net (Issuer: R3)
CN: R3 (Issuer: ISRG Root X1)
CN: ISRG Root X1 (Issuer: DST Root CA X3)
Successfully Verified SSL Cert.
onlyoffice:
Using domain oas.greenhost.net from ansible inventory.
Validating cert from https://office.oas.greenhost.net ...
CN: office.oas.greenhost.net (Issuer: R3)
CN: R3 (Issuer: ISRG Root X1)
CN: ISRG Root X1 (Issuer: DST Root CA X3)
Successfully Verified SSL Cert.
prometheus:
Using domain oas.greenhost.net from ansible inventory.
Validating cert from https://prometheus.oas.greenhost.net ...
CN: prometheus.oas.greenhost.net (Issuer: R3)
CN: R3 (Issuer: ISRG Root X1)
CN: ISRG Root X1 (Issuer: DST Root CA X3)
Successfully Verified SSL Cert.
rocketchat:
Using domain oas.greenhost.net from ansible inventory.
Validating cert from https://chat.oas.greenhost.net ...
CN: Kubernetes Ingress Controller Fake Certificate (Issuer: Kubernetes Ingress Controller Fake Certificate)
SSL Verification Error HTTPSConnectionPool(host='chat.oas.greenhost.net', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1129)')))
F