Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests(dbless): update format_version to 3.0 #11707

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/02-integration/11-dbless/01-respawn_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ describe("worker respawn", function()
path = "/config",
body = {
config = string.format([[
_format_version: "1.1"
_format_version: "3.0"
services:
- name: my-service
host: %s
Expand Down
2 changes: 1 addition & 1 deletion spec/02-integration/11-dbless/02-workers_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("Workers initialization #off", function()
end)

it("restarts worker correctly without issues on the init_worker phase when config includes 1000+ plugins", function()
local buffer = {"_format_version: '1.1'", "services:"}
local buffer = {"_format_version: '3.0'", "services:"}
for i = 1, 1001 do
buffer[#buffer + 1] = fmt(SERVICE_YML, i, i, i, i)
end
Expand Down
6 changes: 3 additions & 3 deletions spec/02-integration/11-dbless/03-config_persistence_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("dbless persistence #off", function()
end)

it("loads the lmdb config on restarts", function()
local buffer = {"_format_version: '1.1'", "services:"}
local buffer = {"_format_version: '3.0'", "services:"}
for i = 1, 1001 do
buffer[#buffer + 1] = fmt(SERVICE_YML, i, i, i, i)
end
Expand Down Expand Up @@ -62,7 +62,7 @@ describe("dbless persistence with a declarative config #off", function()

lazy_setup(function()
yaml_file = helpers.make_yaml_file([[
_format_version: "1.1"
_format_version: "3.0"
services:
- name: my-service
url: https://example1.dev
Expand All @@ -87,7 +87,7 @@ describe("dbless persistence with a declarative config #off", function()
assert.res_status(401, res)
proxy_client:close()

local buffer = {"_format_version: '1.1'", "services:"}
local buffer = {"_format_version: '3.0'", "services:"}
local i = 500
buffer[#buffer + 1] = fmt(SERVICE_YML, i, i, i, i)
local config = table.concat(buffer, "\n")
Expand Down