From 7bda7a4e28524e1e217f66528df1d2a19c3c6b0d Mon Sep 17 00:00:00 2001 From: chronolaw Date: Mon, 27 Nov 2023 15:09:49 +0800 Subject: [PATCH] 03-conf_loader_spec.lua --- spec/01-unit/03-conf_loader_spec.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/01-unit/03-conf_loader_spec.lua b/spec/01-unit/03-conf_loader_spec.lua index ad41d52ea8b..52d1e68ad90 100644 --- a/spec/01-unit/03-conf_loader_spec.lua +++ b/spec/01-unit/03-conf_loader_spec.lua @@ -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() @@ -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()