fix(tests): Update test mocks to include provisionAllCertificates methods in certificate manager stubs and related objects.
This commit is contained in:
@ -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 };
|
||||
|
Reference in New Issue
Block a user