@@ -88,7 +88,7 @@ var _ = Describe("Podman artifact", func() {
88
88
// Adding an artifact with an existing name should fail
89
89
addAgain := podmanTest .Podman ([]string {"artifact" , "add" , artifact1Name , artifact1File })
90
90
addAgain .WaitWithDefaultTimeout ()
91
- Expect (addAgain ).Should (ExitWithError (125 , fmt .Sprintf ("Error: artifact %s already exists" , artifact1Name )))
91
+ Expect (addAgain ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact already exists" , artifact1Name )))
92
92
})
93
93
94
94
It ("podman artifact add with options" , func () {
@@ -157,7 +157,7 @@ var _ = Describe("Podman artifact", func() {
157
157
// Trying to remove an image that does not exist should fail
158
158
rmFail := podmanTest .Podman ([]string {"artifact" , "rm" , "foobar" })
159
159
rmFail .WaitWithDefaultTimeout ()
160
- Expect (rmFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: no artifact found with name or digest of %s " , "foobar" )))
160
+ Expect (rmFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact does not exist " , "foobar" )))
161
161
162
162
// Add an artifact to remove later
163
163
artifact1File , err := createArtifactFile (4192 )
@@ -173,7 +173,7 @@ var _ = Describe("Podman artifact", func() {
173
173
// Inspecting that the removed artifact should fail
174
174
inspectArtifact := podmanTest .Podman ([]string {"artifact" , "inspect" , artifact1Name })
175
175
inspectArtifact .WaitWithDefaultTimeout ()
176
- Expect (inspectArtifact ).Should (ExitWithError (125 , fmt .Sprintf ("Error: no artifact found with name or digest of %s " , artifact1Name )))
176
+ Expect (inspectArtifact ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact does not exist " , artifact1Name )))
177
177
})
178
178
179
179
It ("podman artifact inspect with full or partial digest" , func () {
@@ -433,7 +433,8 @@ var _ = Describe("Podman artifact", func() {
433
433
434
434
appendFail := podmanTest .Podman ([]string {"artifact" , "add" , "--append" , artifact1Name , artifact1File })
435
435
appendFail .WaitWithDefaultTimeout ()
436
- Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: file: \" %s\" already exists in artifact" , filepath .Base (artifact1File ))))
436
+ // Error: PJYjLgoU: file already exists in artifact
437
+ Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: file already exists in artifact" , filepath .Base (artifact1File ))))
437
438
438
439
a := podmanTest .InspectArtifact (artifact1Name )
439
440
@@ -449,11 +450,11 @@ var _ = Describe("Podman artifact", func() {
449
450
450
451
addFail := podmanTest .Podman ([]string {"artifact" , "add" , artifact1Name , artifact1File , artifact1File })
451
452
addFail .WaitWithDefaultTimeout ()
452
- Expect (addFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: file: \" %s \" already exists in artifact" , filepath .Base (artifact1File ))))
453
+ Expect (addFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: file already exists in artifact" , filepath .Base (artifact1File ))))
453
454
454
455
inspectFail := podmanTest .Podman ([]string {"artifact" , "inspect" , artifact1Name })
455
456
inspectFail .WaitWithDefaultTimeout ()
456
- Expect (inspectFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: no artifact found with name or digest of %s " , artifact1Name )))
457
+ Expect (inspectFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact does not exist " , artifact1Name )))
457
458
})
458
459
459
460
It ("podman artifact add --append file already exists in artifact" , func () {
@@ -465,7 +466,7 @@ var _ = Describe("Podman artifact", func() {
465
466
466
467
appendFail := podmanTest .Podman ([]string {"artifact" , "add" , "--append" , artifact1Name , artifact1File })
467
468
appendFail .WaitWithDefaultTimeout ()
468
- Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: file: \" %s \" already exists in artifact" , filepath .Base (artifact1File ))))
469
+ Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: file already exists in artifact" , filepath .Base (artifact1File ))))
469
470
a := podmanTest .InspectArtifact (artifact1Name )
470
471
471
472
Expect (a .Manifest .Layers ).To (HaveLen (1 ))
0 commit comments