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

This commit is contained in:
Matthieu Lamalle 2024-08-08 08:45:06 +02:00
parent f35384c0f3
commit 5f948ce83a

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{}