Skip to content

Commit fc3462b

Browse files
committed
fix: CVE-2021-20218 adapt test to 4.11.x project structure
1 parent 690647c commit fc3462b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.fabric8.kubernetes.client.dsl.internal;
16+
package io.fabric8.kubernetes.client.dsl.internal.core.v1;
1717

1818
import io.fabric8.kubernetes.client.KubernetesClientException;
19+
import io.fabric8.kubernetes.client.dsl.internal.PodOperationContext;
1920
import org.junit.jupiter.api.BeforeEach;
2021
import org.junit.jupiter.api.Test;
2122
import org.junit.jupiter.api.io.TempDir;
22-
import org.mockito.Mockito;
2323

2424
import java.nio.file.Path;
2525

@@ -41,7 +41,7 @@ void setUp() {
4141
void testWithForgedTar(@TempDir Path targetDirParent) throws Exception {
4242
// Given
4343
final Path targetDir = targetDirParent.resolve("target");
44-
final PodOperationsImpl poi = Mockito.spy(new PodOperationsImpl(baseContext.withDir("/var/source-dir")));
44+
final PodOperationsImpl poi = spy(new PodOperationsImpl(baseContext.withDir("/var/source-dir")));
4545
doReturn(PodOperationsImpl_CVE2021_20218_Test.class.getResourceAsStream("/2021_20218/tar-with-parent-traversal.tar"))
4646
.when(poi).readTar("/var/source-dir");
4747
// When

0 commit comments

Comments
 (0)