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

feat: doctor should validate custom.yaml files #1979

Merged
merged 2 commits into from
Apr 24, 2023
Merged

feat: doctor should validate custom.yaml files #1979

merged 2 commits into from
Apr 24, 2023

Conversation

cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Apr 21, 2023

No description provided.

Hardikl
Hardikl previously approved these changes Apr 24, 2023
Comment on lines 107 to 113
valid := checkCustomYaml("testdata/conf1")
if valid.isValid {
t.Error(`want isValid=false`)
}
if len(valid.invalid) != 1 {
t.Errorf(`want 1 invalid, got %d`, len(valid.invalid))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This would not be needed as it covered in below test cases.

rahulguptajss
rahulguptajss previously approved these changes Apr 24, 2023
@cgrinds cgrinds dismissed stale reviews from rahulguptajss and Hardikl via d35579f April 24, 2023 13:06
@cla-bot cla-bot bot added the cla-signed label Apr 24, 2023
@cgrinds cgrinds merged commit e550e1b into main Apr 24, 2023
@cgrinds cgrinds deleted the cbg-doctor branch April 24, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants