Skip to content

Commit bd53c15

Browse files
committed
Add test case for multiple image tags in build-docker-create
1 parent 93fb035 commit bd53c15

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docker_test.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,27 @@ func TestPushFatManifestImage(t *testing.T) {
287287
assert.True(t, totalResults > 1)
288288
}
289289

290+
func TestContainerPushMultipleImages(t *testing.T) {
291+
containerManagers := initContainerTest(t)
292+
imageNames := []string{
293+
tests.DockerImageName + "-multi1",
294+
tests.DockerImageName + "-multi2",
295+
tests.DockerImageName + "-multi3",
296+
}
297+
modules := []string{
298+
ModuleNameJFrogTest + "-multi1",
299+
ModuleNameJFrogTest + "-multi2",
300+
ModuleNameJFrogTest + "-multi3",
301+
}
302+
for _, repo := range []string{tests.DockerLocalRepo, tests.DockerVirtualRepo} {
303+
for _, containerManager := range containerManagers {
304+
for i := range imageNames {
305+
runPushTest(containerManager, imageNames[i], modules[i], true, t, repo)
306+
}
307+
}
308+
}
309+
}
310+
290311
func TestContainerPushBuildNameNumberFromEnv(t *testing.T) {
291312
containerManagers := initContainerTest(t)
292313
for _, containerManager := range containerManagers {
-559 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)