Fix CI for test updates
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
parent
efdba4f210
commit
e65b3f1316
3 changed files with 10 additions and 6 deletions
|
@ -8,9 +8,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/distribution/registry/auth"
|
"github.com/docker/distribution/registry/auth"
|
||||||
"github.com/docker/libtrust"
|
"github.com/docker/libtrust"
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateJWTSuccessWithEmptyACL(t *testing.T) {
|
func TestCreateJWTSuccessWithEmptyACL(t *testing.T) {
|
||||||
|
@ -28,8 +29,11 @@ func TestCreateJWTSuccessWithEmptyACL(t *testing.T) {
|
||||||
SigningKey: pk,
|
SigningKey: pk,
|
||||||
}
|
}
|
||||||
|
|
||||||
grantedAccessList := make([]auth.Access, 0, 0)
|
grantedAccessList := make([]auth.Access, 0)
|
||||||
token, err := tokenIssuer.CreateJWT("test", "test", grantedAccessList)
|
token, err := tokenIssuer.CreateJWT("test", "test", grantedAccessList)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
tokens := strings.Split(token, ".")
|
tokens := strings.Split(token, ".")
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/distribution/manifest/schema1"
|
"github.com/docker/distribution/manifest/schema1"
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestHTTPSink mocks out an http endpoint and notifies it under a couple of
|
// TestHTTPSink mocks out an http endpoint and notifies it under a couple of
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package middleware
|
package middleware
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
|
|
||||||
check "gopkg.in/check.v1"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"gopkg.in/check.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test(t *testing.T) { check.TestingT(t) }
|
func Test(t *testing.T) { check.TestingT(t) }
|
||||||
|
|
Loading…
Reference in a new issue