Repository navigation
feature(COG-1143): W0 smoke suite for deposit, withdraw, between-accounts and recipient transfer - #106
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This was referenced Sep 30, 2026
Open
|
Heads-up from COG-1155 (#339): recipient delete is now - // Delete is a GET today; COG-1155 converts it to a POST and updates this test.
- mockMvc.perform(get("/transfer/recipient/delete").with(user(username)).param("recipientName", recipientName))
+ // Delete is a POST (COG-1155).
+ mockMvc.perform(post("/transfer/recipient/delete").with(user(username)).param("recipientName", recipientName))I checked this locally: #106 + #339 + this diff gives |
…unts and recipient transfer Adds a Testcontainers-backed AbstractIntegrationTest harness and MockMvc regression tests asserting persisted balances and ledger rows on Boot 1.5.4. Co-Authored-By: patrick.bradley <patrick.bradley@cognition.ai>
…ecipient transfer Co-Authored-By: patrick.bradley <patrick.bradley@cognition.ai>
… isolate recipient delete request Co-Authored-By: patrick.bradley <patrick.bradley@cognition.ai>
devin-ai-integration
Bot
force-pushed
the
devin/cog-1143-w0-smoke-suite-deposit-withdraw-between-accounts-and
branch
from
September 30, 2026 16:28
00de947 to
3c92928
Compare
devin-ai-integration
Bot
changed the base branch from
master
to
devin/cog-1141-w0-testcontainers-mysql-harness-for-springboottest-boot-154
September 30, 2026 16:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Regression contract for the Boot 1.5.4 → 4.1 migration (COG-1143):
MoneyMovementSmokeTest— MockMvc tests that assert persisted rows, not just HTTP status, for deposit, withdraw, between-accounts, the recipient lifecycle and recipient transfer. They capture today's behaviour rather than improving it. No production code changes.Stacked on #335 (COG-1141, canonical Testcontainers harness). Base is
devin/cog-1141-w0-testcontainers-mysql-harness-for-springboottest-boot-154, so the diff is only this ticket's test file; this PR will be retargeted tomasteronce #335 merges. This PR's earlier private copy ofAbstractIntegrationTestand its pom test deps were dropped in the rebase — the test nowextends AbstractIntegrationTestand uses its protectedmockMvc.Test data isolation (so it can share a JVM with #108 / #109):
txsmoke-<nanoTime>-<seq>(email…@[REDACTED SECRET].com), recipientstxsmoke-payee-<nanoTime>;recipientDao.findByNameand balances are therefore never shared with other suites.UserService.createUser, so account numbers come from the app's own per-JVM counter; no rows are inserted with explicit account numbers (avoids the COG-1179NonUniqueResultException).Recipient delete is isolated in one helper so COG-1155 (#339) flips a single line:
Behaviour captured as-is, worth flagging for reviewers:
amountis always stored positive; direction is only visible inavailableBalanceand the description.betweenAccountswrites a ledger row only for the sending account; totals are conserved and the test asserts exactly this asymmetry.POST /transfer/recipient/save(the ticket calls it/transfer/addRecipient).Verification (Temurin 1.8.0_504, Docker 29.7,
mvn -B -f UserFront/pom.xml clean verify)Cross-suite check with the sibling smoke tests copied in locally (uncommitted):
MoneyMovementSmokeTest+AuthSmokeTest(COG-1142: W0 smoke suite — signup, login, logout, remember-me (MockMvc) #109) + context test: 15 run, 0 failures, BUILD SUCCESSMoneyMovementSmokeTest+AppointmentSmokeTest(COG-1144: W0 smoke suite for appointment create/list/confirm #108) + context test: 14 run, 0 failures, BUILD SUCCESSMoneyMovementSmokeTest9/9 andAppointmentSmokeTest4/4 pass;AuthSmokeTest5/5 fail because COG-1144: W0 smoke suite for appointment create/list/confirm #108 and COG-1142: W0 smoke suite — signup, login, logout, remember-me (MockMvc) #109 both createsmokeuser(signup returns 200 "username exists" instead of redirecting). Not caused by this PR — needs fixing in COG-1144: W0 smoke suite for appointment create/list/confirm #108/COG-1142: W0 smoke suite — signup, login, logout, remember-me (MockMvc) #109.Link to Devin session: https://app.devin.ai/sessions/dea8a88ff1554e81866df8e43e299765
Open in Devin Desktop: https://app.devin.ai/desktop/session/dea8a88ff1554e81866df8e43e299765?variant=devin
Requested by: @patrickbradley-cog