Skip to content

Commit

Permalink
tests(balancer) add ipv6 tests in targets
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm authored and thibaultcha committed Dec 15, 2017
1 parent 7dad6a9 commit f87844e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/run_tests.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 11 additions & 2 deletions spec/02-integration/05-proxy/09-balancer_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -1142,3 +1149,5 @@ dao_helpers.for_each_dao(function(kong_config)
end)

end) -- for 'database type'

end

0 comments on commit f87844e

Please sign in to comment.