diff --git a/test_group_resource/src/main.rs b/test_group_resource/src/main.rs index 8b95c878..ec68dc0f 100644 --- a/test_group_resource/src/main.rs +++ b/test_group_resource/src/main.rs @@ -14,7 +14,7 @@ fn main() { match args.subcommand { SubCommand::List => { let resource1 = DscResource { - type_name: "TestResource1".to_string(), + type_name: "Test/TestResource1".to_string(), version: "1.0.0".to_string(), description: Some("This is a test resource.".to_string()), implemented_as: ImplementedAs::Custom("TestResource".to_string()), @@ -28,7 +28,7 @@ fn main() { }).unwrap()), }; let resource2 = DscResource { - type_name: "TestResource2".to_string(), + type_name: "Test/TestResource2".to_string(), version: "1.0.1".to_string(), description: Some("This is a test resource.".to_string()), implemented_as: ImplementedAs::Custom("TestResource".to_string()), diff --git a/test_group_resource/tests/provider.tests.ps1 b/test_group_resource/tests/provider.tests.ps1 index 5c4da0a1..0d63741e 100644 --- a/test_group_resource/tests/provider.tests.ps1 +++ b/test_group_resource/tests/provider.tests.ps1 @@ -7,12 +7,12 @@ Describe 'Resource provider tests' { $out = dsc resource list *testresource* | ConvertFrom-Json | Sort-Object -Property type $out.Count | Should -Be 2 - $out[0].type | Should -BeExactly 'TestResource1' + $out[0].type | Should -BeExactly 'Test/TestResource1' $out[0].version | Should -Be '1.0.0' $out[0].path | Should -BeExactly 'test_resource1' $out[0].implementedas | Should -BeExactly 'TestResource' $out[0].requires | Should -BeExactly 'Test/TestGroup' - $out[1].type | Should -BeExactly 'TestResource2' + $out[1].type | Should -BeExactly 'Test/TestResource2' $out[1].version | Should -Be '1.0.1' $out[1].path | Should -BeExactly 'test_resource2' $out[1].implementedas | Should -BeExactly 'TestResource'