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

confgenerator: quoted map keys test #1014

Merged
merged 2 commits into from
Dec 5, 2022
Merged

Conversation

braydonk
Copy link
Contributor

@braydonk braydonk commented Dec 5, 2022

Signed-off-by: braydonk braydonk@google.com

Description

Add unit test for quoted map keys. Also does some minor maintenance on other tests:

  • The all_built-in tests are made obsolete by the specific builtin tests in the builtin directory
  • Add support for generating the golden directory when generating goldens for a new test

Related issue

b/260784354
Closes #994
#995

How has this been tested?

Unit tests were tested by running unit tests

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

Add unit test for quoted map keys. Also does some minor maintenance on
other tests:

- The all_built-in tests are made obsolete by the specific builtin tests
  in the `builtin` directory
- Add support for generating the `golden` directory when generating
  goldens for a new test

Signed-off-by: braydonk <braydonk@google.com>
@braydonk braydonk requested review from a team, igorpeshansky and sophieyfang and removed request for a team and igorpeshansky December 5, 2022 14:57
Updated go-yaml dependency and regenerated goldens for improved error
messages from 1.9.6.

Signed-off-by: braydonk <braydonk@google.com>
Copy link
Contributor

@franciscovalentecastro franciscovalentecastro left a comment

Choose a reason for hiding this comment

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

LGTM

@braydonk
Copy link
Contributor Author

braydonk commented Dec 5, 2022

Thanks for the reviews! Will re-run Unit Test check that failed, only Integration Test failure was a Windows flake so as long as unit tests pass I'll merge.

Copy link
Contributor

@sophieyfang sophieyfang left a comment

Choose a reason for hiding this comment

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

I saw we deleted several built in test files. Do we still have test coverage for the default config files?

-- I saw the built in folder!! No more questions. :)

@braydonk
Copy link
Contributor Author

braydonk commented Dec 5, 2022

I saw we deleted several built in test files. Do we still have test coverage for the default config files?

They are in confgenerator/testdata/builtin.

@braydonk braydonk merged commit 2780014 into master Dec 5, 2022
@igorpeshansky igorpeshansky deleted the braydonk-quote-map-keys branch July 10, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.22.0 -> 2.23.0 upgrade broke 'map_values' configuration
3 participants