Skip to content

Commit

Permalink
fixed unit tests after extracting feature/dns2 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Sep 2, 2016
1 parent 2b9486d commit 42c73b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion kong/tools/dns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ local setup_client = function(conf)
local opts = {
hosts = hosts,
resolv_conf = nil,
max_resolvers = 50,
nameservers = servers,
retrans = 5,
timeout = 2000,
Expand Down
2 changes: 1 addition & 1 deletion spec/01-unit/02-conf_loader_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe("Configuration loader", function()
end)
it("overcomes penlight's list_delim option", function()
local conf = assert(conf_loader("spec/fixtures/to-strip.conf"))
assert.False(conf.dnsmasq)
assert.False(conf.pg_ssl)
assert.True(conf.plugins.foobar)
assert.True(conf.plugins["hello-world"])
end)
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/invalid.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dnsmasq = on
pg_ssl = on
dns_resolver = 8.8.8.8
cassandra_repl_strategy = foo
6 changes: 5 additions & 1 deletion spec/fixtures/to-strip.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
database = cassandra # strip me
log_level = debug # strip this
# comment too
pg_ssl = off # Toggles client-server TLS connections
# between Kong and PostgreSQL.

dns_resolver = 8.8.8.8

custom_plugins = foobar,hello-world # Comma-separated list of additional plugins
# this node should load.
# Use this property to load custom plugins
# that are not bundled with Kong.
# Plugins will be loaded from the
# `kong.plugins.{name}.*` namespace.
# `kong.plugins.{name}.*` namespace.

0 comments on commit 42c73b0

Please sign in to comment.