test: ensure ipv6 compatability (#5110)
This commit is contained in:
1 parent
eb33649ded
commit
29efd5e6c6
5 files changed
+314
-10
No files matched your search
@@ -133,7 +133,7 @@ func TestNewServerIntegration(t *testing.T) {
|
||||
expErrMsg string
|
||||
}{
|
||||
{
|
||||
name: "one tcp ops listener",
|
||||
name: "one tcp ops ipv4 listener",
|
||||
listeners: []*listenerutil.ListenerConfig{
|
||||
{
|
||||
Type: "tcp",
|
||||
@@ -148,6 +148,22 @@ func TestNewServerIntegration(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "one tcp ops ipv6 listener",
|
||||
listeners: []*listenerutil.ListenerConfig{
|
||||
{
|
||||
Type: "tcp",
|
||||
Purpose: []string{"ops"},
|
||||
Address: "[::1]:0",
|
||||
TLSDisable: true,
|
||||
},
|
||||
},
|
||||
assertions: func(t *testing.T, addrs []string) {
|
||||
resp, err := http.Get("http://" + addrs[0])
|
||||
resp.Body.Close()
|
||||
require.NoError(t, err)
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "multiple tcp ops listeners",
|
||||
listeners: []*listenerutil.ListenerConfig{
|
||||
|
||||
Reference in new issue
Block a user