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

@ -45,8 +45,12 @@ tap.test('should properly initialize with ACME configuration', async (tools) =>
setGlobalAcmeDefaults: () => {},
setAcmeStateManager: () => {},
initialize: async () => {
// Using logger would be better but in test we'll keep console.log
console.log('Mock certificate manager initialized');
},
provisionAllCertificates: async () => {
console.log('Mock certificate provisioning');
},
stop: async () => {
console.log('Mock certificate manager stopped');
}
@ -55,7 +59,10 @@ tap.test('should properly initialize with ACME configuration', async (tools) =>
// Mock NFTables
(proxy as any).nftablesManager = {
ensureNFTablesSetup: async () => {},
provisionRoute: async () => {},
deprovisionRoute: async () => {},
updateRoute: async () => {},
getStatus: async () => ({}),
stop: async () => {}
};