The GitHub Actions job "CI" on 
grails-core.git/fix/12081-interceptor-model-unavailable has failed.
Run started by GitHub user ruthst00 (triggered by ruthst00).

Head commit for run:
cac59016f0ba8bbfd0370761f2884d52e9bf43f4 / ruthes00 <[email protected]>
Four files were changed in `grails-test-examples/views-functional-tests`:

1. RenderTemplateController.groovy (new) — a minimal controller whose `index()` 
action calls `render(template: 'snippet', model: [message: 'hello from 
template'])`. This is the exact public flow that stores the model in 
`GrailsApplicationAttributes.TEMPLATE_MODEL` rather than in a `ModelAndView`, 
exercising the fallback branch of `Interceptor#getModel()` that the existing 
unit tests only covered by directly setting the request attribute.

2. grails-app/views/renderTemplate/_snippet.gsp (new) — the GSP partial 
template rendered by the controller, containing `${message}` so the render call 
succeeds end-to-end.

3. ModelInterceptor.groovy — extended the controller regex from 
`'modelAndView|respond|return'` to 
`'modelAndView|respond|return|renderTemplate'` so the interceptor fires for the 
new controller.

4. ModelInterceptorIntSpec.groovy — added a new feature method `"interceptor 
after() can read model set by render(template:..., model:...) via 
TEMPLATE_MODEL fallback"` that hits `/renderTemplate`, asserts HTTP 200, and 
then asserts that `modelInterceptor.latestModel` is non-null, is a `Map`, and 
contains `message == 'hello from template'` — verifying the actual model 
contents rather than just presence.

Report URL: https://github.com/apache/grails-core/actions/runs/36906407600

With regards,
GitHub Actions via GitBox

Reply via email to