diff --git a/dsc/tests/dsc_discovery.tests.ps1 b/dsc/tests/dsc_discovery.tests.ps1 index 6d377a3bc..b88376180 100644 --- a/dsc/tests/dsc_discovery.tests.ps1 +++ b/dsc/tests/dsc_discovery.tests.ps1 @@ -209,12 +209,12 @@ Describe 'tests for resource discovery' { try { $env:DSC_RESOURCE_PATH = $testdrive Set-Content -Path "$testdrive/test.dsc.resource.json" -Value $manifest - $out = dsc resource list 'Test/ExecutableNotFound' 2> "$testdrive/error.txt" | ConvertFrom-Json + $out = dsc -l info resource list 'Test/ExecutableNotFound' 2> "$testdrive/error.txt" | ConvertFrom-Json $LASTEXITCODE | Should -Be 0 $out.Count | Should -Be 1 $out.Type | Should -BeExactly 'Test/ExecutableNotFound' $out.Kind | Should -BeExactly 'resource' - Get-Content -Path "$testdrive/error.txt" | Should -Match "WARN.*?Executable 'doesNotExist' not found" + (Get-Content -Path "$testdrive/error.txt" -Raw) | Should -Match "INFO.*?Executable 'doesNotExist' not found" } finally { $env:DSC_RESOURCE_PATH = $oldPath diff --git a/dsc_lib/src/discovery/command_discovery.rs b/dsc_lib/src/discovery/command_discovery.rs index 330b07cea..51ec01069 100644 --- a/dsc_lib/src/discovery/command_discovery.rs +++ b/dsc_lib/src/discovery/command_discovery.rs @@ -756,7 +756,7 @@ fn load_extension_manifest(path: &Path, manifest: &ExtensionManifest) -> Result< fn verify_executable(resource: &str, operation: &str, executable: &str) { if which(executable).is_err() { - warn!("{}", t!("discovery.commandDiscovery.executableNotFound", resource = resource, operation = operation, executable = executable)); + info!("{}", t!("discovery.commandDiscovery.executableNotFound", resource = resource, operation = operation, executable = executable)); } }