@@ -134,6 +134,10 @@ var _ = Describe("ORAS beginners:", func() {
134
134
MatchDefaultFlagValue ("format" , "text" , "manifest" , "fetch" )
135
135
})
136
136
137
+ It ("should show deprecation message when running with --verbose flag" , func () {
138
+ ORAS ("manifest" , "fetch" , RegistryRef (ZOTHost , ImageRepo , foobar .Tag ), "--verbose" ).MatchErrKeyWords (feature .DeprecationMessageVerboseFlag ).Exec ()
139
+ })
140
+
137
141
It ("should fail and show detailed error description if no argument provided" , func () {
138
142
err := ORAS ("manifest" , "fetch" ).ExpectFailure ().Exec ().Err
139
143
gomega .Expect (err ).Should (gbytes .Say ("Error" ))
@@ -447,6 +451,11 @@ var _ = Describe("1.1 registry users:", func() {
447
451
MatchContent ("{}" ).Exec ()
448
452
})
449
453
454
+ It ("should show deprecation message when running with --verbose flag" , func () {
455
+ ORAS ("manifest" , "fetch-config" , RegistryRef (ZOTHost , ImageRepo , foobar .Tag ), "--verbose" ).
456
+ MatchErrKeyWords (feature .DeprecationMessageVerboseFlag ).Exec ()
457
+ })
458
+
450
459
It ("should fetch a config descriptor via a tag" , func () {
451
460
ORAS ("manifest" , "fetch-config" , "--descriptor" , RegistryRef (ZOTHost , ImageRepo , foobar .Tag )).
452
461
MatchContent (foobar .ImageConfigDesc ).Exec ()
@@ -486,6 +495,13 @@ var _ = Describe("1.1 registry users:", func() {
486
495
validateTag (RegistryRef (ZOTHost , dstRepo , "" ), tempTag , true )
487
496
})
488
497
498
+ It ("should show deprecation message when running with --verbose flag" , func () {
499
+ dstRepo := fmt .Sprintf (repoFmt , "delete" , "verbose-flag" )
500
+ prepare (RegistryRef (ZOTHost , ImageRepo , foobar .Tag ), RegistryRef (ZOTHost , dstRepo , tempTag ))
501
+ ORAS ("manifest" , "delete" , RegistryRef (ZOTHost , dstRepo , tempTag ), "--verbose" ).
502
+ MatchErrKeyWords (feature .DeprecationMessageVerboseFlag ).Exec ()
503
+ })
504
+
489
505
It ("should do confirmed deletion via flag" , func () {
490
506
dstRepo := fmt .Sprintf (repoFmt , "delete" , "confirm-flag" )
491
507
prepare (RegistryRef (ZOTHost , ImageRepo , foobar .Tag ), RegistryRef (ZOTHost , dstRepo , tempTag ))
0 commit comments