Issue #5264 - More post move to /demos/ updates

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2020-09-23 15:38:34 -05:00
parent f7cf41109b
commit ad805d4756
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
14 changed files with 29 additions and 29 deletions

View File

@ -56,7 +56,7 @@ There is an example of link:#rewrite-rules[rules] configuration in the standard
[source, xml, subs="{sub-order}"] [source, xml, subs="{sub-order}"]
---- ----
include::{SRCDIR}/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml[] include::{SRCDIR}/demos/demo-jetty-webapp/src/main/config/modules/demo.d/demo-rewrite-rules.xml[]
---- ----
===== Embedded Example ===== Embedded Example

View File

@ -195,8 +195,8 @@ Here's an example configuration of the war plugin that separate those phases int
<overlays> <overlays>
<overlay /> <overlay />
<overlay> <overlay>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-jetty-webapp</artifactId> <artifactId>demo-jetty-webapp</artifactId>
</overlay> </overlay>
</overlays> </overlays>
</configuration> </configuration>

View File

@ -369,15 +369,15 @@
<!-- Eclipse OSGi Deps --> <!-- Eclipse OSGi Deps -->
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-jetty-webapp</artifactId> <artifactId>demo-jetty-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<classifier>webbundle</classifier> <classifier>webbundle</classifier>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty.tests</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-spec-webapp</artifactId> <artifactId>demo-spec-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<scope>test</scope> <scope>test</scope>

View File

@ -78,7 +78,7 @@ public class TestJettyOSGiBootHTTP2Conscrypt
options.addAll(TestOSGiUtil.coreJettyDependencies()); options.addAll(TestOSGiUtil.coreJettyDependencies());
options.addAll(TestOSGiUtil.jspDependencies()); options.addAll(TestOSGiUtil.jspDependencies());
//deploy a test webapp //deploy a test webapp
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject()); options.add(mavenBundle().groupId("org.eclipse.jetty.demos").artifactId("demo-jetty-webapp").classifier("webbundle").versionAsInProject());
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-conscrypt-client").versionAsInProject().start()); options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-conscrypt-client").versionAsInProject().start());
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-client").versionAsInProject().start()); options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-client").versionAsInProject().start());
options.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-client").versionAsInProject().start()); options.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-client").versionAsInProject().start());

View File

@ -75,7 +75,7 @@ public class TestJettyOSGiBootHTTP2JDK9
options.addAll(TestOSGiUtil.coreJettyDependencies()); options.addAll(TestOSGiUtil.coreJettyDependencies());
options.addAll(TestOSGiUtil.jspDependencies()); options.addAll(TestOSGiUtil.jspDependencies());
//deploy a test webapp //deploy a test webapp
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject()); options.add(mavenBundle().groupId("org.eclipse.jetty.demos").artifactId("demo-jetty-webapp").classifier("webbundle").versionAsInProject());
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-java-client").versionAsInProject().start()); options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-java-client").versionAsInProject().start());
options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-client").versionAsInProject().start()); options.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-alpn-client").versionAsInProject().start());
options.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-client").versionAsInProject().start()); options.add(mavenBundle().groupId("org.eclipse.jetty.http2").artifactId("http2-client").versionAsInProject().start());

View File

@ -84,7 +84,7 @@ public class TestJettyOSGiBootWithJavaxWebSocket
{ {
List<Option> res = new ArrayList<>(); List<Option> res = new ArrayList<>();
//test webapp bundle //test webapp bundle
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject().noStart()); res.add(mavenBundle().groupId("org.eclipse.jetty.demos").artifactId("demo-jetty-webapp").classifier("webbundle").versionAsInProject().noStart());
return res; return res;
} }

View File

@ -74,7 +74,7 @@ public class TestJettyOSGiBootWithJsp
{ {
List<Option> res = new ArrayList<>(TestOSGiUtil.jspDependencies()); List<Option> res = new ArrayList<>(TestOSGiUtil.jspDependencies());
//test webapp bundle //test webapp bundle
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject()); res.add(mavenBundle().groupId("org.eclipse.jetty.demos").artifactId("demo-jetty-webapp").classifier("webbundle").versionAsInProject());
return res; return res;
} }

View File

@ -79,7 +79,7 @@ public class TestJettyOSGiBootWithWebSocket
{ {
List<Option> res = new ArrayList<>(); List<Option> res = new ArrayList<>();
//test webapp bundle //test webapp bundle
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("test-jetty-webapp").classifier("webbundle").versionAsInProject()); res.add(mavenBundle().groupId("org.eclipse.jetty.demos").artifactId("demo-jetty-webapp").classifier("webbundle").versionAsInProject());
return res; return res;
} }

View File

