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:
Josh Hawn 2014-12-17 10:57:05 -08:00
parent 56f685c0dd
commit 88de2e11fb
5 changed files with 72 additions and 60 deletions

View file

@ -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,
}