Skip to content

Commit 0f92d5f

Browse files
committed
fixup! chore: include host and port in oidc test logs
1 parent 7b998bf commit 0f92d5f

File tree

1 file changed

+4
-4
lines changed
  • coderd/coderdtest/oidctest

1 file changed

+4
-4
lines changed

coderd/coderdtest/oidctest/idp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
10401040
}))
10411041

10421042
mux.Handle(keysPath, http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
1043-
f.logger.Info(r.Context(), "http call idp /keys", slogRequestFields(r))
1043+
f.logger.Info(r.Context(), "http call idp /keys", slogRequestFields(r)...)
10441044
set := jose.JSONWebKeySet{
10451045
Keys: []jose.JSONWebKey{
10461046
{
@@ -1054,7 +1054,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
10541054
}))
10551055

10561056
mux.Handle(deviceVerify, http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
1057-
f.logger.Info(r.Context(), "http call device verify", slogRequestFields(r))
1057+
f.logger.Info(r.Context(), "http call device verify", slogRequestFields(r)...)
10581058

10591059
inputParam := "user_input"
10601060
userInput := r.URL.Query().Get(inputParam)
@@ -1111,7 +1111,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
11111111
}))
11121112

11131113
mux.Handle(deviceAuth, http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
1114-
f.logger.Info(r.Context(), "http call device auth", slogRequestFields(r))
1114+
f.logger.Info(r.Context(), "http call device auth", slogRequestFields(r)...)
11151115

11161116
p := httpapi.NewQueryParamParser()
11171117
p.RequiredNotEmpty("client_id")
@@ -1173,7 +1173,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
11731173
}))
11741174

11751175
mux.NotFound(func(rw http.ResponseWriter, r *http.Request) {
1176-
f.logger.Error(r.Context(), "http call not found", slogRequestFields(r))
1176+
f.logger.Error(r.Context(), "http call not found", slogRequestFields(r)...)
11771177
t.Errorf("unexpected request to IDP at path %q. Not supported", r.URL.Path)
11781178
})
11791179

0 commit comments

Comments
 (0)