Skip to content

Commit 7db3453

Browse files
committed
Add test case for multiple image tags in build-docker-create
1 parent 3299611 commit 7db3453

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
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 {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ require (
189189
sigs.k8s.io/yaml v1.4.0 // indirect
190190
)
191191

192-
replace github.com/jfrog/jfrog-cli-artifactory => github.com/jfrog/jfrog-cli-artifactory v0.2.2-0.20250410102841-59bd5d8732de
192+
replace github.com/jfrog/jfrog-cli-artifactory => github.com/agrasth/jfrog-cli-artifactory v0.0.0-20250414071755-dbd58851a867
193193

194194
replace github.com/jfrog/jfrog-cli-core/v2 => github.com/jfrog/jfrog-cli-core/v2 v2.31.1-0.20250410085750-f34f5feea93e
195195

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpH
2121
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
2222
github.com/agnivade/levenshtein v1.2.1 h1:EHBY3UOn1gwdy/VbFwgo4cxecRznFk7fKWN1KOX7eoM=
2323
github.com/agnivade/levenshtein v1.2.1/go.mod h1:QVVI16kDrtSuwcpd0p1+xMC6Z/VfhtCyDIjcwga4/DU=
24+
github.com/agrasth/jfrog-cli-artifactory v0.0.0-20250414071755-dbd58851a867 h1:p9DZFBcdAG0tn08UJJimRAGQuwr4bhvSVEXWj9+5W8w=
25+
github.com/agrasth/jfrog-cli-artifactory v0.0.0-20250414071755-dbd58851a867/go.mod h1:nBbyq+mzQ5OxPnAubHy46xofI+Oqe+hAERN8vHbTiWE=
2426
github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=
2527
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
2628
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
@@ -186,8 +188,6 @@ github.com/jfrog/gofrog v1.7.6 h1:QmfAiRzVyaI7JYGsB7cxfAJePAZTzFz0gRWZSE27c6s=
186188
github.com/jfrog/gofrog v1.7.6/go.mod h1:ntr1txqNOZtHplmaNd7rS4f8jpA5Apx8em70oYEe7+4=
187189
github.com/jfrog/jfrog-apps-config v1.0.1 h1:mtv6k7g8A8BVhlHGlSveapqf4mJfonwvXYLipdsOFMY=
188190
github.com/jfrog/jfrog-apps-config v1.0.1/go.mod h1:8AIIr1oY9JuH5dylz2S6f8Ym2MaadPLR6noCBO4C22w=
189-
github.com/jfrog/jfrog-cli-artifactory v0.2.2-0.20250410102841-59bd5d8732de h1:D4MGEbZkGie9HfmClRlvp3iqWX7LQRWGhgvRj5f462Q=
190-
github.com/jfrog/jfrog-cli-artifactory v0.2.2-0.20250410102841-59bd5d8732de/go.mod h1:8qrGaRb162a4NWGr7R1rj8P80s8NU8KRTs69NMkQENA=
191191
github.com/jfrog/jfrog-cli-core/v2 v2.31.1-0.20250410085750-f34f5feea93e h1:N+7gJdZmwggKqrTbrEvAFxxXQziFbJ4zHI/sXa8vR1A=
192192
github.com/jfrog/jfrog-cli-core/v2 v2.31.1-0.20250410085750-f34f5feea93e/go.mod h1:4S7yztLwWq4yA+k9j9s5gvIqr7xC/6EjJQ+0ENCHTFc=
193193
github.com/jfrog/jfrog-cli-platform-services v1.9.0 h1:r/ETgJuMUOUu12w20ydsF6paqEaj0khH6bxMRsdNz1Y=
-559 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)