From 05cfa598b217c7892a326da220252a7cf4e398b1 Mon Sep 17 00:00:00 2001 From: ordinarthur <@arthurbarre.js@gmail.com> Date: Fri, 8 May 2026 12:47:49 +0200 Subject: [PATCH] =?UTF-8?q?chore(bruno):=20mises=20=C3=A0=20jour=20test=20?= =?UTF-8?q?data=20dans=20la=20collection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 00-Auth/02 Login : trailing whitespace - 03-Clients/04 Create : test data variant (Martin2, siret/phone différents) pour éviter le conflit unique sur les exécutions successives - 05-Invoices/04 Create : numéro F-2026-0047, dueDate au 2026-04-01 (passée → déclenche l'envoi immédiat des RelanceTasks BullMQ pour tester le pipeline outbound) Co-Authored-By: Claude Opus 4.7 --- bruno/00-Auth/02 Login.bru | 1 + bruno/03-Clients/04 Create.bru | 10 +++++----- bruno/05-Invoices/04 Create.bru | 14 +++++++++----- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/bruno/00-Auth/02 Login.bru b/bruno/00-Auth/02 Login.bru index e6cace7..7c36721 100644 --- a/bruno/00-Auth/02 Login.bru +++ b/bruno/00-Auth/02 Login.bru @@ -16,6 +16,7 @@ body:json { "password": "{{password}}" } + } script:post-response { diff --git a/bruno/03-Clients/04 Create.bru b/bruno/03-Clients/04 Create.bru index 7a9df54..0ec13be 100644 --- a/bruno/03-Clients/04 Create.bru +++ b/bruno/03-Clients/04 Create.bru @@ -12,11 +12,11 @@ post { body:json { { - "name": "Boulangerie Martin SARL", - "email": "compta@martin.fr", - "phone": "06 12 34 56 78", - "siret": "12345678901234", - "notes": "Bon payeur historique" + "name": "Boulangerie2 Martin SARL", + "email": "compta@martin2.fr", + "phone": "06 12 34 56 72", + "siret": "12345678901232", + "notes": "Bon payeur historique2" } } diff --git a/bruno/05-Invoices/04 Create.bru b/bruno/05-Invoices/04 Create.bru index 7e444aa..bf8be77 100644 --- a/bruno/05-Invoices/04 Create.bru +++ b/bruno/05-Invoices/04 Create.bru @@ -14,12 +14,16 @@ body:json { { "clientId": "{{clientId}}", "clientName": "Boulangerie Martin SARL", - "numero": "F-2026-0042", + "numero": "F-2026-0047", "amountTtcCents": 124000, "issueDate": "2026-04-20T09:00:00.000Z", - "dueDate": "2026-05-20T09:00:00.000Z" + "dueDate": "2026-04-01T09:00:00.000Z" } + + + + } script:post-response { @@ -50,15 +54,15 @@ docs { `client_email_required` Bonus +1 rubis à la création (gamification). - + Si `planId` est fourni : programme automatiquement les RelanceTasks BullMQ pour chaque step du plan (sendAt = dueDate + offsetDays). Les jobs scheduled sont visibles via : `docker exec rubis-redis redis-cli zrange bull:relances:delayed 0 -1` - + Pour tester l'envoi immédiat : passer une `dueDate` dans le passé → la première RelanceTask est programmée à `now + 1min`. Mailpit http://localhost:8025 affichera le mail capté ~1min plus tard. - + Capture `invoiceId` dans l'env pour les requêtes suivantes. }