Ver Fonte

Fix mockSignAuth

Herman Slatman há 5 anos atrás
pai
commit
16fe07d4dc
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      acme/order_test.go

+ 5 - 0
acme/order_test.go

@@ -10,6 +10,7 @@ import (
 
 	"github.com/pkg/errors"
 	"github.com/smallstep/assert"
+	"github.com/smallstep/certificates/authority"
 	"github.com/smallstep/certificates/authority/provisioner"
 )
 
@@ -283,6 +284,10 @@ func (m *mockSignAuth) LoadProvisionerByID(id string) (provisioner.Interface, er
 	return m.ret1.(provisioner.Interface), m.err
 }
 
+func (m *mockSignAuth) Revoke(context.Context, *authority.RevokeOptions) error {
+	return nil
+}
+
 func TestOrder_Finalize(t *testing.T) {
 	type test struct {
 		o    *Order