forked from osbuild/images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: test that "empty" RepoConfig marshal to "empty" json
This is a regression test for an issue found during the review of PR#284 [0]. The issue was that ``` ModuleHotfixes *bool `json:"module_hotfixes"` ``` lacked the required `omitempty` which may cause issues with dnfjson. As a quick and easy way to prevent this in the future this commit adds a small test that ensures that we notice any missing `omitempty`. Note that the `rpmmd` part is not strictly needed but it feels more correct to do the check in both places that use a repoConfig. [0] osbuild#284 (comment)
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters