chore(canary): align e2e + handler tests with mysqlEnabled signature
Upstream 8d2599c0 added a mysqlEnabled parameter to token.NewHandler and
took a long line over the limit in handler_test. Pass the parameter from
the e2e stack (true: integration test exercises mysql token creation) and
reflow the long handler_test return so golines is happy.
This commit is contained in:
parent
8d2599c01a
commit
4b54c1b825
|
|
@ -160,6 +160,7 @@ func setupE2EStack(t *testing.T) *e2eStack {
|
|||
eventRepo,
|
||||
eventSvc,
|
||||
logger,
|
||||
true,
|
||||
)
|
||||
|
||||
r := chi.NewRouter()
|
||||
|
|
|
|||
|
|
@ -462,7 +462,16 @@ func newManageHandler(
|
|||
BaseURL: "https://canary.example.com",
|
||||
ManageURL: "https://canary.example.com",
|
||||
})
|
||||
return token.NewHandler(svc, nil, nil, eq, dc, quietHandlerLogger(), false), repo
|
||||
return token.NewHandler(
|
||||
svc,
|
||||
nil,
|
||||
nil,
|
||||
eq,
|
||||
dc,
|
||||
quietHandlerLogger(),
|
||||
false,
|
||||
),
|
||||
repo
|
||||
}
|
||||
|
||||
func seedToken(t *testing.T, repo *fakeRepo, manageID string) *token.Token {
|
||||
|
|
|
|||
Loading…
Reference in New Issue