Skip to content

Commit

Permalink
Updates required for upgrading RESTEasy. Minor change to a module.xml…
Browse files Browse the repository at this point in the history
… file to match what is currently in WildFly. Disable a test which requires a new version of WildFly to be released.

Signed-off-by: James R. Perkins <[email protected]>
  • Loading branch information
jamezp committed Mar 2, 2023
1 parent 13d5722 commit 83ab606
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!-- TODO (jrp) do we want to rename the module name? -->
<module xmlns="urn:jboss:module:1.9" name="org.jboss.resteasy.resteasy-client-microprofile">

<properties>
Expand All @@ -36,6 +35,8 @@
<module name="org.eclipse.microprofile.restclient" />
<module name="org.eclipse.microprofile.config.api" />
<module name="org.jboss.logging" />
<!--This will add additional configuration lookups if available, however it's not required -->
<module name="org.jboss.resteasy.microprofile.config" services="import" optional="true" />
<module name="org.jboss.resteasy.resteasy-cdi" services="import" />
<module name="org.jboss.resteasy.resteasy-client-api" />
<module name="org.jboss.resteasy.resteasy-client" services="import" />
Expand Down
22 changes: 22 additions & 0 deletions testsuite/integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
<properties>
<!-- Galleon -->
<jboss.home>${project.build.directory}${file.separator}wildfly</jboss.home>

<!-- Feature Packs -->
<wildfly.feature.pack.groupId>org.wildfly</wildfly.feature.pack.groupId>
<wildfly.feature.pack.artifactId>wildfly-galleon-pack</wildfly.feature.pack.artifactId>
<wildfly.feature.pack.version>${version.org.wildfly}</wildfly.feature.pack.version>

<resteasy.feature.pack.groupId>org.jboss.resteasy</resteasy.feature.pack.groupId>
<resteasy.feature.pack.artifactId>galleon-feature-pack</resteasy.feature.pack.artifactId>
<resteasy.feature.pack.version>${version.org.jboss.resteasy}</resteasy.feature.pack.version>

<feature.pack.groupId>org.jboss.resteasy.microprofile</feature.pack.groupId>
<feature.pack.artifactId>galleon-feature-pack</feature.pack.artifactId>
<feature.pack.version>${project.version}</feature.pack.version>
Expand Down Expand Up @@ -181,6 +191,16 @@
<optional-packages>passive+</optional-packages>
</plugin-options>
<feature-packs>
<feature-pack>
<groupId>${wildfly.feature.pack.groupId}</groupId>
<artifactId>${wildfly.feature.pack.artifactId}</artifactId>
<version>${wildfly.feature.pack.version}</version>
</feature-pack>
<feature-pack>
<groupId>${resteasy.feature.pack.groupId}</groupId>
<artifactId>${resteasy.feature.pack.artifactId}</artifactId>
<version>${resteasy.feature.pack.version}</version>
</feature-pack>
<feature-pack>
<groupId>${feature.pack.groupId}</groupId>
<artifactId>${feature.pack.artifactId}</artifactId>
Expand Down Expand Up @@ -266,6 +286,8 @@

<properties>
<!-- Galleon -->
<wildfly.feature.pack.artifactId>wildfly-preview-feature-pack</wildfly.feature.pack.artifactId>
<resteasy.feature.pack.artifactId>galleon-preview-feature-pack</resteasy.feature.pack.artifactId>
<feature.pack.artifactId>galleon-preview-feature-pack</feature.pack.artifactId>
</properties>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.resteasy.microprofile.config.ConfigConfiguration;
import org.jboss.resteasy.microprofile.test.config.resource.MicroProfileConfigResource;
import org.jboss.resteasy.microprofile.test.config.resource.TestConfigApplication;
import org.jboss.resteasy.microprofile.test.util.TestEnvironment;
import org.jboss.resteasy.spi.config.ConfigurationFactory;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -37,11 +40,13 @@
* @author <a href="mailto:[email protected]">James R. Perkins</a>
*/
@RunWith(Arquillian.class)
@Ignore("This breaks with WildFly 27 and RESTEasy 6.2.3.Final. Once WildFly 28 is released, this can be re-enabled.")
public class ConfigConfigurationFactoryTest {

@Deployment
public static WebArchive deployment() {
return TestEnvironment.createWar(ConfigConfigurationFactoryTest.class)
.addClasses(TestConfigApplication.class, MicroProfileConfigResource.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}

Expand Down

0 comments on commit 83ab606

Please sign in to comment.