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

Integration tests (Intune): Call Test-DSCConfiguration after deploying the config #4033

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

ricmestre
Copy link
Contributor

Pull Request (PR) description

After deploying the config then Test-DSCConfiguration to ensure that what was deployed to the tenant matches the config and while here add some error handling.

@NikCharlebois Thank you very much to start looking into this, much appreciated!!! It seems you've concatenated all available examples, but probably would be better to have separate configurations for each action (new, update, delete) just like it was done in https://github.com/microsoft/Microsoft365DSC/blob/365c23a1dbbbfad3c1a5c9cb372dec935a7487b4/Tests/Integration/Microsoft365DSC/MSFT_AADApplication.ps1. This one also tested different types of authentication which would be good to have, I've seen some resources that worked without issues with credentials and then failed with cert auth.

Anyway it's a good start, we don't have to do everything in just one go, this can be improved over time.

This Pull Request (PR) fixes the following issues

@NikCharlebois NikCharlebois merged commit 588f19e into microsoft:Dev Dec 14, 2023
2 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.

2 participants