-
Notifications
You must be signed in to change notification settings - Fork 8
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
6 changed files
with
181 additions
and
75 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
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
83 changes: 83 additions & 0 deletions
83
src/ConfigCat.Client.Tests/data/evaluationlog/_overrides/test_list_truncation.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,83 @@ | ||
{ | ||
"p": { | ||
"u": "https://cdn-global.configcat.com", | ||
"r": 0, | ||
"s": "test-salt" | ||
}, | ||
"f": { | ||
"booleanKey1": { | ||
"t": 0, | ||
"v": { | ||
"b": false | ||
}, | ||
"r": [ | ||
{ | ||
"c": [ | ||
{ | ||
"t": { | ||
"a": "Identifier", | ||
"c": 2, | ||
"l": [ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
"6", | ||
"7", | ||
"8", | ||
"9", | ||
"10" | ||
] | ||
} | ||
}, | ||
{ | ||
"t": { | ||
"a": "Identifier", | ||
"c": 2, | ||
"l": [ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
"6", | ||
"7", | ||
"8", | ||
"9", | ||
"10", | ||
"11" | ||
] | ||
} | ||
}, | ||
{ | ||
"t": { | ||
"a": "Identifier", | ||
"c": 2, | ||
"l": [ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
"6", | ||
"7", | ||
"8", | ||
"9", | ||
"10", | ||
"11", | ||
"12" | ||
] | ||
} | ||
} | ||
], | ||
"s": { | ||
"v": { | ||
"b": true | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/ConfigCat.Client.Tests/data/evaluationlog/list_truncation.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,14 @@ | ||
{ | ||
"jsonOverride": "test_list_truncation.json", | ||
"tests": [ | ||
{ | ||
"key": "booleanKey1", | ||
"defaultValue": false, | ||
"user": { | ||
"Identifier": "12" | ||
}, | ||
"returnValue": true, | ||
"expectedLog": "list_truncation.txt" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
src/ConfigCat.Client.Tests/data/evaluationlog/list_truncation/list_truncation.txt
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 @@ | ||
INFO [5000] Evaluating 'booleanKey1' for User '{"Identifier":"12"}' | ||
Evaluating targeting rules and applying the first match if any: | ||
- IF User.Identifier CONTAINS ANY OF ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] => true | ||
AND User.Identifier CONTAINS ANY OF ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ... <1 more value>] => true | ||
AND User.Identifier CONTAINS ANY OF ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ... <2 more values>] => true | ||
THEN 'True' => MATCH, applying rule | ||
Returning 'True'. |
This file was deleted.
Oops, something went wrong.