joewitt opened a new pull request, #11949:
URL: https://github.com/apache/nifi/pull/11949
## Summary
- `MockValidationContext`'s two-argument constructor now uses
`processContext.getParameterLookup()` so TestRunner parameter context values
are substituted during validation, matching runtime evaluation.
- Processor tests that call `setParameterContextValue` and then
`assertValid()` with `#{param}` properties now pass; missing parameters still
leave the effective value unset.
- Adds `TestMockValidationContext` coverage for the constructor and
TestRunner paths, plus
`TestUpdateAttribute.testDynamicPropertyWithSetParameter` next to the existing
unset-parameter test.
## Test plan
- [x] `./mvnw -pl nifi-mock test -Dtest=TestMockValidationContext` (4 tests)
- [x] `./mvnw -pl
nifi-extension-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor
test -Dtest=TestUpdateAttribute` (37 tests, including set and unset parameter
cases)
JIRA: https://issues.apache.org/jira/browse/NIFI-16609
Made with [Cursor](https://cursor.com)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]