@@ -745,7 +745,7 @@ func (s *copySuite) TestCopyOCIRoundTrip() {
745
745
// --sign-by and --policy copy, primarily using atomic:
746
746
func (s * copySuite ) TestCopySignatures () {
747
747
t := s .T ()
748
- mech , _ , err := signature .NewEphemeralGPGSigningMechanism ([] byte {} )
748
+ mech , err := signature .NewGPGSigningMechanism ( )
749
749
require .NoError (t , err )
750
750
defer mech .Close ()
751
751
if err := mech .SupportsSigning (); err != nil { // FIXME? Test that verification and policy enforcement works, using signatures from fixtures
@@ -801,7 +801,7 @@ func (s *copySuite) TestCopySignatures() {
801
801
// --policy copy for dir: sources
802
802
func (s * copySuite ) TestCopyDirSignatures () {
803
803
t := s .T ()
804
- mech , _ , err := signature .NewEphemeralGPGSigningMechanism ([] byte {} )
804
+ mech , err := signature .NewGPGSigningMechanism ( )
805
805
require .NoError (t , err )
806
806
defer mech .Close ()
807
807
if err := mech .SupportsSigning (); err != nil { // FIXME? Test that verification and policy enforcement works, using signatures from fixtures
@@ -902,7 +902,7 @@ func findRegularFiles(t *testing.T, root string) []string {
902
902
// --sign-by and policy use for docker: with lookaside
903
903
func (s * copySuite ) TestCopyDockerLookaside () {
904
904
t := s .T ()
905
- mech , _ , err := signature .NewEphemeralGPGSigningMechanism ([] byte {} )
905
+ mech , err := signature .NewGPGSigningMechanism ( )
906
906
require .NoError (t , err )
907
907
defer mech .Close ()
908
908
if err := mech .SupportsSigning (); err != nil { // FIXME? Test that verification and policy enforcement works, using signatures from fixtures
@@ -971,7 +971,7 @@ func (s *copySuite) TestCopyDockerLookaside() {
971
971
// atomic: and docker: X-Registry-Supports-Signatures works and interoperates
972
972
func (s * copySuite ) TestCopyAtomicExtension () {
973
973
t := s .T ()
974
- mech , _ , err := signature .NewEphemeralGPGSigningMechanism ([] byte {} )
974
+ mech , err := signature .NewGPGSigningMechanism ( )
975
975
require .NoError (t , err )
976
976
defer mech .Close ()
977
977
if err := mech .SupportsSigning (); err != nil { // FIXME? Test that the reading/writing works using signatures from fixtures
@@ -1031,7 +1031,7 @@ func (s *copySuite) TestCopyVerifyingMirroredSignatures() {
1031
1031
t := s .T ()
1032
1032
const regPrefix = "docker://localhost:5006/myns/mirroring-"
1033
1033
1034
- mech , _ , err := signature .NewEphemeralGPGSigningMechanism ([] byte {} )
1034
+ mech , err := signature .NewGPGSigningMechanism ( )
1035
1035
require .NoError (t , err )
1036
1036
defer mech .Close ()
1037
1037
if err := mech .SupportsSigning (); err != nil { // FIXME? Test that verification and policy enforcement works, using signatures from fixtures
0 commit comments