Skip to content

Commit

Permalink
03-conf_loader_spec.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 27, 2023
1 parent 790da80 commit 7bda7a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/01-unit/03-conf_loader_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe("Configuration loader", function()
assert.same(nil, conf.privileged_agent)
assert.same(true, conf.dedicated_config_processing)
assert.same(false, conf.allow_debug_header)
assert.matches("%d+%.%d+", conf.lmdb_validation_tag)
assert.is_nil(getmetatable(conf))
end)
it("loads a given file, with higher precedence", function()
Expand All @@ -84,6 +85,7 @@ describe("Configuration loader", function()
assert.same({"127.0.0.1:9001"}, conf.admin_listen)
assert.same({"0.0.0.0:9000", "0.0.0.0:9443 http2 ssl",
"0.0.0.0:9002 http2"}, conf.proxy_listen)
assert.matches("%d+%.%d+", conf.lmdb_validation_tag)
assert.is_nil(getmetatable(conf))
end)
it("preserves default properties if not in given file", function()
Expand Down

0 comments on commit 7bda7a4

Please sign in to comment.