Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added KnownIssue category, annotated known issues #365

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.apache.commons.lang3.RandomStringUtils;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.hal.testsuite.category.KnownIssue;
import org.jboss.hal.testsuite.category.Shared;
import org.jboss.hal.testsuite.creaper.ManagementClientProvider;
import org.jboss.hal.testsuite.creaper.ResourceVerifier;
Expand Down Expand Up @@ -171,6 +172,7 @@ public void invalidXADatasource() {
}

@Test
@Category(KnownIssue.class)
public void testValidXAConnectionInWizardAndCancel() throws Exception {
datasourcesPage.invokeAddXADatasource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.dmr.ModelNode;
import org.jboss.hal.testsuite.category.Elytron;
import org.jboss.hal.testsuite.category.KnownIssue;
import org.jboss.hal.testsuite.creaper.ResourceVerifier;
import org.jboss.hal.testsuite.dmr.ModelNodeGenerator;
import org.jboss.hal.testsuite.fragment.ConfigFragment;
Expand Down Expand Up @@ -291,6 +292,7 @@ public void testEditJACCPolicy() throws Exception {
}

@Test
@Category(KnownIssue.class)
public void testEditJACCPolicySingleAttribute() throws Exception {
final String jaccPolicyName = randomAlphabetic(7);
final String defaultModuleName = policyModuleName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.jboss.arquillian.drone.api.annotation.Drone;
import org.jboss.arquillian.graphene.page.Page;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.hal.testsuite.category.KnownIssue;
import org.jboss.hal.testsuite.category.Standalone;
import org.jboss.hal.testsuite.creaper.ManagementClientProvider;
import org.jboss.hal.testsuite.creaper.command.DeployCommand;
Expand Down Expand Up @@ -391,6 +392,7 @@ public void medExplodedDeploymentFlagFalseInViewInfoSuccessExpected() {
}

@Test
@Category(KnownIssue.class)
public void medExplodedDeploymentFlagTrueInViewInfoSuccessExpected() {
page.navigateToDeploymentAndInvokeView(DEPLOYMENT_MANAGED_ENABLED_8);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.jboss.arquillian.graphene.page.Page;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.dmr.ModelNode;
import org.jboss.hal.testsuite.category.KnownIssue;
import org.jboss.hal.testsuite.category.Shared;
import org.jboss.hal.testsuite.creaper.ManagementClientProvider;
import org.jboss.hal.testsuite.creaper.ResourceVerifier;
Expand Down Expand Up @@ -121,6 +122,7 @@ public static void afterClass() throws Exception {
* the connection factory and verify against management model that displayed statistics have changed correctly.
*/
@Test
@Category(KnownIssue.class)
public void jmsXaPoolStatisticsTest() throws Exception {
generateStats();
page.navigateToDefaultProviderStats().switchToPooledConnectionFactory()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.jboss.hal.testsuite.category;

public interface KnownIssue {
}
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@
<test.included.category>
org.jboss.hal.testsuite.category.Elytron
</test.included.category>
<test.excluded.category>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be able to choose if we want to run KnownIssue tests or not. This way of implementation excludes KnownIssues tests every time.
We rather need new profile which let us choose if we want to run them or not.

org.jboss.hal.testsuite.category.KnownIssue
</test.excluded.category>
</properties>
</profile>

Expand All @@ -364,13 +367,17 @@
org.jboss.hal.testsuite.category.PicketBox,
org.jboss.hal.testsuite.category.PicketLink
</test.included.category>
<test.excluded.category>
org.jboss.hal.testsuite.category.KnownIssue
</test.excluded.category>
</properties>
</profile>

<profile>
<id>noSecurity</id>
<properties>
<test.excluded.category>
org.jboss.hal.testsuite.category.KnownIssue,
org.jboss.hal.testsuite.category.Elytron,
org.jboss.hal.testsuite.category.PicketBox,
org.jboss.hal.testsuite.category.PicketLink
Expand Down