diff --git a/cli/tests/pmm-server-only.spec.ts b/cli/tests/pmm-server-only.spec.ts index d619c183..ff0adc9b 100644 --- a/cli/tests/pmm-server-only.spec.ts +++ b/cli/tests/pmm-server-only.spec.ts @@ -221,5 +221,23 @@ test.describe( 'was collected before with the same name and label values', ); }); + + test('PMM-T2082 Verify there are no certificate issues reported in ClickHouse logs', async () => { + const chLogs = await cli.exec( + 'docker exec pmm-server cat /srv/logs/clickhouse-server.log | grep -i "CertificateReloader:"', + ); + expect + .soft( + chLogs.stdout, + 'Verify the ClickHouse client is not trying to connect via TLS and reporting certificate reloader errors', + ) + .not.toContain('CertificateReloader: One of paths is empty'); + expect + .soft( + chLogs.stdout, + 'Verify ClickHouse server is not trying to load TLS certificates and reporting modification time errors', + ) + .not.toContain('CertificateReloader: Cannot obtain modification time'); + }); }, );