[xwiki/xwiki-platform] 9c63c2: [Misc] Migrate the LinkChecker functional test to ...
Branch: refs/heads/advisor/007-linkchecker-docker-test Home: https://github.com/xwiki/xwiki-platform Commit: 9c63c2b2944561ce4800103ee63ecd9bb7734e9a https://github.com/xwiki/xwiki-platform/commit/9c63c2b2944561ce4800103ee63ec... Author: Vincent Massol <[email protected]> Date: 2026-07-24 (Fri, 24 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/pom.xml A xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-docker/pom.xml A xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-docker/src/main/java/org/xwiki/test/linkchecker/internal/StubHTTPChecker.java A xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-docker/src/main/resources/META-INF/components.txt A xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-docker/src/test/it/org/xwiki/linkchecker/test/ui/AllIT.java A xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-docker/src/test/it/org/xwiki/linkchecker/test/ui/LinkCheckerIT.java R xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-tests/pom.xml R xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-tests/src/main/java/org/xwiki/test/linkchecker/internal/StubHTTPChecker.java R xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-tests/src/main/resources/META-INF/components.txt R xwiki-platform-core/xwiki-platform-linkchecker/xwiki-platform-linkchecker-test/xwiki-platform-linkchecker-test-tests/src/test/it/org/xwiki/linkchecker/test/ui/LinkCheckerTest.java Log Message: ----------- [Misc] Migrate the LinkChecker functional test to the JUnit5 Docker test framework Convert LinkCheckerTest (JUnit4, xwiki-platform-test-ui, packager plugin) to the JUnit5 Docker framework (@UITest) in a new xwiki-platform-linkchecker-test-docker module, and remove the old packager-based xwiki-platform-linkchecker-test-tests module. The single test (linkChecker) keeps its original assertion on the "External Links" livetable and gains one on the reported link state (404). That new assertion fails if StubHTTPChecker ever stops being the registered HTTPChecker: the real implementation answers 0 for an unresolvable host and the livetable row is displayed whatever the response code, so a bypassed stub would otherwise go unnoticed. The StubHTTPChecker component (which keeps the test off the network) moves into the new module's src/main. Since it ships in WEB-INF/classes and is parsed by the component annotation loader at WAR startup, the HTTPChecker role it implements must be in WEB-INF/lib at that point; that role lives in the linkchecker rendering transformation, which is not part of the minimal test WAR, so it is added via @UITest(extraJARs=...). The linkchecker transformation is activated by appending it to rendering.transformations in xwiki.properties. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications