diff --git a/.ci/run_tests.sh b/.ci/run_tests.sh index 2b307c4f84cf..c1b0e09dbf94 100755 --- a/.ci/run_tests.sh +++ b/.ci/run_tests.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -e -export BUSTED_ARGS="-o gtest -v --exclude-tags=flaky" +export BUSTED_ARGS="-o gtest -v --exclude-tags=flaky,ipv6" export TEST_CMD="bin/busted $BUSTED_ARGS" createuser --createdb kong diff --git a/spec/02-integration/05-proxy/09-balancer_spec.lua b/spec/02-integration/05-proxy/09-balancer_spec.lua index b18d46c35f8d..b304ccbd6187 100644 --- a/spec/02-integration/05-proxy/09-balancer_spec.lua +++ b/spec/02-integration/05-proxy/09-balancer_spec.lua @@ -3,8 +3,6 @@ local helpers = require "spec.helpers" local dao_helpers = require "spec.02-integration.03-dao.helpers" -local localhost = "127.0.0.1" -local ipv = "ipv4" local PORT = 21000 local utils = require "kong.tools.utils" local cjson = require "cjson" @@ -286,6 +284,15 @@ local function client_requests(n, headers) end +local localhosts = { + ipv4 = "127.0.0.1", + ipv6 = "0000:0000:0000:0000:0000:0000:0000:0001", +} + + +for ipv, localhost in pairs(localhosts) do + + dao_helpers.for_each_dao(function(kong_config) describe("Ring-balancer #" .. kong_config.database .. " #" .. ipv, function() @@ -1142,3 +1149,5 @@ dao_helpers.for_each_dao(function(kong_config) end) end) -- for 'database type' + +end