Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable sloglint #342

Merged
merged 5 commits into from
Nov 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: enable sloglint
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
  • Loading branch information
jkroepke committed Nov 1, 2024
commit 39319955f2ff0ca4d605b898e1bedff0505c498a
19 changes: 19 additions & 0 deletions internal/openvpn/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,25 @@ func TestClientFull(t *testing.T) {
"client-deny 0 1 \"OpenVPN Client does not support SSO authentication via webauth\"",
nil,
},
{
"to long base url",
config.Config{
HTTP: config.HTTP{
BaseURL: &url.URL{Scheme: "http", Host: "localhost", Path: strings.Repeat("a", 255)},
Secret: testutils.Secret,
},
OpenVpn: config.OpenVpn{
CommonName: config.OpenVPNCommonName{
EnvironmentVariableName: "common_name",
},
Bypass: config.OpenVpnBypass{CommonNames: make([]string, 0)},
Password: "password",
},
},
">CLIENT:CONNECT,1,2\r\n>CLIENT:ENV,untrusted_ip=127.0.0.1\r\n>CLIENT:ENV,common_name=test\r\n>CLIENT:ENV,IV_SSO=webauth\r\n>CLIENT:ENV,END\r\n",
`client-deny 1 2 "internal error"`,
nil,
},
{
"client bypass",
config.Config{
Expand Down
Loading