Skip to content

Commit 6d7025d

Browse files
committed
Support testing against localhost:8080/geoserver
1 parent 80e237d commit 6d7025d

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

documentation/en/user/source/development/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ Build
8989
9090
cd web
9191
mvn jetty:run
92+
93+
The service is available on http://localhost:8081/geonetwork allowing local testing with http://localhost:8080/geoserver layers. To change the port number use ``jetty.http.port``
94+
as describde in `jetty 10 documentation <https://jetty.org/docs/jetty/10/programming-guide/maven-jetty/jetty-maven-plugin.html>`_.
9295

9396
#. A WAR is built as the last step in ``mvn clean install`` above.
9497

geowebcache/core/src/main/resources/geowebcache.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
</stringParameterFilter>
189189
</parameterFilters>
190190
<wmsUrl>
191-
<string>https://demo.boundlessgeo.com/geoserver/topp/wms</string>
191+
<string>http://localhost:8080/geoserver/topp/wms</string>
192192
</wmsUrl>
193193
<legends defaultWidth="81" defaultHeight="80" defaultFormat="image/png">
194194
<legend style="population"/>
@@ -217,7 +217,7 @@
217217
</gridSubset>
218218
</gridSubsets>
219219
<wmsUrl>
220-
<string>https://demo.boundlessgeo.com/geoserver/wms</string>
220+
<string>http://localhost:8080/geoserver/topp/wms</string>
221221
</wmsUrl>
222222
<wmsLayers>nasa:bluemarble</wmsLayers>
223223
<legends defaultWidth="20" defaultHeight="20" defaultFormat="image/png">
@@ -258,7 +258,7 @@
258258
<expirationRule minZoom="0" expiration="500" />
259259
</expireClientsList>
260260
<wmsUrl>
261-
<string>https://demo.boundlessgeo.com/geoserver/wms</string>
261+
<string>http://localhost:8080/geoserver/topp/wms</string>
262262
</wmsUrl>
263263
<wmsLayers>nurc:Img_Sample,topp:states</wmsLayers>
264264
<transparent>false</transparent>

geowebcache/web/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@
178178
<webApp>
179179
<contextPath>/geowebcache</contextPath>
180180
</webApp>
181+
<httpConnector>
182+
<!--host>localhost</host-->
183+
<port>8081</port>
184+
</httpConnector>
181185
<systemProperties>
182186
<systemProperty>
183187
<name>log4j2.configurationFile</name>

geowebcache/web/src/test/java/org/geowebcache/jetty/RestIntegrationTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,7 @@ public void testGetLayer() throws Exception {
558558
assertThat(doc, hasXPath("/wmsLayer/name", equalTo("img states")));
559559
assertThat(
560560
doc,
561-
hasXPath(
562-
"/wmsLayer/wmsUrl/string",
563-
equalTo("https://demo.boundlessgeo.com/geoserver/wms?")));
561+
hasXPath("/wmsLayer/wmsUrl/string", equalTo("http://localhost:8080/geoserver/topp/wms?")));
564562
assertThat(doc, hasXPath("/wmsLayer/wmsLayers", equalTo("nurc:Img_Sample,topp:states")));
565563
});
566564
}

geowebcache/web/src/test/java/org/geowebcache/jetty/Start.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static void main(String[] args) {
4242
HttpConfiguration httpConfiguration = new HttpConfiguration();
4343

4444
ServerConnector http = new ServerConnector(jettyServer, new HttpConnectionFactory(httpConfiguration));
45-
http.setPort(Integer.getInteger("jetty.port", 8080));
45+
http.setPort(Integer.getInteger("jetty.http.port", 8081));
4646
http.setAcceptQueueSize(100);
4747
http.setIdleTimeout(1000 * 60 * 60);
4848

0 commit comments

Comments
 (0)