@@ -776,9 +776,10 @@ func (s *copySuite) TestCopySignatures() {
776
776
// Verify that mis-signed images are rejected
777
777
assertSkopeoSucceeds (t , "" , "--tls-verify=false" , "copy" , "atomic:localhost:5006/myns/personal:personal" , "atomic:localhost:5006/myns/official:attack" )
778
778
assertSkopeoSucceeds (t , "" , "--tls-verify=false" , "copy" , "atomic:localhost:5006/myns/official:official" , "atomic:localhost:5006/myns/personal:attack" )
779
- assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|.* was not found).*" ,
779
+ // "Invalid GPG signature" is reported by the gpgme mechanism; "Missing key: $fingerprint" by Sequoia.
780
+ assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|Missing key:).*" ,
780
781
"--tls-verify=false" , "--policy" , policy , "copy" , "atomic:localhost:5006/myns/personal:attack" , dirDest )
781
- assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|.* was not found ).*" ,
782
+ assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|Missing key: ).*" ,
782
783
"--tls-verify=false" , "--policy" , policy , "copy" , "atomic:localhost:5006/myns/official:attack" , dirDest )
783
784
784
785
// Verify that signed identity is verified.
@@ -791,7 +792,8 @@ func (s *copySuite) TestCopySignatures() {
791
792
792
793
// Verify that cosigning requirements are enforced
793
794
assertSkopeoSucceeds (t , "" , "--tls-verify=false" , "copy" , "atomic:localhost:5006/myns/official:official" , "atomic:localhost:5006/myns/cosigned:cosigned" )
794
- assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|.* was not found).*" ,
795
+ // "Invalid GPG signature" is reported by the gpgme mechanism; "Missing key: $fingerprint" by Sequoia.
796
+ assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|Missing key:).*" ,
795
797
"--tls-verify=false" , "--policy" , policy , "copy" , "atomic:localhost:5006/myns/cosigned:cosigned" , dirDest )
796
798
797
799
assertSkopeoSucceeds (
t ,
"" ,
"--tls-verify=false" ,
"copy" ,
"--sign-by" ,
"[email protected] " ,
"atomic:localhost:5006/myns/official:official" ,
"atomic:localhost:5006/myns/cosigned:cosigned" )
@@ -836,7 +838,8 @@ func (s *copySuite) TestCopyDirSignatures() {
836
838
// Verify that correct images are accepted
837
839
assertSkopeoSucceeds (t , "" , "--policy" , policy , "copy" , topDirDest + "/restricted/official" , topDirDest + "/dest" )
838
840
// ... and that mis-signed images are rejected.
839
- assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|.* was not found).*" ,
841
+ // "Invalid GPG signature" is reported by the gpgme mechanism; "Missing key: $fingerprint" by Sequoia.
842
+ assertSkopeoFails (t , ".*Source image rejected: (Invalid GPG signature|Missing key:).*" ,
840
843
"--policy" , policy , "copy" , topDirDest + "/restricted/personal" , topDirDest + "/dest" )
841
844
842
845
// Verify that the signed identity is verified.
0 commit comments