mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-11 07:11:00 +00:00
Remove unused code.
This commit is contained in:
parent
2026787ce4
commit
500b540406
@ -42,21 +42,6 @@ func mockClient(t *testing.T) *mock.KeyVaultClient {
|
||||
return mock.NewKeyVaultClient(ctrl)
|
||||
}
|
||||
|
||||
func mockCreateClient(t *testing.T) *mock.KeyVaultClient {
|
||||
t.Helper()
|
||||
ctrl := gomock.NewController(t)
|
||||
client := mock.NewKeyVaultClient(ctrl)
|
||||
old := createClient
|
||||
createClient = func(ctx context.Context, opts apiv1.Options) (KeyVaultClient, error) {
|
||||
return client, nil
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
createClient = old
|
||||
ctrl.Finish()
|
||||
})
|
||||
return client
|
||||
}
|
||||
|
||||
func createJWK(t *testing.T, pub crypto.PublicKey) *keyvault.JSONWebKey {
|
||||
t.Helper()
|
||||
b, err := json.Marshal(&jose.JSONWebKey{
|
||||
|
Loading…
Reference in New Issue
Block a user