feat(certmanagers/integration): Add optional wipe methods to certificate managers and update integration tests, plus bump tapbundle dependency

This commit is contained in:
2025-04-30 18:18:45 +00:00
parent 758c6c6b5d
commit 9dc8c1d8a3
8 changed files with 51 additions and 14 deletions

View File

@ -14,6 +14,7 @@ const mongoDbName = (await testQenv.getEnvVarOnDemand('MONGODB_DATABASE'))!;
const mongoDbPass = (await testQenv.getEnvVarOnDemand('MONGODB_PASSWORD'))!;
const mongoDbUrl = (await testQenv.getEnvVarOnDemand('MONGODB_URL'))!;
let smartAcmeInstance: SmartAcme;
tap.test('create SmartAcme instance with DNS-01 handler and start', async () => {
@ -33,9 +34,10 @@ tap.test('get a domain certificate via DNS-01 challenge', async () => {
// Replace 'bleu.de' with your test domain if different
const domain = 'bleu.de';
const cert = await smartAcmeInstance.getCertificateForDomain(domain);
expect(cert).toHaveProperty('domainName');
expect(cert).toEqual(domain);
expect(cert).toHaveProperty('publicKey');
console.log(cert);
expect(cert).object.toHaveOwnProperty('domainName');
expect(cert.domainName).toEqual(domain);
expect(cert).object.toHaveOwnProperty('publicKey');
expect(typeof cert.publicKey).toEqual('string');
expect(cert.publicKey.length).toBeGreaterThan(0);
});