mirror of https://github.com/linkerd/linkerd2.git
proxy: add more tests for loopback IPs in FullyQualifiedAuthority (#411)
Closes #357 Signed-off-by: Sean McArthur <sean@seanmonstar.com>
This commit is contained in:
parent
cf3c8cd7bc
commit
382b68faeb
|
@ -255,9 +255,18 @@ mod tests {
|
|||
// IPv4 addresses are left unchanged.
|
||||
none("1.2.3.4", Some("namespace"), Some("cluster.local"));
|
||||
none("1.2.3.4:1234", Some("namespace"), Some("cluster.local"));
|
||||
none("127.0.0.1", Some("namespace"), Some("cluster.local"));
|
||||
none("127.0.0.1:8080", Some("namespace"), Some("cluster.local"));
|
||||
none("127.0.0.1", None, Some("cluster.local"));
|
||||
none("127.0.0.1", Some("namespace"), None);
|
||||
none("127.0.0.1", None, None);
|
||||
none("127.0.0.1", Some("1"), Some("1"));
|
||||
|
||||
// IPv6 addresses are left unchanged.
|
||||
none("[::1]", Some("namespace"), Some("cluster.local"));
|
||||
none("[::1]:1234", Some("namespace"), Some("cluster.local"));
|
||||
none("[::1]", None, Some("cluster.local"));
|
||||
none("[::1]", Some("namespace"), None);
|
||||
none("[::1]", None, None);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue