From 25938ff59dc6609d6a22b88f74ed45fd1960906e Mon Sep 17 00:00:00 2001 From: Fabian Bader Date: Mon, 16 Dec 2024 11:51:56 +0100 Subject: [PATCH] powershell-yaml 0.4.8 is case sensitive for property names - write tests accordingly --- tests/Convert-SentinelARArmToYaml.tests.ps1 | 2 +- tests/Convert-SentinelARYamlToArm.tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Convert-SentinelARArmToYaml.tests.ps1 b/tests/Convert-SentinelARArmToYaml.tests.ps1 index 98c249f..4fcde45 100644 --- a/tests/Convert-SentinelARArmToYaml.tests.ps1 +++ b/tests/Convert-SentinelARArmToYaml.tests.ps1 @@ -588,7 +588,7 @@ Describe "Simple example tests" { It "Merged RelevantTechniques, SubTechniques and Techniques into single property" { $converted = Convert-SentinelARArmToYaml -Filename "TestDrive:/Content/TTPWithTacticsNTechniques.json" | ConvertFrom-Yaml $converted.subTechniques | Should -Be $null - $converted.RelevantTechniques -join ", " | Should -Be "T1078.003, T1078.004" + $converted.relevantTechniques -join ", " | Should -Be "T1078.003, T1078.004" } } } diff --git a/tests/Convert-SentinelARYamlToArm.tests.ps1 b/tests/Convert-SentinelARYamlToArm.tests.ps1 index 9671003..08ec053 100644 --- a/tests/Convert-SentinelARYamlToArm.tests.ps1 +++ b/tests/Convert-SentinelARYamlToArm.tests.ps1 @@ -209,7 +209,7 @@ Describe "Convert-SentinelARYamlToArm" { It "Should have the correct display name" { - $armTemplate.resources[0].properties.displayName | Should -Be $YAMLSourceContent.Name + $armTemplate.resources[0].properties.displayName | Should -Be $YAMLSourceContent.name } It "Should have the correct description" {