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(helpers): fixed incorrect conf.database setting in get_db_utils #13738

Closed
wants to merge 2 commits into from

Conversation

chobits
Copy link
Contributor

@chobits chobits commented Oct 10, 2024

Summary

Original function get_db_utils does not set the right value of conf.database(kong.confiuration.database) from its first parameter strategy.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix #[issue number]

@github-actions github-actions bot added the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label Oct 10, 2024
@team-gateway-bot team-gateway-bot added the author/community PRs from the open-source community (not Kong Inc) label Oct 10, 2024
@chobits chobits changed the title tests(helpers): fixed wrong setting conf.database in get_db_utils tests(helpers): fixed incorrect conf.database setting in get_db_utils Oct 10, 2024
@@ -277,6 +277,8 @@ end
-- }
local function get_db_utils(strategy, tables, plugins, vaults, skip_migrations)
strategy = strategy or conf.database
conf.database = strategy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment for this change? It may be helpful for the future maintainers.

@chronolaw
Copy link
Contributor

Close, since it has been merged into #13157.

@chronolaw chronolaw closed this Oct 10, 2024
@chronolaw chronolaw deleted the fix/test-spec-get_db_utils branch October 10, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author/community PRs from the open-source community (not Kong Inc) cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee size/XS skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants