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

(GH-165) Ensure null-value nested cim instance arrays are appropriately munged #177

Merged
merged 2 commits into from Jul 6, 2021
Merged

(GH-165) Ensure null-value nested cim instance arrays are appropriately munged #177

merged 2 commits into from Jul 6, 2021

Conversation

michaeltlombardi
Copy link
Contributor

@michaeltlombardi michaeltlombardi commented Jul 6, 2021

This PR adds acceptance testing to validate the behavior of nested CIM instances for Puppetized DSC Resources. In the process of writing this acceptance testing, a bug was discovered that prevented the canonicalization of DSC Resource data where a nested cim instance has a value of $null and Puppet expects an array.

This PR corrects that error and implements acceptance testing validating it.

Resolves #165

@michaeltlombardi michaeltlombardi added this to In progress in DSC via automation Jul 6, 2021
@michaeltlombardi michaeltlombardi requested a review from a team as a code owner July 6, 2021 15:48
Prior to this commit, a null value for a nested CIM instance would
not be properly munged into an array.

This commit ensures null values for nested CIM instances are munged
into arrays with a null value.
@michaeltlombardi michaeltlombardi changed the title (GH-165) Add nested cim instance acceptance tests (GH-165) Ensure null-value nested cim instance arrays are appropriately munged Jul 6, 2021
Copy link
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

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

LGTM

DSC automation moved this from In progress to Reviewer approved Jul 6, 2021
@david22swan david22swan merged commit 20f6dc5 into puppetlabs:main Jul 6, 2021
DSC automation moved this from Reviewer approved to Done Jul 6, 2021
@michaeltlombardi michaeltlombardi deleted the gh-165/main/cim-testing branch July 6, 2021 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
DSC
Done
Development

Successfully merging this pull request may close these issues.

DSC Acceptance Testing: CIM Instances
2 participants