-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into v-sabiraj-updatingadditionaltable
- Loading branch information
Showing
309 changed files
with
48,505 additions
and
8,763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: KQL Validations | ||
run-name: KQL Validations running on ${{ github.ref_name }} | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
KqlValidations: | ||
runs-on: ubuntu-latest | ||
env: | ||
buildConfiguration: Release | ||
dotnetSdkVersion: 6.0.x | ||
PRNUM: ${{ github.event.pull_request.number }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use .NET Core SDK ${{ env.dotnetSdkVersion }} | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.dotnetSdkVersion }} | ||
- name: Run KQL Validation tests | ||
run: dotnet test .script/tests/KqlvalidationsTests/Kqlvalidations.Tests.csproj --configuration ${{ env.buildConfiguration }} | ||
env: | ||
GITHUBAPPID: ${{ secrets.APPLICATION_ID }} | ||
GITHUBAPPINSTALLATIONID: ${{ secrets.APPLICATION_INSTALLATION_ID }} | ||
GITHUBAPPPRIVATEKEY: ${{ secrets.APPLICATION_PRIVATE_KEY }} | ||
SYSTEM_PULLREQUEST_ISFORK: ${{ github.event.pull_request.head.repo.fork }} | ||
|
20 changes: 20 additions & 0 deletions
20
.script/tests/KqlvalidationsTests/CustomFunctions/DataverseSharePointSites.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"FunctionName": "DataverseSharePointSites", | ||
"FunctionParameters": [ | ||
{ | ||
"Name": "MSBizAppsConfigurationWatchlistAlias", | ||
"Type": "string", | ||
"Default": "'MSBizApps-Configuration'" | ||
} | ||
], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "InstanceUrl", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "SharePointUrl", | ||
"Type": "string" | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
.script/tests/KqlvalidationsTests/CustomFunctions/MSBizAppsNetworkAddresses.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"FunctionName": "MSBizAppsNetworkAddresses", | ||
"FunctionParameters": [ | ||
{ | ||
"Name": "NetworkAddressesWatchlistAlias", | ||
"Type": "string", | ||
"Default": "'NetworkAddresses'" | ||
} | ||
], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "IPSubnet", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "RangeName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "Tags", | ||
"Type": "string" | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
.script/tests/KqlvalidationsTests/CustomFunctions/MSBizAppsOrgSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"FunctionName": "MSBizAppsOrgSettings", | ||
"FunctionParameters": [], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "FieldName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "DisplayName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "Description", | ||
"Type": "string" | ||
} | ||
] | ||
} |
44 changes: 44 additions & 0 deletions
44
.script/tests/KqlvalidationsTests/CustomFunctions/MSBizAppsTerminatedEmployees.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"FunctionName": "MSBizAppsTerminatedEmployees", | ||
"FunctionParameters": [ | ||
{ | ||
"Name": "TerminatedEmployeesWatchlistAlias", | ||
"Type": "string", | ||
"Default": "'TerminatedEmployees'" | ||
} | ||
], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "UserIdentifier", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserAADObjectId", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserOnPremSid", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserPrincipalName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserState", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "NotificationDate", | ||
"Type": "datetime" | ||
}, | ||
{ | ||
"Name": "TerminationDate", | ||
"Type": "datetime" | ||
}, | ||
{ | ||
"Name": "Tags", | ||
"Type": "string" | ||
} | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
.script/tests/KqlvalidationsTests/CustomFunctions/MSBizAppsVIPUsers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"FunctionName": "MSBizAppsVIPUsers", | ||
"FunctionParameters": [ | ||
{ | ||
"Name": "VIPUsersWatchlistAlias", | ||
"Type": "string", | ||
"Default": "'VIPUsers'" | ||
} | ||
], | ||
"FunctionResultColumns": [ | ||
{ | ||
"Name": "UserIdentifier", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserAADObjectId", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserOnPremSid", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "UserPrincipalName", | ||
"Type": "string" | ||
}, | ||
{ | ||
"Name": "Tags", | ||
"Type": "string" | ||
} | ||
] | ||
} |
113 changes: 113 additions & 0 deletions
113
.script/tests/KqlvalidationsTests/CustomTables/DataverseActivity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"Name": "DataverseActivity", | ||
"Properties": [ | ||
{ | ||
"name": "SourceRecordId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "UserAgent", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "TimeGenerated", | ||
"type": "DateTime" | ||
}, | ||
{ | ||
"name": "Operation", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "OrganizationId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "UserType", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "UserKey", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "ResultStatus", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "OriginalObjectId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "UserId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "UserUpn", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "ClientIp", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "CorrelationId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "CrmOrganizationUniqueName", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "InstanceUrl", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "ItemUrl", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "ItemType", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "Message", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "EntityId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "EntityName", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "Fields", | ||
"type": "Dynamic" | ||
}, | ||
{ | ||
"name": "Query", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "QueryResults", | ||
"type": "Dynamic" | ||
}, | ||
{ | ||
"name": "ServiceContextId", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "ServiceContextIdType", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "ServiceName", | ||
"type": "String" | ||
}, | ||
{ | ||
"name": "SystemUserId", | ||
"type": "String" | ||
} | ||
] | ||
} |
77 changes: 77 additions & 0 deletions
77
.script/tests/KqlvalidationsTests/CustomTables/FinanceOperationsActivity_CL.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"Name": "FinanceOperationsActivity_CL", | ||
"Properties": [ | ||
{ | ||
"name": "TimeGenerated", | ||
"type": "datetime" | ||
}, | ||
{ | ||
"name": "InstanceName", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "LogCreatedDateTime", | ||
"type": "datetime" | ||
}, | ||
{ | ||
"name": "LogType", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "TableName", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "Username", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "Description", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "Data", | ||
"type": "dynamic" | ||
}, | ||
{ | ||
"name": "FormattedData", | ||
"type": "dynamic" | ||
}, | ||
{ | ||
"name": "LogCreatedBy", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "LogCreatedTransactionId", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "LogDataAreaId", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "LogPartition", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "LogRecId", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "SequenceNumber", | ||
"type": "int" | ||
}, | ||
{ | ||
"name": "TableIdNumber", | ||
"type": "int" | ||
}, | ||
{ | ||
"name": "TableRecId", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "TableRecVersion", | ||
"type": "int" | ||
} | ||
] | ||
} |
Oops, something went wrong.