-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
code/DeltaKustoAdxIntegrationTest/Policies/RowLevelSecurity/RowLevelSecurityPolicyTest.cs
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,17 @@ | ||
using DeltaKustoIntegration.Database; | ||
using DeltaKustoLib.CommandModel; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Immutable; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace DeltaKustoAdxIntegrationTest.Policies.RowLevelSecurity | ||
{ | ||
public class RowLevelSecurityPolicyTest : AdxAutoIntegrationTestBase | ||
{ | ||
protected override string StatesFolderPath => "Policies/RowLevelSecurity"; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
code/DeltaKustoAdxIntegrationTest/Policies/RowLevelSecurity/States/another-policy.kql
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,3 @@ | ||
.create table MyRowLevelSecurityTable(TIMESTAMP: datetime, PreciseTimeStamp: datetime, Level: int) | ||
|
||
.alter table MyRowLevelSecurityTable policy row_level_security disable "MyRowLevelSecurityTable" |
4 changes: 4 additions & 0 deletions
4
code/DeltaKustoAdxIntegrationTest/Policies/RowLevelSecurity/States/empty.kql
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,4 @@ | ||
// Random comment | ||
|
||
.create table MyRowLevelSecurityTable(TIMESTAMP: datetime, PreciseTimeStamp: datetime, Level: int) | ||
|
3 changes: 3 additions & 0 deletions
3
code/DeltaKustoAdxIntegrationTest/Policies/RowLevelSecurity/States/one-policy.kql
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,3 @@ | ||
.create table MyRowLevelSecurityTable(TIMESTAMP: datetime, PreciseTimeStamp: datetime, Level: int) | ||
|
||
.alter table MyRowLevelSecurityTable policy row_level_security enable "MyRowLevelSecurityTable" |
7 changes: 7 additions & 0 deletions
7
code/DeltaKustoAdxIntegrationTest/Policies/RowLevelSecurity/States/two-policy.kql
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,7 @@ | ||
.create table MyRowLevelSecurityTable(TIMESTAMP: datetime, PreciseTimeStamp: datetime, Level: int) | ||
|
||
.alter table MyRowLevelSecurityTable policy row_level_security enable "MyRowLevelSecurityTable" | ||
|
||
.create table MyRowLevelSecurityTable2(Id:string) | ||
|
||
.alter table MyRowLevelSecurityTable policy row_level_security enable "MyRowLevelSecurityTable2" |