Commit 64e679b
refactor(infra): enforce coding and testing standards across all services (STA-243) (#269)
* fix(infra): resolve bean conflicts, healthchecks, and build issues (STA-243)
- Add @ConditionalOnMissingBean to fallback adapters in S2, S3, S4, S5,
S6 so real provider beans take precedence in sandbox profile
- Fix USDC decimal scaling in DevCustodyAdapter (truncate, not throw)
- Replace wget Docker healthchecks with TCP checks, fix Temporal command
- Disable JaCoCo (incompatible with Java 25)
- Exclude @tag(sandbox) tests from default test runs
- Widen recipient_account_hash column for full SHA-256 digest
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor(infra): enforce coding and testing standards across all services (STA-243)
- Remove all Javadoc and TODO comments from 300+ production files
- Move 11 config classes to correct packages (application/config or
infrastructure/config) per hexagonal architecture standard
- Extract IsolatedTransactionExecutor port to remove Spring transaction
infrastructure imports from domain layer (S4, S5)
- Move TASK_QUEUE constant from application to domain layer (S1)
- Replace DataIntegrityViolationException with RuntimeException in
domain handler (S1)
- Convert non-BDD Mockito (when/verify) to BDD style (given/then)
across 8 test files
- Replace generic argument matchers (any, anyString, eq) with actual
values in test stubs and verifications
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore(infra): remove remaining section divider comments (STA-243)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(s13): restore permitted auth/public paths in SecurityConfig (STA-243)
The comment-removal pass in 35a3a18 accidentally collapsed six
requestMatchers(...).permitAll() lines into a single nonsense path
/actuatorauth/**, causing /v1/auth/**, /v1/invitations/**, /actuator/**,
Swagger, and /.well-known/** to all require JWT auth. Four merchant-iam
business tests failed as a result because they could no longer log in.
Restore the original permit list so business tests pass.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6d6bc7c commit 64e679b
335 files changed
Lines changed: 281 additions & 3444 deletions
File tree
- api-gateway-iam/api-gateway-iam/src
- main/java/com/stablecoin/payments/gateway/iam
- application
- config
- security
- domain/port
- test/java/com/stablecoin/payments/gateway/iam
- application/security
- infrastructure/auth
- blockchain-custody/blockchain-custody/src
- main/java/com/stablecoin/payments/custody
- application
- config
- controller
- scheduler
- domain
- exception
- model
- port
- service
- infrastructure
- config
- metrics
- persistence
- provider/dev
- transaction
- testFixtures/java/com/stablecoin/payments/custody/fixtures
- test/java/com/stablecoin/payments/custody
- application/controller
- domain/service
- buildSrc/src/main/kotlin
- compliance-travel-rule
- compliance-travel-rule-api/src/main/java/com/stablecoin/payments/compliance/api/model
- compliance-travel-rule-client/src/main/java/com/stablecoin/payments/compliance/client
- compliance-travel-rule/src
- main/java/com/stablecoin/payments/compliance
- application
- config
- filter
- service
- domain
- model
- port
- service
- statemachine
- infrastructure
- config
- metrics
- provider/ofacsdn
- testFixtures/java/com/stablecoin/payments/compliance/fixtures
- fiat-off-ramp/fiat-off-ramp/src
- main
- java/com/stablecoin/payments/offramp
- application
- config
- controller
- filter
- scheduler
- domain
- exception
- model
- port
- service
- infrastructure
- config
- metrics
- provider
- circle
- modulr
- transaction
- resources/db/migration
- testFixtures/java/com/stablecoin/payments/offramp
- domain/model
- fixtures
- test/java/com/stablecoin/payments/offramp/domain/service
- fiat-on-ramp/fiat-on-ramp/src
- main/java/com/stablecoin/payments/onramp
- application
- config
- controller
- scheduler
- domain
- exception
- model
- port
- service
- infrastructure
- config
- metrics
- provider/stripe
- testFixtures/java/com/stablecoin/payments/onramp/fixtures
- fx-liquidity-engine/fx-liquidity-engine/src/main/java/com/stablecoin/payments/fx
- application/service
- infrastructure
- config
- metrics
- ledger-accounting/ledger-accounting/src/main/java/com/stablecoin/payments/ledger
- application/config
- domain
- event
- model
- port
- service
- infrastructure
- config
- messaging
- metrics
- persistence/entity
- merchant-iam
- merchant-iam-api/src/main/java/com/stablecoin/payments/merchant/iam/api
- request
- response
- merchant-iam-client/src/main/java/com/stablecoin/payments/merchant/iam/client
- merchant-iam/src
- main/java/com/stablecoin/payments/merchant/iam
- application
- config
- controller
- mapper
- job
- security
- domain/team
- model/core
- infrastructure
- auth
- cache
- messaging
- persistence/mapper
- testFixtures/java/com/stablecoin/payments/merchant/iam/fixtures
- test/java/com/stablecoin/payments/merchant/iam/application/security
- merchant-onboarding/merchant-onboarding/src
- integration-test/java/com/stablecoin/payments/merchant/onboarding/config
- main/java/com/stablecoin/payments/merchant/onboarding
- application
- config
- controller
- domain/merchant
- infrastructure
- kyb
- temporal
- activity
- adapter
- config
- signal
- workflow
- payment-orchestrator
- payment-orchestrator-client/src/main/java/com/stablecoin/payments/orchestrator/client
- payment-orchestrator/src
- business-test/java/com/stablecoin/payments/orchestrator
- main/java/com/stablecoin/payments/orchestrator
- application
- config
- controller
- filter
- domain
- event
- model
- port
- service
- statemachine
- workflow
- activity
- dto
- infrastructure
- activity
- config
- messaging
- metrics
- persistence
- testFixtures/java/com/stablecoin/payments/orchestrator/fixtures
- test/java/com/stablecoin/payments/orchestrator/application/controller
- platform-infra/src/main/java/com/stablecoin/payments/platform/infrastructure
- http
- metrics
- tracing
- vault
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
| |||
242 | 234 | | |
243 | 235 | | |
244 | 236 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | 237 | | |
250 | 238 | | |
251 | 239 | | |
| |||
Lines changed: 0 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 22 | | |
34 | 23 | | |
35 | 24 | | |
| |||
38 | 27 | | |
39 | 28 | | |
40 | 29 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 30 | | |
49 | 31 | | |
50 | 32 | | |
51 | 33 | | |
52 | 34 | | |
53 | 35 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 36 | | |
62 | 37 | | |
63 | 38 | | |
64 | 39 | | |
65 | 40 | | |
66 | 41 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 42 | | |
73 | 43 | | |
74 | 44 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
| |||
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 4 | | |
10 | 5 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 6 | | |
17 | 7 | | |
Lines changed: 21 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | | - | |
| 76 | + | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | | - | |
| 108 | + | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
| 112 | + | |
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
| 129 | + | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
| 134 | + | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | | - | |
144 | | - | |
| 142 | + | |
| 143 | + | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
148 | | - | |
| 147 | + | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | | - | |
157 | | - | |
| 155 | + | |
| 156 | + | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
161 | | - | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
169 | | - | |
170 | | - | |
| 168 | + | |
| 169 | + | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
188 | | - | |
189 | | - | |
| 187 | + | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
0 commit comments