@@ -23,43 +23,3 @@ test("pull image from container registry plugin", async (t) => {
23
23
24
24
t . true ( dockerPullSpy . called , "image pulled from remote registry" ) ;
25
25
} ) ;
26
-
27
- // function rmdirRecursive(customPath: string[]): void {
28
- // if (customPath.length < 2) {
29
- // return;
30
- // }
31
-
32
- // fs.rmdirSync(path.join(...customPath));
33
- // const next = customPath.slice(0, customPath.length - 1);
34
- // rmdirRecursive(next);
35
- // }
36
-
37
- // test("pull image from container registry unit", async (t) => {
38
- // const imageNameAndTag = `nginx:1.19.0`;
39
- // const customPath = "./new_custom/image/save/path";
40
- // const imageSavePath = path.join(customPath, uuidv4());
41
- // const dockerPullSpy = sinon.spy(Docker.prototype, "pull");
42
- // const subprocessStub = sinon.stub(subProcess, "execute");
43
- // subprocessStub.throws();
44
-
45
- // const archiveLocation = await imageInspector.getImageArchive(
46
- // imageNameAndTag,
47
- // imageSavePath,
48
- // );
49
- // t.teardown(() => {
50
- // dockerPullSpy.restore();
51
- // subprocessStub.restore();
52
- // rmdirRecursive(customPath.split(path.sep));
53
- // });
54
-
55
- // t.true(dockerPullSpy.called, "image pulled from remote registry");
56
- // t.equal(
57
- // archiveLocation.path,
58
- // path.join(imageSavePath, "image.tar"),
59
- // "expected full image path",
60
- // );
61
- // t.true(
62
- // fs.existsSync(path.join(imageSavePath, "image.tar")),
63
- // "image exists on disk",
64
- // );
65
- // });
0 commit comments