This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-67bebf8d-5bc1-4314-9c83-519f6ffe9ac6 XWIKI-24191 Open

Docker Container handling for UI tests should be resilient to network issues and honor maven's offline configuration

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-430bf0c8-420a-42f5-b296-7a0936da5e60 Raphaël Jakse created this issue on 07/Apr/26 15:07
 
Summary: Docker Container handling for UI tests should be resilient to network issues and honor maven's offline configuration
Issue Type: cid:jira-generated-image-avatar-67bebf8d-5bc1-4314-9c83-519f6ffe9ac6 Bug
Affects Versions: 15.10, 17.10.6, 18.2.0
Assignee: Unassigned
Components: Test Framework
Created: 07/Apr/26 15:07
Priority: cid:jira-generated-image-static-major-256fdb64-e734-4762-9894-6ed3ca09a654 Major
Reporter: Raphaël Jakse
Description:

Currently, network accesses are still attempted while using maven's --offline flag during functional tests. In particular, the test framework tries to pull containers from docker. It should not do this when maven is configured to be offline.

Moreover, the tests fail if these network calls fail (because one is offline).

All this can be worked around by using the offline annotation: `@UITest(offline = true)`

I expect the following:

  • tests should not fail because of network issues (which includes the docker registry being down, or working from a train, or during a network failure) if everything needed to run the test is already present (in particlular the docker images)
  • network accesses should not be attempted if maven is configured to be offline, regardless the presence of the offline annotation of @UITest