-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Jetty HttpClient implementation
Signed-off-by: Marc Nuri <[email protected]>
- Loading branch information
Showing
64 changed files
with
3,730 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...nt-jdk/src/test/java/io/fabric8/kubernetes/client/jdkhttp/JdkHttpClientAsyncBodyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client.jdkhttp; | ||
|
||
import io.fabric8.kubernetes.client.http.AbstractAsyncBodyTest; | ||
import io.fabric8.kubernetes.client.http.HttpClient; | ||
import org.junit.jupiter.api.Disabled; | ||
|
||
|
||
@SuppressWarnings("java:S2187") | ||
public class JdkHttpClientAsyncBodyTest extends AbstractAsyncBodyTest { | ||
@Override | ||
protected HttpClient.Factory getHttpClientFactory() { | ||
return new JdkHttpClientFactory(); | ||
} | ||
|
||
// TODO: Check tests validate expected behavior | ||
@Disabled("TODO: Check tests validate expected behavior") | ||
@Override | ||
public void consumeLinesProcessedAfterConsume() throws Exception { | ||
super.consumeLinesProcessedAfterConsume(); | ||
} | ||
|
||
// TODO: Check tests validate expected behavior | ||
@Disabled("TODO: Check tests validate expected behavior") | ||
@Override | ||
public void consumeLinesNotProcessedIfCancelled() throws Exception { | ||
super.consumeLinesNotProcessedIfCancelled(); | ||
} | ||
|
||
// TODO: Check tests validate expected behavior | ||
@Disabled("TODO: Check tests validate expected behavior") | ||
@Override | ||
public void consumeByteBufferLinesProcessedAfterConsume() throws Exception { | ||
super.consumeByteBufferLinesProcessedAfterConsume(); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...-jdk/src/test/java/io/fabric8/kubernetes/client/jdkhttp/JdkHttpClientInterceptorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client.jdkhttp; | ||
|
||
import io.fabric8.kubernetes.client.http.AbstractInterceptorTest; | ||
import io.fabric8.kubernetes.client.http.HttpClient; | ||
import org.junit.jupiter.api.Disabled; | ||
|
||
@SuppressWarnings("java:S2187") | ||
public class JdkHttpClientInterceptorTest extends AbstractInterceptorTest { | ||
@Override | ||
protected HttpClient.Factory getHttpClientFactory() { | ||
return new JdkHttpClientFactory(); | ||
} | ||
|
||
// TODO: Check implementation | ||
@Disabled("TODO: Check implementation") | ||
@Override | ||
public void afterHttpFailureReplacesResponseInConsumeLines() { | ||
} | ||
|
||
// TODO: Check implementation | ||
@Disabled("TODO: Check implementation") | ||
@Override | ||
public void afterHttpFailureReplacesResponseInConsumeBytes() { | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
httpclient-jdk/src/test/java/io/fabric8/kubernetes/client/jdkhttp/JdkHttpClientPostTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client.jdkhttp; | ||
|
||
import io.fabric8.kubernetes.client.http.AbstractHttpPostTest; | ||
import io.fabric8.kubernetes.client.http.HttpClient; | ||
|
||
@SuppressWarnings("java:S2187") | ||
public class JdkHttpClientPostTest extends AbstractHttpPostTest { | ||
@Override | ||
protected HttpClient.Factory getHttpClientFactory() { | ||
return new JdkHttpClientFactory(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...client-jdk/src/test/java/io/fabric8/kubernetes/client/jdkhttp/JdkHttpClientProxyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client.jdkhttp; | ||
|
||
import io.fabric8.kubernetes.client.http.AbstractHttpClientProxyTest; | ||
import io.fabric8.kubernetes.client.http.HttpClient; | ||
|
||
@SuppressWarnings("java:S2187") | ||
public class JdkHttpClientProxyTest extends AbstractHttpClientProxyTest { | ||
@Override | ||
protected HttpClient.Factory getHttpClientFactory() { | ||
return new JdkHttpClientFactory(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...dk/src/test/java/io/fabric8/kubernetes/client/jdkhttp/JdkHttpClientWebSocketSendTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Copyright (C) 2015 Red Hat, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.fabric8.kubernetes.client.jdkhttp; | ||
|
||
import io.fabric8.kubernetes.client.http.AbstractWebSocketSendTest; | ||
import io.fabric8.kubernetes.client.http.HttpClient; | ||
|
||
@SuppressWarnings("java:S2187") | ||
public class JdkHttpClientWebSocketSendTest extends AbstractWebSocketSendTest { | ||
@Override | ||
protected HttpClient.Factory getHttpClientFactory() { | ||
return new JdkHttpClientFactory(); | ||
} | ||
} |
Oops, something went wrong.