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

blueprint: some test tweaks #894

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Sep 2, 2024

Small followup for #885

blueprint: extend TestBlueprintParse to make "drift" less
likely

By using the same content encoded in toml/json it is less likely
that there is drift between json/toml when unmarshaling.


blueprint: add marshal/unmarshal symetry test

Ensure that marshal/unmarshal are symetric by marshaling and then
unmarshaling to ensure all fields are marshaled/unmarhaled to
the same struct values.


blueprint: move test to blueprint_test test pattern

By using the same content encoded in toml/json it is less likely
that there is drift between json/toml when unmarshaling.
Ensure that marshal/unmarshal are symetric by marshaling and then
unmarshaling to ensure all fields are marshaled/unmarhaled to
the same struct values.
@supakeen supakeen added this pull request to the merge queue Sep 3, 2024
Merged via the queue into osbuild:main with commit 398b06f Sep 3, 2024
18 checks passed
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.

3 participants