@snyk/snyk-docker-pull
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -39,7 +39,7 @@ { | ||
"dependencies": { | ||
"@snyk/docker-registry-v2-client": "^1.12.3", | ||
"@snyk/docker-registry-v2-client": "^1.13.2", | ||
"child-process": "^1.0.2", | ||
"tmp": "^0.1.0" | ||
}, | ||
"version": "3.0.0" | ||
"version": "3.0.1" | ||
} |
@@ -43,1 +43,18 @@ import { DockerPull, DockerPullOptions } from "../../src/docker-pull"; | ||
}); | ||
test("pull from public repo", async () => { | ||
const registry = "registry-1.docker.io"; | ||
const repo = "library/hello-world"; | ||
const tag = "latest"; | ||
const opt: DockerPullOptions = { | ||
loadImage: false | ||
}; | ||
const dockerPull: DockerPull = new DockerPull(); | ||
const resp = await dockerPull.pull(registry, repo, tag, opt); | ||
expect( | ||
fs.existsSync(path.join(resp.stagingDir.name, "image.tar")) | ||
).toBeTruthy(); | ||
resp.stagingDir.removeCallback(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36479
676