diff --git a/jetty-http2/http2-common/pom.xml b/jetty-http2/http2-common/pom.xml index f0b727025ee..7613456f35d 100644 --- a/jetty-http2/http2-common/pom.xml +++ b/jetty-http2/http2-common/pom.xml @@ -28,6 +28,25 @@ + + + org.apache.felix + maven-bundle-plugin + true + + + + manifest + + + + org.eclipse.jetty.http2.*;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"; + + + + + + diff --git a/jetty-osgi/pom.xml b/jetty-osgi/pom.xml index b61ff46e69c..d6ffee2f874 100644 --- a/jetty-osgi/pom.xml +++ b/jetty-osgi/pom.xml @@ -26,7 +26,7 @@ test-jetty-osgi-webapp test-jetty-osgi-context jetty-osgi-alpn - + test-jetty-osgi diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml new file mode 100644 index 00000000000..b0ad6581e10 --- /dev/null +++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty-http2.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootHTTP2.java b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootHTTP2.java index c0331cbe37f..7a181203b74 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootHTTP2.java +++ b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootHTTP2.java @@ -19,8 +19,8 @@ package org.eclipse.jetty.osgi.test; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; -import static org.ops4j.pax.exam.CoreOptions.systemProperty; import static org.ops4j.pax.exam.CoreOptions.options; +import static org.ops4j.pax.exam.CoreOptions.systemProperty; import java.io.File; import java.util.ArrayList; @@ -33,18 +33,16 @@ import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; +import org.ops4j.pax.exam.Configuration; import org.ops4j.pax.exam.CoreOptions; import org.ops4j.pax.exam.Option; -import org.ops4j.pax.exam.Configuration; import org.ops4j.pax.exam.junit.PaxExam; -import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; /** * HTTP2 setup. */ @RunWith(PaxExam.class) -//@Ignore public class TestJettyOSGiBootHTTP2 { private static final String LOG_LEVEL = "WARN"; @@ -69,8 +67,6 @@ public class TestJettyOSGiBootHTTP2 options.addAll(Arrays.asList(options(systemProperty("org.eclipse.jetty.util.component.LEVEL").value("DEBUG")))); options.addAll(Arrays.asList(options(systemProperty("org.eclipse.jetty.server.LEVEL").value("DEBUG")))); options.addAll(Arrays.asList(options(systemProperty("org.eclipse.jetty.xml.LEVEL").value("INFO")))); - // options.addAll(Arrays.asList(options(systemProperty("osgi.console").value("6666")))); - // options.addAll(Arrays.asList(options(systemProperty("osgi.console.enable.builtin").value("true")))); return options.toArray(new Option[options.size()]); } @@ -90,12 +86,12 @@ public class TestJettyOSGiBootHTTP2 res.add(mavenBundle().groupId("org.eclipse.jetty.osgi").artifactId("jetty-osgi-alpn").versionAsInProject().noStart()); res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-server").versionAsInProject().start()); - res.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-hpack").versionAsInProject().noStart()); res.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-common").versionAsInProject().noStart()); + res.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-hpack").versionAsInProject().noStart()); res.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-server").versionAsInProject().noStart()); return res; } - + @Test public void checkALPNBootOnBootstrapClasspath() throws Exception { @@ -103,20 +99,18 @@ public class TestJettyOSGiBootHTTP2 Assert.assertNotNull(alpn); Assert.assertNull(alpn.getClassLoader()); } - + @Ignore @Test - public void assertAllBundlesActiveOrResolved() + public void assertAllBundlesActiveOrResolved() throws Exception { - // TestOSGiUtil.debugBundles(bundleContext); TestOSGiUtil.assertAllBundlesActiveOrResolved(bundleContext); } + @Test public void testHTTP2OnHttpService() throws Exception { - // TestOSGiUtil.debugBundles(bundleContext); - // Thread.sleep(2000000000); TestOSGiUtil.testHttpServiceGreetings(bundleContext, "https", TestJettyOSGiBootCore.DEFAULT_SSL_PORT); }