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

Add error if input to dsc resource test is empty #504

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

Currently, you get a error about EOF while dsc tries to read from STDIN (assuming input isn't provided via a file or directly either) and can be confusing. This change explicitly checks if the input is empty and provides a better error message.

PR Context

Fix #484

@SteveL-MSFT SteveL-MSFT changed the title Add error if resource test is empty Add error if resource test input is empty Jul 30, 2024
@SteveL-MSFT SteveL-MSFT changed the title Add error if resource test input is empty Add error if input to dsc resource test is empty Jul 30, 2024
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Jul 30, 2024
Merged via the queue into PowerShell:main with commit 3049f4a Jul 30, 2024
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the test-empty branch July 30, 2024 16:52
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.

Better error when no input is provided to test on a resource
2 participants