This commit is contained in:
ehudk-msft 2020-11-09 19:19:01 +02:00
Родитель 412fdce75b
Коммит 8eb52bdc93
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -107,11 +107,17 @@ Total tests: 171
Total time: 25.7973 Seconds
```
### Detection validation tests
### Detection structure validation tests
Similarly to KQL Validation, there is an automatic validation the structure of a detection.
The structure includes the detection's frequency and period, the detection's trigger type and threshold, etc.
A wrong format or missing attributes will result with an informative check failure, which should guide you through the resolution of the issue, but make sure to look into the format of already approved detection.
### Run Detection Structure Validation Locally
In order to run the kql validation before submitting Pull Request in you local machine:
* You need to have **.Net Core 3.1 SDK** installed [How to download .Net](https://dotnet.microsoft.com/download) (Supports all platforms)
* Open Shell and navigate to `Azure-Sentinel\\.script\tests\TemplateStructureValidation\`
* Execute `dotnet test`
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions