|
25 | 25 | import com.ibm.ws.microprofile.openapi.fat.utils.OpenAPIConnection; |
26 | 26 | import com.ibm.ws.microprofile.openapi.fat.utils.OpenAPITestUtil; |
27 | 27 |
|
| 28 | +import componenttest.annotation.MaximumJavaLevel; |
28 | 29 | import componenttest.annotation.Server; |
29 | 30 | import componenttest.custom.junit.runner.FATRunner; |
30 | 31 | import componenttest.rules.repeater.RepeatTests; |
@@ -137,6 +138,8 @@ public void testRefererDifferentPort() throws Exception { |
137 | 138 | * @throws Exception |
138 | 139 | */ |
139 | 140 | @Test |
| 141 | + @MaximumJavaLevel(javaLevel = 23) // On JAVA 24 many JDKs are setting the Host variable to localhost despite its |
| 142 | + // explicit definition |
140 | 143 | public void testRefererSamePort() throws Exception { |
141 | 144 | String referer = "http://openliberty.io:" + server.getHttpDefaultPort() + "/openapi"; |
142 | 145 | String openapi = OpenAPIConnection.openAPIDocsConnection(server, false).header(REFERER, referer).download(); |
@@ -181,6 +184,8 @@ public void testRefererSamePortOtherScheme() throws Exception { |
181 | 184 | * @throws Exception |
182 | 185 | */ |
183 | 186 | @Test |
| 187 | + @MaximumJavaLevel(javaLevel = 23) // On JAVA 24 many JDKs are setting the Host variable to localhost despite its |
| 188 | + // explicit definition |
184 | 189 | public void testForwardedDifferentPort() throws Exception { |
185 | 190 | String openapi = OpenAPIConnection.openAPIDocsConnection(server, false) |
186 | 191 | .header(HOST, "openliberty.io") |
@@ -231,6 +236,8 @@ public void testForwardedSamePort() throws Exception { |
231 | 236 | * @throws Exception |
232 | 237 | */ |
233 | 238 | @Test |
| 239 | + @MaximumJavaLevel(javaLevel = 23) // On JAVA 24 many JDKs are setting the Host variable to localhost despite its |
| 240 | + // explicit definition |
234 | 241 | public void testForwadedSamePortOtherScheme() throws Exception { |
235 | 242 | String openapi = OpenAPIConnection.openAPIDocsConnection(server, false) |
236 | 243 | .header(HOST, "openliberty.io:" + server.getHttpDefaultPort()) |
|
0 commit comments