This is an automated email from the ASF dual-hosted git repository.
benweidig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
The following commit(s) were added to refs/heads/master by this push:
new d1942dd8b TAP5-2810: Use the variant port in app1's BaseURLSource
d1942dd8b is described below
commit d1942dd8bf163dff6b14da3e6c23a4f79594414b
Author: Ben Weidig <[email protected]>
AuthorDate: Sun Oct 25 15:11:11 2026 +0100
TAP5-2810: Use the variant port in app1's BaseURLSource
Read the ports from tapestry.port and tapestry.ssl-port, as ES shim URLs
are now absolute and come from BaseURLSource.
---
.../org/apache/tapestry5/integration/app1/services/AppModule.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
index 332f7644f..c192b3957 100644
---
a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
+++
b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/services/AppModule.java
@@ -118,7 +118,10 @@ public class AppModule
// This is all a bit jury-rigged together. This is for running
the app
// interactively; Selenium doesn't seem to handle the
transition to https.
- int port = secure ? 8443 : 9090;
+ // The integration test variants run on other ports, set by
the same properties as SeleniumTestCase.
+ int port = secure
+ ? Integer.getInteger("tapestry.ssl-port", 8443)
+ : Integer.getInteger("tapestry.port", 9090);
return String.format("%s://localhost:%d", protocol, port);
}