fix(tests): Update test mocks to include provisionAllCertificates methods in certificate manager stubs and related objects.

This commit is contained in:
2025-05-19 23:57:16 +00:00
parent b30464a612
commit 018a49dbc2
6 changed files with 51 additions and 3 deletions

View File

@ -60,6 +60,9 @@ tap.test('should preserve route update callback after updateRoutes', async () =>
// This is where the callback is actually set in the real implementation
return Promise.resolve();
},
provisionAllCertificates: async function() {
return Promise.resolve();
},
stop: async function() {},
getAcmeOptions: function() {
return { email: 'test@testdomain.test' };
@ -114,6 +117,7 @@ tap.test('should preserve route update callback after updateRoutes', async () =>
setGlobalAcmeDefaults: function() {},
setAcmeStateManager: function() {},
initialize: async function() {},
provisionAllCertificates: async function() {},
stop: async function() {},
getAcmeOptions: function() {
return { email: 'test@testdomain.test' };
@ -233,6 +237,7 @@ tap.test('should handle route updates when cert manager is not initialized', asy
updateRoutesCallback: null,
setHttpProxy: function() {},
initialize: async function() {},
provisionAllCertificates: async function() {},
stop: async function() {},
getAcmeOptions: function() {
return { email: 'test@testdomain.test' };
@ -295,6 +300,7 @@ tap.test('real code integration test - verify fix is applied', async () => {
setGlobalAcmeDefaults: function() {},
setAcmeStateManager: function() {},
initialize: async function() {},
provisionAllCertificates: async function() {},
stop: async function() {},
getAcmeOptions: function() {
return acmeOptions || { email: 'test@example.com', useProduction: false };