Skip to content

Commit

Permalink
WFLY-12655 : exclude tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano committed Nov 12, 2019
1 parent 941b146 commit 6872902
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
@@ -0,0 +1,9 @@
package org.jboss.resteasy.category;

/**
* Marker interface for tests which are expected to fail on WildFly 18.0.0.Final
*
*/
public interface ExpectedFailingOnWildFly18 {

}
Expand Up @@ -10,6 +10,7 @@
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.as.arquillian.api.ServerSetup;
import org.jboss.resteasy.category.ExpectedFailingOnWildFly18;
import org.jboss.resteasy.category.NotForForwardCompatibility;
import org.jboss.resteasy.client.jaxrs.ResteasyClient;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
Expand Down Expand Up @@ -49,6 +50,7 @@
@ServerSetup({BasicAuthTest.SecurityDomainSetup.class})
@RunWith(Arquillian.class)
@RunAsClient
@Category({ExpectedFailingOnWildFly18.class}) //WFLY-12655
public class BasicAuthTest {

private static final String WRONG_RESPONSE = "Wrong response content.";
Expand Down
Expand Up @@ -10,6 +10,7 @@
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.as.arquillian.api.ServerSetup;
import org.jboss.resteasy.category.ExpectedFailingOnWildFly18;
import org.jboss.resteasy.category.NotForForwardCompatibility;
import org.jboss.resteasy.client.jaxrs.ResteasyClient;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
Expand Down Expand Up @@ -45,7 +46,7 @@
@ServerSetup({CustomForbiddenMessageTest.SecurityDomainSetup.class})
@RunWith(Arquillian.class)
@RunAsClient
@Category({NotForForwardCompatibility.class})
@Category({NotForForwardCompatibility.class,ExpectedFailingOnWildFly18.class})
public class CustomForbiddenMessageTest {

private static ResteasyClient authorizedClient;
Expand Down
Expand Up @@ -10,6 +10,7 @@
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.as.arquillian.api.ServerSetup;
import org.jboss.resteasy.category.ExpectedFailingOnWildFly18;
import org.jboss.resteasy.client.jaxrs.ResteasyClient;
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder;
import org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine;
Expand All @@ -24,6 +25,7 @@
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;

import javax.ws.rs.core.Response;
Expand All @@ -44,6 +46,7 @@
@ServerSetup({TwoSecurityDomainsTest.SecurityDomainSetup1.class, TwoSecurityDomainsTest.SecurityDomainSetup2.class})
@RunWith(Arquillian.class)
@RunAsClient
@Category({ExpectedFailingOnWildFly18.class}) //WFLY-12655
public class TwoSecurityDomainsTest {

private static ResteasyClient authorizedClient;
Expand Down
8 changes: 4 additions & 4 deletions testsuite/pom.xml
Expand Up @@ -126,19 +126,19 @@
</property>
</activation>
<properties>
<server.version>16.0.0.Final</server.version>
<server.version>17.0.0.Final</server.version>
</properties>
</profile>
<profile>
<id>server-version-14x-exclusions</id>
<id>server-version-18x-exclusions</id>
<activation>
<property>
<name>server.version</name>
<value>14.0.0.Final</value>
<value>18.0.0.Final</value>
</property>
</activation>
<properties>
<additional.surefire.excluded.groups>org.jboss.resteasy.category.ExpectedFailingOnWildFly14</additional.surefire.excluded.groups>
<additional.surefire.excluded.groups>org.jboss.resteasy.category.ExpectedFailingOnWildFly18</additional.surefire.excluded.groups>
</properties>
</profile>
<!-- If resteasy.version is specified, it will be used for tests instead of the project.version -->
Expand Down

0 comments on commit 6872902

Please sign in to comment.