Commit ddd7387
committed
fix: enable template processing for resource log test
The test configuration needs `template: true` on the response to enable
placeholder resolution in log messages. The original implementation from
PR #703 uses conditional template processing based on the response's
template setting, which is the correct approach.
Changes:
- Added `template: true` to /resource-log/{id} resource in test config
- Reverted to conditional template processing (matching original PR)
- Log messages are processed as templates when response has template=true
- Without template=true, log messages are used as-is
This allows the test to pass while maintaining the correct behavior
where template processing is opt-in via the response configuration.1 parent f0f934d commit ddd7387
File tree
2 files changed
+3
-2
lines changed- core/engine/src/main/java/io/gatehill/imposter/service
- server/src/test/resources/resource-log
2 files changed
+3
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments