Replaced incorrect requiredtechniques with relevantTechniques #11590
Build #Azure Sentinel Validations had test failures
Details
- Failed: 4 (0.02%)
- Passed: 22,933 (99.98%)
- Other: 0 (0.00%)
- Total: 22,937
Annotations
Check failure on line 95 in Build log
azure-pipelines / Sentinel Content Validation
Build log #L95
Error: The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1
Check failure on line 100 in Build log
azure-pipelines / Sentinel Content Validation
Build log #L100
Dotnet command failed with non-zero exit code on the following projects : [
'/home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidation.Tests.csproj'
]
azure-pipelines / Sentinel Content Validation
Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(detectionsYamlFileName: "DynatraceApplicationSecurity_ThirdPartyVulnerabili"...)
Expected exception to be <null> because In template DynatraceApplicationSecurity_ThirdPartyVulnerabilityDetection.yaml there was an error while parsing: Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field., but found System.Exception with message "Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field."
at Microsoft.Azure.Sentinel.ApiContracts.ModelValidation.DataAnnotationsValidator.ThrowExceptionIfResultsInvalid(List`1 validationResults) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/Models/ModelValidationAttributes/DataAnnotationsValidator.cs:line 30
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.<>c__DisplayClass2_0.<Validate_DetectionTemplates_HasValidTemplateStructure>b__0() in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 56
at Xunit.Record.Exception(Action testCode) in C:\Dev\xunit\xunit\src\xunit.core\Record.cs:line 26
.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeNull(String because, Object[] becauseArgs)
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(String detectionsYamlFileName) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 62
azure-pipelines / Sentinel Content Validation
Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(detectionsYamlFileName: "Dynatrace_ProblemDetection.yaml")
Expected exception to be <null> because In template Dynatrace_ProblemDetection.yaml there was an error while parsing: Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field., but found System.Exception with message "Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field."
at Microsoft.Azure.Sentinel.ApiContracts.ModelValidation.DataAnnotationsValidator.ThrowExceptionIfResultsInvalid(List`1 validationResults) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/Models/ModelValidationAttributes/DataAnnotationsValidator.cs:line 30
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.<>c__DisplayClass2_0.<Validate_DetectionTemplates_HasValidTemplateStructure>b__0() in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 56
at Xunit.Record.Exception(Action testCode) in C:\Dev\xunit\xunit\src\xunit.core\Record.cs:line 26
.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeNull(String because, Object[] becauseArgs)
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(String detectionsYamlFileName) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 62
azure-pipelines / Sentinel Content Validation
Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(detectionsYamlFileName: "DynatraceApplicationSecurity_NonCriticalVulnerabil"...)
Expected exception to be <null> because In template DynatraceApplicationSecurity_NonCriticalVulnerabilityDetection.yaml there was an error while parsing: Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field., but found System.Exception with message "Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field."
at Microsoft.Azure.Sentinel.ApiContracts.ModelValidation.DataAnnotationsValidator.ThrowExceptionIfResultsInvalid(List`1 validationResults) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/Models/ModelValidationAttributes/DataAnnotationsValidator.cs:line 30
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.<>c__DisplayClass2_0.<Validate_DetectionTemplates_HasValidTemplateStructure>b__0() in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 56
at Xunit.Record.Exception(Action testCode) in C:\Dev\xunit\xunit\src\xunit.core\Record.cs:line 26
.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeNull(String because, Object[] becauseArgs)
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(String detectionsYamlFileName) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 62
azure-pipelines / Sentinel Content Validation
Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(detectionsYamlFileName: "DynatraceApplicationSecurity_CodeLevelVulnerabilit"...)
Expected exception to be <null> because In template DynatraceApplicationSecurity_CodeLevelVulnerabilityDetection.yaml there was an error while parsing: Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field., but found System.Exception with message "Invalid data model. No valid tactic corresponding to the technique T1659 was provided in the tactics field."
at Microsoft.Azure.Sentinel.ApiContracts.ModelValidation.DataAnnotationsValidator.ThrowExceptionIfResultsInvalid(List`1 validationResults) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/Models/ModelValidationAttributes/DataAnnotationsValidator.cs:line 30
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.<>c__DisplayClass2_0.<Validate_DetectionTemplates_HasValidTemplateStructure>b__0() in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 56
at Xunit.Record.Exception(Action testCode) in C:\Dev\xunit\xunit\src\xunit.core\Record.cs:line 26
.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ReferenceTypeAssertions`2.BeNull(String because, Object[] becauseArgs)
at Kqlvalidations.Tests.DetectionTemplateSchemaValidationTests.Validate_DetectionTemplates_HasValidTemplateStructure(String detectionsYamlFileName) in /home/vsts/work/1/s/.script/tests/detectionTemplateSchemaValidation/DetectionTemplateSchemaValidationTests.cs:line 62