|
29 | 29 | import org.apache.hc.client5.http.auth.UsernamePasswordCredentials;
|
30 | 30 | import org.apache.hc.client5.testing.compatibility.async.CachingHttpAsyncClientCompatibilityTest;
|
31 | 31 | import org.apache.hc.client5.testing.compatibility.async.HttpAsyncClientCompatibilityTest;
|
| 32 | +import org.apache.hc.client5.testing.compatibility.async.HttpAsyncClientHttp1CompatibilityTest; |
32 | 33 | import org.apache.hc.client5.testing.compatibility.sync.CachingHttpClientCompatibilityTest;
|
33 | 34 | import org.apache.hc.client5.testing.compatibility.sync.HttpClientCompatibilityTest;
|
34 | 35 | import org.apache.hc.core5.http.HttpHost;
|
@@ -144,60 +145,60 @@ public ClassicViaPwProtectedProxyHttpTls() throws Exception {
|
144 | 145 |
|
145 | 146 | @Nested
|
146 | 147 | @DisplayName("Async client: HTTP/1.1, plain, direct connection")
|
147 |
| - class AsyncDirectHttp1 extends HttpAsyncClientCompatibilityTest { |
| 148 | + class AsyncDirectHttp1 extends HttpAsyncClientHttp1CompatibilityTest { |
148 | 149 |
|
149 | 150 | public AsyncDirectHttp1() throws Exception {
|
150 |
| - super(HttpVersionPolicy.FORCE_HTTP_1, targetContainerHost(), null, null); |
| 151 | + super(targetContainerHost(), null, null); |
151 | 152 | }
|
152 | 153 |
|
153 | 154 | }
|
154 | 155 |
|
155 | 156 | @Nested
|
156 | 157 | @DisplayName("Async client: HTTP/1.1, plain, connection via proxy")
|
157 |
| - class AsyncViaProxyHttp1 extends HttpAsyncClientCompatibilityTest { |
| 158 | + class AsyncViaProxyHttp1 extends HttpAsyncClientHttp1CompatibilityTest { |
158 | 159 |
|
159 | 160 | public AsyncViaProxyHttp1() throws Exception {
|
160 |
| - super(HttpVersionPolicy.FORCE_HTTP_1, targetInternalHost(), proxyContainerHost(), null); |
| 161 | + super(targetInternalHost(), proxyContainerHost(), null); |
161 | 162 | }
|
162 | 163 |
|
163 | 164 | }
|
164 | 165 |
|
165 | 166 | @Nested
|
166 | 167 | @DisplayName("Async client: HTTP/1.1, plain, connection via password protected proxy")
|
167 |
| - class AsyncViaPwProtectedProxyHttp1 extends HttpAsyncClientCompatibilityTest { |
| 168 | + class AsyncViaPwProtectedProxyHttp1 extends HttpAsyncClientHttp1CompatibilityTest { |
168 | 169 |
|
169 | 170 | public AsyncViaPwProtectedProxyHttp1() throws Exception {
|
170 |
| - super(HttpVersionPolicy.FORCE_HTTP_1, targetInternalHost(), proxyPwProtectedContainerHost(), new UsernamePasswordCredentials("squid", "nopassword".toCharArray())); |
| 171 | + super(targetInternalHost(), proxyPwProtectedContainerHost(), new UsernamePasswordCredentials("squid", "nopassword".toCharArray())); |
171 | 172 | }
|
172 | 173 |
|
173 | 174 | }
|
174 | 175 |
|
175 | 176 | @Nested
|
176 | 177 | @DisplayName("Async client: HTTP/1.1, TLS, direct connection")
|
177 |
| - class AsyncDirectHttp1Tls extends HttpAsyncClientCompatibilityTest { |
| 178 | + class AsyncDirectHttp1Tls extends HttpAsyncClientHttp1CompatibilityTest { |
178 | 179 |
|
179 | 180 | public AsyncDirectHttp1Tls() throws Exception {
|
180 |
| - super(HttpVersionPolicy.FORCE_HTTP_1, targetContainerTlsHost(), null, null); |
| 181 | + super(targetContainerTlsHost(), null, null); |
181 | 182 | }
|
182 | 183 |
|
183 | 184 | }
|
184 | 185 |
|
185 | 186 | @Nested
|
186 | 187 | @DisplayName("Async client: HTTP/1.1, TLS, connection via proxy (tunnel)")
|
187 |
| - class AsyncViaProxyHttp1Tls extends HttpAsyncClientCompatibilityTest { |
| 188 | + class AsyncViaProxyHttp1Tls extends HttpAsyncClientHttp1CompatibilityTest { |
188 | 189 |
|
189 | 190 | public AsyncViaProxyHttp1Tls() throws Exception {
|
190 |
| - super(HttpVersionPolicy.FORCE_HTTP_1, targetInternalTlsHost(), proxyContainerHost(), null); |
| 191 | + super(targetInternalTlsHost(), proxyContainerHost(), null); |
191 | 192 | }
|
192 | 193 |
|
193 | 194 | }
|
194 | 195 |
|
195 | 196 | @Nested
|
196 | 197 | @DisplayName("Async client: HTTP/1.1, TLS, connection via password protected proxy (tunnel)")
|
197 |
| - class AsyncViaPwProtectedProxyHttp1Tls extends HttpAsyncClientCompatibilityTest { |
| 198 | + class AsyncViaPwProtectedProxyHttp1Tls extends HttpAsyncClientHttp1CompatibilityTest { |
198 | 199 |
|
199 | 200 | public AsyncViaPwProtectedProxyHttp1Tls() throws Exception {
|
200 |
| - super(HttpVersionPolicy.FORCE_HTTP_1, targetInternalTlsHost(), proxyPwProtectedContainerHost(), new UsernamePasswordCredentials("squid", "nopassword".toCharArray())); |
| 201 | + super(targetInternalTlsHost(), proxyPwProtectedContainerHost(), new UsernamePasswordCredentials("squid", "nopassword".toCharArray())); |
201 | 202 | }
|
202 | 203 |
|
203 | 204 | }
|
|
0 commit comments