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: change AccessLogsConfig field to pointer so it will be parsed as nil #15831

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

huikang
Copy link
Contributor

@huikang huikang commented Dec 17, 2022

Description

This is another alternative to fix the upgrade test by changing the AccessLog to pointer in ProxyConfigEntry so that empty struct will be parsed as nil by json. Since this is a new field, any old version of Consul can't parse the field.

Testing & Reproduction steps

Please refer to #15830, #15827

Links

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

@github-actions github-actions bot added the theme/api Relating to the HTTP API interface label Dec 17, 2022
@huikang huikang requested a review from eculver December 17, 2022 03:36
@huikang huikang added the pr/no-changelog PR does not need a corresponding .changelog entry label Dec 17, 2022
@huikang huikang changed the title Change AccessLogsConfig field to pointer so it will be parsed as nil test: change AccessLogsConfig field to pointer so it will be parsed as nil Dec 17, 2022
@huikang huikang changed the title test: change AccessLogsConfig field to pointer so it will be parsed as nil tests: change AccessLogsConfig field to pointer so it will be parsed as nil Dec 17, 2022
@huikang huikang merged commit 252a08e into main Dec 19, 2022
@huikang huikang deleted the fix-upgrade-test-api-access-log branch December 19, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog PR does not need a corresponding .changelog entry theme/api Relating to the HTTP API interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants