-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
b319140
commit 830ebcb
Showing
31 changed files
with
217 additions
and
38 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
8 changes: 0 additions & 8 deletions
8
.../user-access-policy/src/rule/storage/search/tests/byIp/v6Short/testFindRuleByIpV6Short.ts
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...rule/storage/search/tests/testFindRule.ts → ...rage/search/tests/generic/testFindRule.ts
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
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
12 changes: 12 additions & 0 deletions
12
...ges/user-access-policy/src/rule/storage/search/tests/generic/testMongooseFindRule.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../mongooseRulesStorage.js"; | ||
import TestFindRule from "./testFindRule.js"; | ||
|
||
describe("MongooseFindRule", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindRule(storage); | ||
|
||
tests.runAll(); | ||
}); |
12 changes: 12 additions & 0 deletions
12
...-access-policy/src/rule/storage/search/tests/generic/testMongooseFindRuleByUserId.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../mongooseRulesStorage.js"; | ||
import TestFindRuleByUserId from "./testFindRuleByUserId.js"; | ||
|
||
describe("MongooseFindRuleByUserId", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindRuleByUserId(storage); | ||
|
||
tests.runAll(); | ||
}); |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../v4/maskRange/testFindByMaskV4RangeMax.ts → ...maskRange/max/testFindByMaskV4RangeMax.ts
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
12 changes: 12 additions & 0 deletions
12
...le/storage/search/tests/ip/v4/mask/maskRange/max/testMongooseFindByMaskV4RangeMax.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../../mongooseRulesStorage.js"; | ||
import TestFindByMaskV4RangeMax from "./testFindByMaskV4RangeMax.js"; | ||
|
||
describe("MongooseFindByMaskV4RangeMax", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByMaskV4RangeMax(storage); | ||
|
||
tests.runAll(); | ||
}); |
2 changes: 1 addition & 1 deletion
2
.../v4/maskRange/testFindByMaskV4RangeMin.ts → ...maskRange/min/testFindByMaskV4RangeMin.ts
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
12 changes: 12 additions & 0 deletions
12
...le/storage/search/tests/ip/v4/mask/maskRange/min/testMongooseFindByMaskV4RangeMin.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../../mongooseRulesStorage.js"; | ||
import TestFindByMaskV4RangeMin from "./testFindByMaskV4RangeMin.js"; | ||
|
||
describe("MongooseFindByMaskV4RangeMin", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByMaskV4RangeMin(storage); | ||
|
||
tests.runAll(); | ||
}); |
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
12 changes: 12 additions & 0 deletions
12
...r-access-policy/src/rule/storage/search/tests/ip/v4/mask/testMongooseFindByMaskV4.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../mongooseRulesStorage.js"; | ||
import TestFindByMaskV4 from "./testFindByMaskV4.js"; | ||
|
||
describe("MongooseFindByMaskV4", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByMaskV4(storage); | ||
|
||
tests.runAll(); | ||
}); |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...ges/user-access-policy/src/rule/storage/search/tests/ip/v4/testMongooseFindByIpV4.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpV4 from "./testFindByIpV4.js"; | ||
|
||
describe("MongooseFindByIpV4", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpV4(storage); | ||
|
||
tests.runAll(); | ||
}); |
2 changes: 1 addition & 1 deletion
2
...6/maskRange/testFindByIpMaskV6RangeMax.ts → ...skRange/max/testFindByIpMaskV6RangeMax.ts
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
12 changes: 12 additions & 0 deletions
12
.../storage/search/tests/ip/v6/mask/maskRange/max/testMongooseFindByIpMaskV6RangeMax.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpMaskV6RangeMax from "./testFindByIpMaskV6RangeMax.js"; | ||
|
||
describe("MongooseFindByIpMaskV6RangeMax", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpMaskV6RangeMax(storage); | ||
|
||
tests.runAll(); | ||
}); |
2 changes: 1 addition & 1 deletion
2
...6/maskRange/testFindByIpMaskV6RangeMin.ts → ...skRange/min/testFindByIpMaskV6RangeMin.ts
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
12 changes: 12 additions & 0 deletions
12
.../storage/search/tests/ip/v6/mask/maskRange/min/testMongooseFindByIpMaskV6RangeMin.spec.ts
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,12 @@ | ||
import { describe } from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpMaskV6RangeMin from "./testFindByIpMaskV6RangeMin.js"; | ||
|
||
describe("MongooseFindByIpMaskV6RangeMin", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpMaskV6RangeMin(storage); | ||
|
||
tests.runAll(); | ||
}); |
4 changes: 2 additions & 2 deletions
4
...earch/tests/byIp/v6/testFindByIpMaskV6.ts → ...ch/tests/ip/v6/mask/testFindByIpMaskV6.ts
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
12 changes: 12 additions & 0 deletions
12
...access-policy/src/rule/storage/search/tests/ip/v6/mask/testMongooseFindByIpMaskV6.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpMaskV6 from "./testFindByIpMaskV6.js"; | ||
|
||
describe("MongooseFindByIpMaskV6", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpMaskV6(storage); | ||
|
||
tests.runAll(); | ||
}); |
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
12 changes: 12 additions & 0 deletions
12
...arch/tests/ip/v6/short/mask/maskRange/max/testMongooseFindByIpMaskV6ShortRangeMax.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../../../mongooseRulesStorage.js"; | ||
import {TestFindByIpMaskV6ShortRangeMax} from "./testFindByIpMaskV6ShortRangeMax.js"; | ||
|
||
describe("MongooseFindByIpV6MaskV6ShortRangeMax", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpMaskV6ShortRangeMax(storage); | ||
|
||
tests.runAll(); | ||
}); |
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
12 changes: 12 additions & 0 deletions
12
...arch/tests/ip/v6/short/mask/maskRange/min/testMongooseFindByIpMaskV6ShortRangeMix.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpMaskV6ShortRangeMin from "./testFindByIpMaskV6ShortRangeMin.js"; | ||
|
||
describe("MongooseFindByIpMaskV6ShortRangeMin", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpMaskV6ShortRangeMin(storage); | ||
|
||
tests.runAll(); | ||
}); |
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
12 changes: 12 additions & 0 deletions
12
...cy/src/rule/storage/search/tests/ip/v6/short/mask/testMongooseFindByIpMaskV6Short.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpMaskV6Short from "./testFindByIpMaskV6Short.js"; | ||
|
||
describe("MongooseFindByIpMaskV6Short", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpMaskV6Short(storage); | ||
|
||
tests.runAll(); | ||
}); |
8 changes: 8 additions & 0 deletions
8
packages/user-access-policy/src/rule/storage/search/tests/ip/v6/short/testFindByIpV6Short.ts
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,8 @@ | ||
import TestFindByIpV6 from "../testFindByIpV6.js"; | ||
|
||
class TestFindByIpV6Short extends TestFindByIpV6 { | ||
protected override readonly userIp: string = "::1"; | ||
protected override readonly anotherUserIp: string = "::2"; | ||
} | ||
|
||
export default TestFindByIpV6Short; |
12 changes: 12 additions & 0 deletions
12
...cess-policy/src/rule/storage/search/tests/ip/v6/short/testMongooseFindByIpV6Short.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import TestFindByIpV6Short from "./testFindByIpV6Short.js"; | ||
import testMongooseRuleModel from "../../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../../mongooseRulesStorage.js"; | ||
|
||
describe("MongooseFindByIpV6Short", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpV6Short(storage); | ||
|
||
tests.runAll(); | ||
}); |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...ges/user-access-policy/src/rule/storage/search/tests/ip/v6/testMongooseFindByIpV6.spec.ts
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,12 @@ | ||
import {describe} from "vitest"; | ||
import testMongooseRuleModel from "../../../../test/testMongooseRuleModel.js"; | ||
import MongooseRulesStorage from "../../../../mongooseRulesStorage.js"; | ||
import TestFindByIpV6 from "./testFindByIpV6.js"; | ||
|
||
describe("MongooseFindByIpV6", async () => { | ||
const testModel = await testMongooseRuleModel(); | ||
const storage = new MongooseRulesStorage(testModel); | ||
const tests = new TestFindByIpV6(storage); | ||
|
||
tests.runAll(); | ||
}); |