Skip to content

Commit

Permalink
Adjust implementation and tests to the modified config v6 format
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Jul 26, 2023
1 parent 43b3c73 commit 0de33ca
Show file tree
Hide file tree
Showing 13 changed files with 1,537 additions and 1,587 deletions.
500 changes: 250 additions & 250 deletions src/ConfigCat.Client.Tests/data/sample_and_or_v6.json

Large diffs are not rendered by default.

672 changes: 332 additions & 340 deletions src/ConfigCat.Client.Tests/data/sample_comparators_v6.json

Large diffs are not rendered by default.

934 changes: 467 additions & 467 deletions src/ConfigCat.Client.Tests/data/sample_flagdependency_v6.json

Large diffs are not rendered by default.

28 changes: 13 additions & 15 deletions src/ConfigCat.Client.Tests/data/sample_number_v5.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"p": {
"s": "bK4l7GU7kB9db5FTxQ3kXEQjAmW3keJsTBFrJiDvhBI="
"s": "/Y4mJ/uSa1GBTn2Wt5y33RohDIPavEWxe0TAqr5Lwp4="
},
"f": {
"numberWithPercentage": {
Expand Down Expand Up @@ -101,22 +101,20 @@
"s": "\u003C\u003E4.2"
}
}
}
],
"p": [
{
"p": 80,
"v": {
"s": "80%"
}
},
{
"p": [
{
"p": 80,
"v": {
"s": "80%"
}
},
{
"p": 20,
"v": {
"s": "20%"
}
}
]
"p": 20,
"v": {
"s": "20%"
}
}
],
"v": {
Expand Down
326 changes: 163 additions & 163 deletions src/ConfigCat.Client.Tests/data/sample_segments_v6.json
Original file line number Diff line number Diff line change
@@ -1,180 +1,180 @@
{
"p": {
"u": "https://test-cdn-eu.configcat.com",
"r": 0,
"s": "xsZfkjIELRJhElvdQJJWcys0cn836z8DcClMiR1Vd/s="
},
"s": [
"p": {
"u": "https://test-cdn-eu.configcat.com",
"r": 0,
"s": "B0sm1Jb9oq6EkCiw4zCmGqqfadmoZwa5tvtVjVO98Qg="
},
"s": [
{
"n": "Beta Users",
"r": [
{
"n": "Beta",
"r": [
{
"a": "Email",
"c": 16,
"l": [
"42be0307afe6d38e8a0ba7f5ab9230104bed054149c50b6903e2514b77c5f8f4",
"82847209de6d4bfa4ba9e0902c9caf7b36ce3b52e54f019686d5dc9b9cc175d9"
]
}
]
},
"a": "Email",
"c": 16,
"l": [
"19e3869c1c82c6b818e8b7511ab1d1d857d02ed56df4b676073368e034f6a9ef",
"7180d01c87c920a79ab9ab3e73914f70f1a495a7b1d96bd79c4ceaddd0556513"
]
}
]
},
{
"n": "Developers",
"r": [
{
"n": "Deve",
"r": [
{
"a": "Email",
"c": 16,
"l": [
"ea05dc0e0eec2f4921c3f87aba58a0bb245887399507bac129f8401443264b96",
"b399eca1657a3ba9ae5fdf20c287ec341ef06db42779cecd238c37ebafd552b4"
]
}
]
},
"a": "Email",
"c": 16,
"l": [
"344d25f0ad356f8323b8a22a587a20dd4d6da9ff9a9dc6eb199ea62ac8a9d7f0",
"86917c36d7a5a3b1ceb32441678e97890dda8094f98004ca2a09ae49607acc4c"
]
}
]
},
{
"n": "Not Beta Users",
"r": [
{
"n": "Not ",
"r": [
{
"a": "Email",
"c": 17,
"l": [
"27ea22674ccea76dd6fbdab96f36a20b22897e88f2821f93f0ac75d76df3219d",
"334423d07640c751beb2ac0c2e247d7af6cffcc729d619ec005ae1782bf0551a"
]
}
]
},
"a": "Email",
"c": 17,
"l": [
"d4f805c0b9a7e23edda3929060a25e12e0dee89e9fa8bf0876e3f1fb1e8f8aa2",
"d7931fb70c6c8a7ce73f5bf18c75644075598730aa0e40d63228f4a7809dcf38"
]
}
]
},
{
"n": "Not Developers",
"r": [
{
"n": "Not ",
"r": [
{
"a": "Email",
"c": 17,
"l": [
"18fef9b334075fb1e8f61edd22d88fc7ffd0dbf56bba9ab6a82c7d2f183cf6bc",
"334423d07640c751beb2ac0c2e247d7af6cffcc729d619ec005ae1782bf0551a"
]
}
]
},
"a": "Email",
"c": 17,
"l": [
"03ec9be44734ba3c76260e304ca077c3123cf1c6a0be428e6a05f0b589d3681c",
"42e07ee44f228d422722390d281fe4d3a7bc292057cac459060e64424d4278c9"
]
}
]
},
{
"n": "United",
"r": [
{
"n": "Unit",
"r": [
{
"a": "Country",
"c": 2,
"l": [
"United"
]
}
]
},
"a": "Country",
"c": 2,
"l": [
"United"
]
}
]
},
{
"n": "Not States",
"r": [
{
"n": "Not ",
"r": [
{
"a": "Country",
"c": 3,
"l": [
"States"
]
}
]
"a": "Country",
"c": 3,
"l": [
"States"
]
}
],
"f": {
"countrySegment": {
"t": 1,
"r": [
{
"c": [
{
"s": {
"s": 4,
"c": 0
}
},
{
"s": {
"s": 5,
"c": 0
}
}
],
"s": {
"v": {
"s": "A"
},
"i": "9b7e6414"
}
}
],
]
}
],
"f": {
"countrySegment": {
"t": 1,
"r": [
{
"c": [
{
"s": {
"s": 4,
"c": 0
}
},
{
"s": {
"s": 5,
"c": 0
}
}
],
"s": {
"v": {
"s": "Z"
"s": "A"
},
"i": "f71b6d96"
},
"developerAndBetaUserSegment": {
"t": 0,
"r": [
{
"c": [
{
"s": {
"s": 1,
"c": 0
}
},
{
"s": {
"s": 0,
"c": 1
}
}
],
"s": {
"v": {
"b": true
},
"i": "ddc50638"
}
}
],
"i": "9b7e6414"
}
}
],
"v": {
"s": "Z"
},
"i": "f71b6d96"
},
"developerAndBetaUserSegment": {
"t": 0,
"r": [
{
"c": [
{
"s": {
"s": 1,
"c": 0
}
},
{
"s": {
"s": 0,
"c": 1
}
}
],
"s": {
"v": {
"b": false
"b": true
},
"i": "ddc50638"
}
}
],
"v": {
"b": false
},
"i": "6427f4b8"
},
"notDeveloperAndNotBetaUserSegment": {
"t": 0,
"r": [
{
"c": [
{
"s": {
"s": 2,
"c": 0
}
},
"i": "6427f4b8"
},
"notDeveloperAndNotBetaUserSegment": {
"t": 0,
"r": [
{
"c": [
{
"s": {
"s": 2,
"c": 0
}
},
{
"s": {
"s": 3,
"c": 1
}
}
],
"s": {
"v": {
"b": true
},
"i": "77081d42"
}
}
],
{
"s": {
"s": 3,
"c": 1
}
}
],
"s": {
"v": {
"b": false
"b": true
},
"i": "a14eaf13"
"i": "77081d42"
}
}
],
"v": {
"b": false
},
"i": "a14eaf13"
}
}
}
2 changes: 1 addition & 1 deletion src/ConfigCat.Client.Tests/data/sample_semantic_2_v5.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"p": {
"s": "gV6FuoNatH9CfBEAzZKpPaG8Ifh8/FXEdw9FoclHPwc="
"s": "a/zoGhq13j5rXWNPFrwpOHIw2qRN/iPstBxxa59fehs="
},
"f": {
"precedenceTests": {
Expand Down
Loading

0 comments on commit 0de33ca

Please sign in to comment.