feat(authn) : add case to test multiples CIDR
This commit is contained in:
parent
f35384c0f3
commit
5f948ce83a
|
@ -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{}
|
||||
|
|
Loading…
Reference in New Issue