Skip to content

Detect duplicate identifiers in bundle config#332

Merged
shreyas-goenka merged 9 commits intomainfrom
multiple-ids
Apr 17, 2023
Merged

Detect duplicate identifiers in bundle config#332
shreyas-goenka merged 9 commits intomainfrom
multiple-ids

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

@shreyas-goenka shreyas-goenka commented Apr 14, 2023

Changes

This PR adds checks during bundle config load and merge to error out if there are duplicate keys for resource definitions

Tests

Using unit tests and manually

@shreyas-goenka shreyas-goenka requested a review from pietern April 14, 2023 00:48
@shreyas-goenka shreyas-goenka requested a review from pietern April 14, 2023 12:01
Copy link
Copy Markdown
Contributor

@pietern pietern left a comment

Choose a reason for hiding this comment

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

Nice work!

Could you move testdata to bundle/tests and add a black-box test there as well? It can load the bundle at the path and verify an error comes back.

@shreyas-goenka shreyas-goenka merged commit 93d57dd into main Apr 17, 2023
@shreyas-goenka shreyas-goenka deleted the multiple-ids branch April 17, 2023 10:21
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 participants