feat(authn) : add case to test multiples CIDR
Cadoles/bouncer/pipeline/head There was a failure building this commit Details
Cadoles/bouncer/pipeline/pr-develop There was a failure building this commit Details

This commit is contained in:
Matthieu Lamalle 2024-08-08 08:45:06 +02:00
parent f35384c0f3
commit 5f948ce83a
1 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,14 @@ func TestMatchAuthorizedCIDRs(t *testing.T) {
},
ExpectedResult: false,
},
{
RemoteHostPort: "192.168.1.15:43349",
AuthorizedCIDRs: []string{
"192.168.1.0/24",
"192.168.1.5/32",
},
ExpectedResult: false,
},
}
auth := Authenticator{}