From 7fa384c47c7a97db7f667797bfc8e1ea78167f39 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Wed, 28 Jul 2021 12:43:45 -0700 Subject: pkg/auth: move jwt to auth to be shared by syz-hub clients --- pkg/auth/auth_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pkg/auth/auth_test.go') diff --git a/pkg/auth/auth_test.go b/pkg/auth/auth_test.go index 13a9c5749..7e0a5184f 100644 --- a/pkg/auth/auth_test.go +++ b/pkg/auth/auth_test.go @@ -11,8 +11,6 @@ import ( "strings" "testing" "time" - - "github.com/google/syzkaller/dashboard/dashapi" ) func reponseFor(t *testing.T, claims jwtClaims) (*httptest.Server, Endpoint) { @@ -36,7 +34,7 @@ func TestBearerValid(t *testing.T) { magic := "ValidSubj" ts, dut := reponseFor(t, jwtClaims{ Subject: magic, - Audience: dashapi.DashboardAudience, + Audience: DashboardAudience, Expiration: tm.AddDate(0, 0, 1), }) defer ts.Close() @@ -70,7 +68,7 @@ func TestBearerExpired(t *testing.T) { ts, dut := reponseFor(t, jwtClaims{ Subject: "irrelevant", Expiration: tm.AddDate(0, 0, -1), - Audience: dashapi.DashboardAudience, + Audience: DashboardAudience, }) defer ts.Close() -- cgit mrf-deployment