Skip to content

Commit

Permalink
Merge branch 'master' into pr/7743
Browse files Browse the repository at this point in the history
  • Loading branch information
v-prasadboke committed May 2, 2023
2 parents 91d5399 + a6e5588 commit ec188b3
Show file tree
Hide file tree
Showing 1,068 changed files with 84,110 additions and 27,198 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/arm-ttk-validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
$hasmainTemplateChanged = $false
$hasCreateUiDefinitionTemplateChanged = $false
$isChangeInSolutionsFolder = [bool]($diff | Where-Object {$_ -like 'Solutions/*'})
if (!$isChangeInSolutionsFolder)
{
Write-Host "Skipping as change is not in Solutions folder!"
exit 0
}
$requiredFiles = @("mainTemplate.json", "createUiDefinition.json")
$filteredFiles = $diff | Where-Object {$_ -match ($requiredFiles -Join "|")}
Expand Down
2 changes: 1 addition & 1 deletion .script/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ By default, the logs color is white. In case you want another color you can use
- Create an async validation function that gets the file path.
In case the validation pass the function returns success, otherwise throws an exception (don't return an error, this will handle by the infrastructure).
- Create CheckOptions object with 3 properties:
- onCheckFile: the validation validetion function that will run on each file (from step one)
- onCheckFile: the validation validation function that will run on each file (from step one)
- onExecError: error behavior in case that the file validation failed
- onFinalFailed: error behavior at the end of the validation, execute in case one of the validation failed
- Call runCheckOverChangedFiles with properties:
Expand Down
161 changes: 161 additions & 0 deletions .script/tests/KqlvalidationsTests/CustomTables/CynerioEvent_CL.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"Name": "CynerioEvent_CL",
"Properties": [
{
"Name": "TenantId",
"Type": "String"
},
{
"Name": "SourceSystem",
"Type": "String"
},
{
"Name": "MG",
"Type": "String"
},
{
"Name": "ManagementGroupName",
"Type": "String"
},
{
"Name": "TimeGenerated",
"Type": "DateTime"
},
{
"Name": "Computer",
"Type": "String"
},
{
"Name": "RawData",
"Type": "String"
},
{
"Name": "date_t",
"Type": "DateTime"
},
{
"Name": "asset_id_s",
"Type": "String"
},
{
"Name": "dst_ip_s",
"Type": "String"
},
{
"Name": "src_ip_s",
"Type": "String"
},
{
"Name": "trans_s",
"Type": "String"
},
{
"Name": "uid_s",
"Type": "String"
},
{
"Name": "service_s",
"Type": "String"
},
{
"Name": "new_status_s",
"Type": "String"
},
{
"Name": "risk_name_s",
"Type": "String"
},
{
"Name": "browser_s",
"Type": "String"
},
{
"Name": "host_s",
"Type": "String"
},
{
"Name": "Severity",
"Type": "Int"
},
{
"Name": "status_code_s",
"Type": "String"
},
{
"Name": "asset_asset_type_code_s",
"Type": "String"
},
{
"Name": "asset_id_g",
"Type": "String"
},
{
"Name": "asset_ip_s",
"Type": "String"
},
{
"Name": "asset_model_s",
"Type": "String"
},
{
"Name": "asset_name_s",
"Type": "String"
},
{
"Name": "asset_type_s",
"Type": "String"
},
{
"Name": "asset_type_code_s",
"Type": "String"
},
{
"Name":"client_ip_s",
"Type":"String"
},
{
"Name":"details_s",
"Type":"String"
},
{
"Name":"id_g",
"Type":"String"
},
{
"Name":"module_s",
"Type":"String"
},
{
"Name":"port_d",
"Type":"Double"
},
{
"Name":"related_risks_s",
"Type":"String"
},
{
"Name":"server_ip_s",
"Type":"String"
},
{
"Name":"severity_s",
"Type":"String"
},
{
"Name":"timestamp_d",
"Type":"Double"
},
{
"Name":"title_s",
"Type":"String"
},
{
"Name":"Type",
"Type":"String"
},
{
"Name":"_ResourceId",
"Type":"String"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"Name": "DNS_Summarized_Logs_ip_CL",
"Properties": [
{
"Name": "TimeGenerated",
"Type": "DateTime"
},
{
"Name": "EventTime_t",
"Type": "DateTime"
},
{
"Name": "SrcIpAddr_s",
"Type": "String"
},
{
"Name": "DnsQuery_s",
"Type": "String"
},
{
"Name": "EventResultDetails_s",
"Type": "String"
},
{
"Name": "DnsResponseName_s",
"Type": "String"
},
{
"Name": "count__d",
"Type": "Int"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"Name": "DNS_Summarized_Logs_sourceInfo_CL",
"Properties": [
{
"Name": "TimeGenerated",
"Type": "DateTime"
},
{
"Name": "EventTime_t",
"Type": "DateTime"
},
{
"Name": "EventProduct_s",
"Type": "String"
},
{
"Name": "DvcHostname_s",
"Type": "String"
},
{
"Name": "EventType_s",
"Type": "String"
},
{
"Name": "EventSubType_s",
"Type": "String"
},
{
"Name": "DnsQueryTypeName_s",
"Type": "String"
},
{
"Name": "count__d",
"Type": "Int"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@
"Name": "url_s",
"Type": "String"
},
{
"Name": "breachUrl_s",
"Type": "String"
},
{
"Name": "triggeredComponents_s",
"Type": "String"
},
{
"Name": "summary_s",
"Type": "String"
Expand Down
Loading

0 comments on commit ec188b3

Please sign in to comment.