added test for pulling from docker registry

This commit is contained in:
Priya Wadhwa
2018-04-11 14:19:09 -07:00
parent 4d048d1607
commit e3b7b451f5
4 changed files with 26 additions and 4 deletions
@@ -0,0 +1,2 @@
FROM busybox
RUN echo "hey" > /hey
@@ -0,0 +1,12 @@
[
{
"Image1": "gcr.io/kbuild-test/docker-test-registry:latest",
"Image2": "gcr.io/kbuild-test/kbuild-test-registry:latest",
"DiffType": "File",
"Diff": {
"Adds": null,
"Dels": null,
"Mods": null
}
}
]
@@ -14,8 +14,8 @@
},
{
"Name": "/var/log/apt/term.log",
"Size1": 24421,
"Size2": 24421
"Size1": 23671,
"Size2": 23671
},
{
"Name": "/var/cache/ldconfig/aux-cache",
@@ -24,8 +24,8 @@
},
{
"Name": "/var/log/apt/history.log",
"Size1": 5415,
"Size2": 5415
"Size1": 5661,
"Size2": 5661
},
{
"Name": "/var/log/alternatives.log",
@@ -110,6 +110,14 @@ var fileTests = []struct {
kbuildContext: buildcontextPath,
repo: "test-add",
},
{
description: "test registry",
dockerfilePath: "/workspace/integration_tests/dockerfiles/Dockerfile_test_registry",
configPath: "/workspace/integration_tests/dockerfiles/config_test_registry.json",
dockerContext: buildcontextPath,
kbuildContext: buildcontextPath,
repo: "test-registry",
},
}
var structureTests = []struct {