markap14 opened a new pull request, #11599: URL: https://github.com/apache/nifi/pull/11599
## Summary - Adds a new `nifi-system-test-framework` module containing `NiFiSystemIT` and its supporting infrastructure (`NiFiInstance`, `InstanceConfiguration`, `SpawnedStandaloneNiFiInstanceFactory`, `SpawnedClusterNiFiInstanceFactory`, `AggregateNiFiInstance`, `NiFiInstanceCache`, `NiFiClientUtil`, `NiFiSystemKeyStoreProvider`, `TroubleshootingTestWatcher`, etc.), moved to `src/main/java` so the artifact is a normal, publishable dependency rather than test-scoped code trapped inside `nifi-system-test-suite`. - Third-party NAR projects can now depend on `nifi-system-test-framework` (as a `test`-scope dependency, the same way `nifi-mock` is depended on for unit tests) to write their own System Tests that spawn a real NiFi instance and drive it via the REST client, without needing a full NiFi source checkout. - `nifi-system-test-suite` now depends on the new module instead of defining these classes itself. It retains all of its own `*IT` test classes, test resources, and the NiFi-specific `AbstractNarSwapMigrationIT` base class (which is tied to internal test-only NARs and isn't generic). - No behavior changes: package names are unchanged (`org.apache.nifi.tests.system`), so none of the ~500 existing `*IT` test classes required edits. ## Test plan - [x] `mvn -pl nifi-system-tests/nifi-system-test-framework -am install -DskipTests` — new module compiles and installs. - [x] `mvn -pl nifi-system-tests/nifi-system-test-suite -am install -DskipTests` — suite compiles against the new dependency. - [x] `mvn -pl nifi-system-tests/nifi-system-test-suite verify -Pintegration-tests,skip-unit-tests -Dit.test=ClassloaderIsolationKeyIT` — ran a real System Test end-to-end (spawns a NiFi instance) using `NiFiSystemIT` from the extracted module: `Tests run: 2, Failures: 0, Errors: 0`. -- 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]
