Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-19284

Tests which add modules should be moved to manual mode tests or correctly clean up resources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Test Suite
    • None
    • ---
    • ---

      There seem to be various methods to add a module for testing purposes. Most of these have a way to delete the module on the file system. However, this doesn't really work. While on some platforms, e.g. not Windows, the files and directories can be deleted. However, the org.jboss.modules.Module and it's resource loader are still available in the container. This is the reason the delete doesn't work on Windows.

      This means that add modules should likely be manual mode tests. The other option would be to find a way to close the module resources, then delete the module. There may be a possibility to do this via JMX. However, it would need to happen after all deployments were undeployed.

      If we do not move the tests, the utility should likely be in WildFly Arquillian so that other projects can also use the utilities. For now tests must use different module names for every test that adds a module.

      See https://wildfly.zulipchat.com/#narrow/stream/174184-wildfly-developers/topic/WildFly.20Arquillian.205.2E1.20Upgrade for some more details.

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: