@@ -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 () {
@@ -164,7 +164,7 @@ var _ = Describe("Podman artifact", func() {
164
164
// Trying to remove an image that does not exist should fail
165
165
rmFail := podmanTest .Podman ([]string {"artifact" , "rm" , "foobar" })
166
166
rmFail .WaitWithDefaultTimeout ()
167
- Expect (rmFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: no artifact found with name or digest of %s " , "foobar" )))
167
+ Expect (rmFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact does not exist " , "foobar" )))
168
168
169
169
// Add an artifact to remove later
170
170
artifact1File , err := createArtifactFile (4192 )
@@ -180,7 +180,7 @@ var _ = Describe("Podman artifact", func() {
180
180
// Inspecting that the removed artifact should fail
181
181
inspectArtifact := podmanTest .Podman ([]string {"artifact" , "inspect" , artifact1Name })
182
182
inspectArtifact .WaitWithDefaultTimeout ()
183
- Expect (inspectArtifact ).Should (ExitWithError (125 , fmt .Sprintf ("Error: no artifact found with name or digest of %s " , artifact1Name )))
183
+ Expect (inspectArtifact ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact does not exist " , artifact1Name )))
184
184
})
185
185
186
186
It ("podman artifact inspect with full or partial digest" , func () {
@@ -440,7 +440,8 @@ var _ = Describe("Podman artifact", func() {
440
440
441
441
appendFail := podmanTest .Podman ([]string {"artifact" , "add" , "--append" , artifact1Name , artifact1File })
442
442
appendFail .WaitWithDefaultTimeout ()
443
- Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: file: \" %s\" already exists in artifact" , filepath .Base (artifact1File ))))
443
+ // Error: PJYjLgoU: file already exists in artifact
444
+ Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: file already exists in artifact" , filepath .Base (artifact1File ))))
444
445
445
446
a := podmanTest .InspectArtifact (artifact1Name )
446
447
@@ -456,11 +457,11 @@ var _ = Describe("Podman artifact", func() {
456
457
457
458
addFail := podmanTest .Podman ([]string {"artifact" , "add" , artifact1Name , artifact1File , artifact1File })
458
459
addFail .WaitWithDefaultTimeout ()
459
- Expect (addFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: file: \" %s \" already exists in artifact" , filepath .Base (artifact1File ))))
460
+ Expect (addFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: file already exists in artifact" , filepath .Base (artifact1File ))))
460
461
461
462
inspectFail := podmanTest .Podman ([]string {"artifact" , "inspect" , artifact1Name })
462
463
inspectFail .WaitWithDefaultTimeout ()
463
- Expect (inspectFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: no artifact found with name or digest of %s " , artifact1Name )))
464
+ Expect (inspectFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: artifact does not exist " , artifact1Name )))
464
465
})
465
466
466
467
It ("podman artifact add --append file already exists in artifact" , func () {
@@ -472,7 +473,7 @@ var _ = Describe("Podman artifact", func() {
472
473
473
474
appendFail := podmanTest .Podman ([]string {"artifact" , "add" , "--append" , artifact1Name , artifact1File })
474
475
appendFail .WaitWithDefaultTimeout ()
475
- Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: file: \" %s \" already exists in artifact" , filepath .Base (artifact1File ))))
476
+ Expect (appendFail ).Should (ExitWithError (125 , fmt .Sprintf ("Error: %s: file already exists in artifact" , filepath .Base (artifact1File ))))
476
477
a := podmanTest .InspectArtifact (artifact1Name )
477
478
478
479
Expect (a .Manifest .Layers ).To (HaveLen (1 ))
0 commit comments