Skip to content
Permalink
Browse files
Further WIP on adding a test
  • Loading branch information
jgallimore committed Apr 29, 2019
1 parent 65634fb commit 7cd40d7c1c3a71098233e38b11f2a3b85097d375
Showing 2 changed files with 10 additions and 3 deletions.
@@ -53,7 +53,9 @@ public static WebArchive createDeployment() {
*/
@Test
@RunAsClient
private void testWildcard() throws InterruptedException {
private void testSimpleService() throws InterruptedException {

zipkin.httpUrl()


/*
@@ -21,6 +21,9 @@
import org.jboss.arquillian.core.spi.LoadableExtension;
import org.jboss.shrinkwrap.api.Archive;
import org.jboss.shrinkwrap.api.Filters;
import org.jboss.shrinkwrap.api.Node;

import java.util.Collection;

// the tck put the opentracing-api in the war but not our impl, let's fix it by using the apploader api jar!
public class SkipOpentracingApiSetup implements LoadableExtension {
@@ -34,8 +37,10 @@ public static class Impl {

public void clean(@Observes final BeforeDeploy beforeDeploy) {
final Archive<?> archive = beforeDeploy.getDeployment().getArchive();
archive.delete(archive.getContent(Filters.include("\\/WEB-INF\\/lib\\/opentracing\\-api\\-.*\\.jar")).values()
.iterator().next().getPath());
final Collection<Node> opentracingApi = archive.getContent(Filters.include("\\/WEB-INF\\/lib\\/opentracing\\-api\\-.*\\.jar")).values();
if (opentracingApi != null && !opentracingApi.isEmpty()) {
archive.delete(opentracingApi.iterator().next().getPath());
}
}
}
}

0 comments on commit 7cd40d7

Please sign in to comment.