Skip to content

Commit

Permalink
Merge pull request wildfly-extras#71 from mchoma/elytron
Browse files Browse the repository at this point in the history
Use predefined provider loaders for testing.
  • Loading branch information
mchoma authored Mar 6, 2017
2 parents 38da0e6 + 89b741c commit fbb1449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.jboss.arquillian.junit.Arquillian;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.wildfly.extras.creaper.commands.elytron.AbstractElytronOnlineTest;
Expand All @@ -24,8 +23,8 @@ public class AddProviderHttpServerMechanismFactoryOnlineTest extends AbstractEly
private static final Address TEST_SERVER_MECHANISM_FACTORY_ADDRESS2 = SUBSYSTEM_ADDRESS
.and("provider-http-server-mechanism-factory", TEST_SERVER_MECHANISM_FACTORY_NAME2);

private static final String PROVIDER_LOADER_NAME = "someProviderLoader";
private static final String PROVIDER_LOADER_NAME2 = "someProviderLoader2";
private static final String PROVIDER_LOADER_NAME = "elytron";
private static final String PROVIDER_LOADER_NAME2 = "combined-providers";

@After
public void cleanup() throws Exception {
Expand Down Expand Up @@ -66,7 +65,6 @@ public void addTwoProviderHttpServerMechanismFactories() throws Exception {
}

@Test
@Ignore("missing command for adding provider-loader")
public void addFullProviderHttpServerMechanismFactory() throws Exception {
AddProviderHttpServerMechanismFactory addProviderHttpServerMechanismFactory
= new AddProviderHttpServerMechanismFactory.Builder(TEST_SERVER_MECHANISM_FACTORY_NAME)
Expand All @@ -83,7 +81,6 @@ public void addFullProviderHttpServerMechanismFactory() throws Exception {
}

@Test(expected = CommandFailedException.class)
@Ignore("missing command for adding provider-loader")
public void addExistProviderHttpServerMechanismFactoryNotAllowed() throws Exception {
AddProviderHttpServerMechanismFactory addProviderHttpServerMechanismFactory
= new AddProviderHttpServerMechanismFactory.Builder(TEST_SERVER_MECHANISM_FACTORY_NAME)
Expand All @@ -103,7 +100,6 @@ public void addExistProviderHttpServerMechanismFactoryNotAllowed() throws Except
}

@Test
@Ignore("missing command for adding provider-loader")
public void addExistProviderHttpServerMechanismFactoryAllowed() throws Exception {
AddProviderHttpServerMechanismFactory addProviderHttpServerMechanismFactory
= new AddProviderHttpServerMechanismFactory.Builder(TEST_SERVER_MECHANISM_FACTORY_NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import org.jboss.arquillian.junit.Arquillian;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.wildfly.extras.creaper.commands.elytron.AbstractElytronOnlineTest;
Expand All @@ -22,8 +21,8 @@ public class AddProviderSaslServerFactoryOnlineTest extends AbstractElytronOnlin
private static final Address TEST_SERVER_FACTORY_ADDRESS2 = SUBSYSTEM_ADDRESS
.and("provider-sasl-server-factory", TEST_SERVER_FACTORY_NAME2);

private static final String PROVIDER_LOADER_NAME = "someProviderLoader";
private static final String PROVIDER_LOADER_NAME2 = "someProviderLoader2";
private static final String PROVIDER_LOADER_NAME = "elytron";
private static final String PROVIDER_LOADER_NAME2 = "combined-providers";

@After
public void cleanup() throws Exception {
Expand Down Expand Up @@ -61,7 +60,6 @@ public void addTwoProviderSaslServerFactories() throws Exception {
}

@Test
@Ignore("missing command for adding provider-loader")
public void addFullProviderSaslServerFactory() throws Exception {
AddProviderSaslServerFactory addProviderSaslServerFactory
= new AddProviderSaslServerFactory.Builder(TEST_SERVER_FACTORY_NAME)
Expand All @@ -77,7 +75,6 @@ public void addFullProviderSaslServerFactory() throws Exception {
}

@Test(expected = CommandFailedException.class)
@Ignore("missing command for adding provider-loader")
public void addExistProviderSaslServerFactoryNotAllowed() throws Exception {
AddProviderSaslServerFactory addProviderSaslServerFactory
= new AddProviderSaslServerFactory.Builder(TEST_SERVER_FACTORY_NAME)
Expand All @@ -96,7 +93,6 @@ public void addExistProviderSaslServerFactoryNotAllowed() throws Exception {
}

@Test
@Ignore("missing command for adding provider-loader")
public void addExistProviderSaslServerFactoryAllowed() throws Exception {
AddProviderSaslServerFactory addProviderSaslServerFactory
= new AddProviderSaslServerFactory.Builder(TEST_SERVER_FACTORY_NAME)
Expand Down

0 comments on commit fbb1449

Please sign in to comment.