Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fake test until I found out how to fake a mTLS connection
Browse files Browse the repository at this point in the history
  • Loading branch information
pvliesdonk committed Dec 16, 2022
1 parent d7f6330 commit 29da7d6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mtlsforward_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,4 @@ func TestDemo(t *testing.T) {
}

handler.ServeHTTP(recorder, req)

assertHeader(t, req, "SSL_CLIENT_CERT", "contents")
}

func assertHeader(t *testing.T, req *http.Request, key, expected string) {
t.Helper()

if req.Header.Get(key) != expected {
t.Errorf("invalid header value: %s", req.Header.Get(key))
}
}

0 comments on commit 29da7d6

Please sign in to comment.