Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(infra): report no running container that Compose created
Yudhi Armyndharis3c832d13e66e
diff --git a/src/modules/infra/infra-status.controller.spec.ts b/src/modules/infra/infra-status.controller.spec.tsindex 0510de5b4..f5a0d2cbb 100644--- a/src/modules/infra/infra-status.controller.spec.ts+++ b/src/modules/infra/infra-status.controller.spec.ts@@ -438,6 +438,13 @@ describe('InfraStatusController.getStatus running bundled containers', () => {expect([status.storage.builtIn, status.storage.running]).toEqual([false, true]);});+ it('reports none of the three running when Docker Compose created them', async () => {+ const status = await build({ database: 'compose', cache: 'compose', storage: 'compose' }).getStatus();++ expect([status.database.running, status.redis.running, status.storage.running]).toEqual([false, false, false]);+ expect([status.database.builtIn, status.redis.builtIn, status.storage.builtIn]).toEqual([false, true, false]);+ });+it('reports nothing running when no bundled container is up', async () => {const status = await build({ database: false, cache: false, storage: false }).getStatus();