Skip to content

Commit b07fe54

Browse files
committed
Fix types in tests.
1 parent a97ea87 commit b07fe54

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ca/ca_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"github.com/smallstep/assert"
2121
"github.com/smallstep/certificates/api"
2222
"github.com/smallstep/certificates/authority"
23+
"github.com/smallstep/certificates/authority/provisioner"
2324
"github.com/smallstep/cli/crypto/keys"
2425
"github.com/smallstep/cli/crypto/pemutil"
2526
"github.com/smallstep/cli/crypto/randutil"
@@ -389,7 +390,7 @@ func TestCAProvisionerEncryptedKey(t *testing.T) {
389390
}
390391
},
391392
"ok": func(t *testing.T) *ekt {
392-
p := config.AuthorityConfig.Provisioners[2]
393+
p := config.AuthorityConfig.Provisioners[2].(*provisioner.JWK)
393394
return &ekt{
394395
ca: ca,
395396
kid: p.Key.KeyID,

ca/client_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"time"
1515

1616
"github.com/smallstep/certificates/api"
17-
"github.com/smallstep/certificates/authority"
17+
"github.com/smallstep/certificates/authority/provisioner"
1818
)
1919

2020
const (
@@ -391,7 +391,7 @@ func TestClient_Renew(t *testing.T) {
391391

392392
func TestClient_Provisioners(t *testing.T) {
393393
ok := &api.ProvisionersResponse{
394-
Provisioners: []*authority.Provisioner{},
394+
Provisioners: provisioner.List{},
395395
}
396396
internalServerError := api.InternalServerError(fmt.Errorf("Internal Server Error"))
397397

0 commit comments

Comments
 (0)