@ -87,8 +87,8 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-jetty-webapp</artifactId> <artifactId>demo-jetty-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<scope>test</scope> <scope>test</scope>

View File

@ -120,19 +120,19 @@ public class DemoModulesTests extends AbstractJettyHomeTest
startHttpClient(); startHttpClient();
ContentResponse response; ContentResponse response;
response = client.GET("http://localhost:" + httpPort + "/async-rest/testSerial?items=kayak"); response = client.GET("http://localhost:" + httpPort + "/demo-async-rest/testSerial?items=kayak");
assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response)); assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response));
assertThat(response.getContentAsString(), containsString("Blocking: kayak")); assertThat(response.getContentAsString(), containsString("Blocking: kayak"));
response = client.GET("http://localhost:" + httpPort + "/async-rest/testSerial?items=mouse,beer,gnome"); response = client.GET("http://localhost:" + httpPort + "/demo-async-rest/testSerial?items=mouse,beer,gnome");
assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response)); assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response));
assertThat(response.getContentAsString(), containsString("Blocking: mouse,beer,gnome")); assertThat(response.getContentAsString(), containsString("Blocking: mouse,beer,gnome"));
response = client.GET("http://localhost:" + httpPort + "/async-rest/testAsync?items=kayak"); response = client.GET("http://localhost:" + httpPort + "/demo-async-rest/testAsync?items=kayak");
assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response)); assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response));
assertThat(response.getContentAsString(), containsString("Asynchronous: kayak")); assertThat(response.getContentAsString(), containsString("Asynchronous: kayak"));
response = client.GET("http://localhost:" + httpPort + "/async-rest/testAsync?items=mouse,beer,gnome"); response = client.GET("http://localhost:" + httpPort + "/demo-async-rest/testAsync?items=mouse,beer,gnome");
assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response)); assertEquals(HttpStatus.OK_200, response.getStatus(), new ResponseDetails(response));
assertThat(response.getContentAsString(), containsString("Asynchronous: mouse,beer,gnome")); assertThat(response.getContentAsString(), containsString("Asynchronous: mouse,beer,gnome"));
} }

View File

@ -395,7 +395,7 @@ public class DistributionTests extends AbstractJettyHomeTest
writer.write("org.eclipse.jetty.LEVEL=INFO"); writer.write("org.eclipse.jetty.LEVEL=INFO");
} }
File war = distribution.resolveArtifact("org.eclipse.jetty.tests:test-proxy-webapp:war:" + jettyVersion); File war = distribution.resolveArtifact("org.eclipse.jetty.demos:demo-proxy-webapp:war:" + jettyVersion);
distribution.installWarFile(war, "proxy"); distribution.installWarFile(war, "proxy");
int port = distribution.freePort(); int port = distribution.freePort();

View File

@ -58,7 +58,7 @@ public class DynamicListenerTests
assertTrue(run1.awaitFor(5, TimeUnit.SECONDS)); assertTrue(run1.awaitFor(5, TimeUnit.SECONDS));
assertEquals(0, run1.getExitValue()); assertEquals(0, run1.getExitValue());
File war = distribution.resolveArtifact("org.eclipse.jetty:test-jetty-webapp:war:" + jettyVersion); File war = distribution.resolveArtifact("org.eclipse.jetty.demos:demo-jetty-webapp:war:" + jettyVersion);
distribution.installWarFile(war, "test"); distribution.installWarFile(war, "test");
Path etc = Paths.get(jettyBase.toString(), "etc"); Path etc = Paths.get(jettyBase.toString(), "etc");

View File

@ -167,8 +167,8 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-jetty-webapp</artifactId> <artifactId>demo-jetty-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<scope>test</scope> <scope>test</scope>

View File

@ -171,8 +171,8 @@
<configuration> <configuration>
<artifactItems> <artifactItems>
<artifactItem> <artifactItem>
<groupId>org.eclipse.jetty.tests</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-jndi-webapp</artifactId> <artifactId>demo-jndi-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>
@ -181,8 +181,8 @@
<destFileName>test-jndi.war</destFileName> <destFileName>test-jndi.war</destFileName>
</artifactItem> </artifactItem>
<artifactItem> <artifactItem>
<groupId>org.eclipse.jetty.tests</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-spec-webapp</artifactId> <artifactId>demo-spec-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>
@ -191,8 +191,8 @@
<destFileName>test-spec.war</destFileName> <destFileName>test-spec.war</destFileName>
</artifactItem> </artifactItem>
<artifactItem> <artifactItem>
<groupId>org.eclipse.jetty</groupId> <groupId>org.eclipse.jetty.demos</groupId>
<artifactId>test-jetty-webapp</artifactId> <artifactId>demo-jetty-webapp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>war</type> <type>war</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>