test: improve test to ensure ipv6 compatability (#5113)
This commit is contained in:
1 parent
61c1544446
commit
9576ed40dc
12 files changed
+116
-45
No files matched your search
+7
-1
@@ -23,11 +23,17 @@ func TestConfigSetAddress(t *testing.T) {
|
||||
|
||||
tests := []test{
|
||||
{
|
||||
"bare",
|
||||
"ipv4",
|
||||
"http://127.0.0.1:9200",
|
||||
"http://127.0.0.1:9200",
|
||||
"",
|
||||
},
|
||||
{
|
||||
"ipv6",
|
||||
"http://[::1]:9200",
|
||||
"http://[::1]:9200",
|
||||
"",
|
||||
},
|
||||
{
|
||||
"bare with version",
|
||||
"http://127.0.0.1:9200/v1",
|
||||
|
||||
@@ -169,6 +169,9 @@ func testSessionAuth(t *testing.T) *targets.SessionAuthorizationData {
|
||||
{
|
||||
Address: "localhost:9202",
|
||||
},
|
||||
{
|
||||
Address: "[::1]:9201",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user