Skip to content

Commit 66795b5

Browse files
Merge pull request #32586 from benjamin-confino/RTC305715-max-java-version
Set maximum java level for OpenAPI proxy support tests
2 parents aec8685 + ca2a1de commit 66795b5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/ProxySupportTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.ibm.ws.microprofile.openapi.fat.utils.OpenAPIConnection;
2626
import com.ibm.ws.microprofile.openapi.fat.utils.OpenAPITestUtil;
2727

28+
import componenttest.annotation.MaximumJavaLevel;
2829
import componenttest.annotation.Server;
2930
import componenttest.custom.junit.runner.FATRunner;
3031
import componenttest.rules.repeater.RepeatTests;
@@ -137,6 +138,8 @@ public void testRefererDifferentPort() throws Exception {
137138
* @throws Exception
138139
*/
139140
@Test
141+
@MaximumJavaLevel(javaLevel = 23) // On JAVA 24 many JDKs are setting the Host variable to localhost despite its
142+
// explicit definition
140143
public void testRefererSamePort() throws Exception {
141144
String referer = "http://openliberty.io:" + server.getHttpDefaultPort() + "/openapi";
142145
String openapi = OpenAPIConnection.openAPIDocsConnection(server, false).header(REFERER, referer).download();
@@ -181,6 +184,8 @@ public void testRefererSamePortOtherScheme() throws Exception {
181184
* @throws Exception
182185
*/
183186
@Test
187+
@MaximumJavaLevel(javaLevel = 23) // On JAVA 24 many JDKs are setting the Host variable to localhost despite its
188+
// explicit definition
184189
public void testForwardedDifferentPort() throws Exception {
185190
String openapi = OpenAPIConnection.openAPIDocsConnection(server, false)
186191
.header(HOST, "openliberty.io")
@@ -231,6 +236,8 @@ public void testForwardedSamePort() throws Exception {
231236
* @throws Exception
232237
*/
233238
@Test
239+
@MaximumJavaLevel(javaLevel = 23) // On JAVA 24 many JDKs are setting the Host variable to localhost despite its
240+
// explicit definition
234241
public void testForwadedSamePortOtherScheme() throws Exception {
235242
String openapi = OpenAPIConnection.openAPIDocsConnection(server, false)
236243
.header(HOST, "openliberty.io:" + server.getHttpDefaultPort())

0 commit comments

Comments
 (0)