Refactor auth stringSet into common.StringSet
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
This commit is contained in:
parent
56f685c0dd
commit
88de2e11fb
5 changed files with 72 additions and 60 deletions
|
@ -15,8 +15,10 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker-registry/auth"
|
||||
"github.com/docker/libtrust"
|
||||
|
||||
"github.com/docker/docker-registry/auth"
|
||||
"github.com/docker/docker-registry/common"
|
||||
)
|
||||
|
||||
func makeRootKeys(numKeys int) ([]libtrust.PrivateKey, error) {
|
||||
|
@ -194,8 +196,8 @@ func TestTokenVerify(t *testing.T) {
|
|||
}
|
||||
|
||||
verifyOps := VerifyOptions{
|
||||
TrustedIssuers: newStringSet(issuer),
|
||||
AccpetedAudiences: newStringSet(audience),
|
||||
TrustedIssuers: common.NewStringSet(issuer),
|
||||
AccpetedAudiences: common.NewStringSet(audience),
|
||||
Roots: rootPool,
|
||||
TrustedKeys: trustedKeys,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue