[ 
https://issues.apache.org/jira/browse/NUTCH-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136273#comment-18136273
 ] 

Hudson commented on NUTCH-3233:
-------------------------------

SUCCESS: Integrated in Jenkins build Nutch » Nutch-trunk #282 (See 
[https://ci-builds.apache.org/job/Nutch/job/Nutch-trunk/282/])
[NUTCH-3233] Add Testcontainers dependencies to the plugin test classpath 
(#987) (github: 
[https://github.com/apache/nutch/commit/99d7f2052993279b8f5ef60a6710e35f02f6ab21])
* (edit) src/plugin/build-plugin.xml


> Testcontainers protocol integration tests are skipped because Testcontainers' 
> dependencies are missing from the plugin test classpath
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-3233
>                 URL: https://issues.apache.org/jira/browse/NUTCH-3233
>             Project: Nutch
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.23
>            Reporter: Hande Celikkanat
>            Assignee: Hande Celikkanat
>            Priority: Major
>             Fix For: 1.24
>
>
> The protocol plugin integration tests that use Testcontainers (HttpProtocolIT,
> HtmlUnitProtocolIT, OkHttpProtocolIT, SeleniumProtocolIT, added in NUTCH-3175)
> are skipped even when Docker is available, for example:
> {noformat}
> ant test-protocol-integration
> ...
>      [echo] Running protocol integration tests for plugin: protocol-selenium
> [junitlauncher] Tests run: 0, Failures: 0, Aborted: 0, Skipped: 3, Time 
> elapsed: 0.111 sec
> {noformat}
> test.classpath in src/plugin/build-plugin.xml includes only 
> testcontainers*.jar
> from build/test/lib, not the runtime dependencies of Testcontainers
> (docker-java-api, docker-java-transport, docker-java-transport-zerodep,
> duct-tape, jna). Testcontainers cannot load its Docker client, and its JUnit
> extension (@Testcontainers(disabledWithoutDocker = true)) treats that as "no
> Docker available" and skips the tests. The indexer plugins should not be
> affected, because they declare Testcontainers modules in their own ivy.xml,
> which brings these dependencies into the plugin's test lib.
> Adding include patterns for docker-java*.jar, duct-tape*.jar and jna*.jar 
> makes
> the tests run. These cover the declared runtime dependencies of Testcontainers
> 2.0.5 and docker-java-transport-zerodep 3.7.1. slf4j-api and commons-compress
> are already on the classpath via build/lib, and jib-core is a provided
> dependency.
> With the tests enabled, HtmlUnitProtocolIT.testFetchReturnsContent fails:
> getProtocolOutput returns no content for a live nginx page. This needs a look
> before or together with this fix.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to