From cf382bace48580585ddefe0bb2c8bad285596b08 Mon Sep 17 00:00:00 2001 From: sige Date: Tue, 25 Feb 2020 10:39:43 +0100 Subject: [PATCH] removing unused v2 jsons --- .../ConfigCat.Client.Tests.csproj | 12 - .../data/sample_number_v2.json | 83 ----- .../data/sample_semantic_v2.json | 217 ----------- .../data/sample_sensitive_v2.json | 58 --- .../data/sample_v2.json | 346 ------------------ 5 files changed, 716 deletions(-) delete mode 100644 src/ConfigCat.Client.Tests/data/sample_number_v2.json delete mode 100644 src/ConfigCat.Client.Tests/data/sample_semantic_v2.json delete mode 100644 src/ConfigCat.Client.Tests/data/sample_sensitive_v2.json delete mode 100644 src/ConfigCat.Client.Tests/data/sample_v2.json diff --git a/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj b/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj index b6309926..d1bcba81 100644 --- a/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj +++ b/src/ConfigCat.Client.Tests/ConfigCat.Client.Tests.csproj @@ -26,30 +26,18 @@ - - Always - Always Always - - Always - Always - - Always - Always - - Always - Always diff --git a/src/ConfigCat.Client.Tests/data/sample_number_v2.json b/src/ConfigCat.Client.Tests/data/sample_number_v2.json deleted file mode 100644 index e52cbc4f..00000000 --- a/src/ConfigCat.Client.Tests/data/sample_number_v2.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "numberWithPercentage": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "80%", - "Percentage": 80 - }, - { - "Order": 1, - "Value": "20%", - "Percentage": 20 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 10, - "ComparisonValue": "sajt", - "Value": "=sajt" - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 12, - "ComparisonValue": "2.1", - "Value": "<2.1" - }, - { - "Order": 2, - "ComparisonAttribute": "Custom1", - "Comparator": 13, - "ComparisonValue": "2,1", - "Value": "<=2,1" - }, - { - "Order": 3, - "ComparisonAttribute": "Custom1", - "Comparator": 10, - "ComparisonValue": "3.5", - "Value": "=3.5" - }, - { - "Order": 4, - "ComparisonAttribute": "Custom1", - "Comparator": 14, - "ComparisonValue": "5", - "Value": ">5" - }, - { - "Order": 5, - "ComparisonAttribute": "Custom1", - "Comparator": 15, - "ComparisonValue": "5", - "Value": ">=5" - }, - { - "Order": 6, - "ComparisonAttribute": "Custom1", - "Comparator": 11, - "ComparisonValue": "4.2", - "Value": "<>4.2" - } - ] - }, - "number": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 11, - "ComparisonValue": "5", - "Value": "<>5" - } - ] - } -} \ No newline at end of file diff --git a/src/ConfigCat.Client.Tests/data/sample_semantic_v2.json b/src/ConfigCat.Client.Tests/data/sample_semantic_v2.json deleted file mode 100644 index 66f65782..00000000 --- a/src/ConfigCat.Client.Tests/data/sample_semantic_v2.json +++ /dev/null @@ -1,217 +0,0 @@ -{ - "isOneOf": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "1.0.0, 2", - "Value": "Is one of (1.0.0, 2)" - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "1.0.0", - "Value": "Is one of (1.0.0)" - }, - { - "Order": 2, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": " , 2.0.1, 2.0.2, ", - "Value": "Is one of ( , 2.0.1, 2.0.2, )" - }, - { - "Order": 3, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "3......", - "Value": "Is one of (3......)" - }, - { - "Order": 4, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "3....", - "Value": "Is one of (3...)" - }, - { - "Order": 5, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "3..0", - "Value": "Is one of (3..0)" - }, - { - "Order": 6, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "3.0", - "Value": "Is one of (3.0)" - }, - { - "Order": 7, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "3.0.", - "Value": "Is one of (3.0.)" - }, - { - "Order": 8, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "3.0.0", - "Value": "Is one of (3.0.0)" - } - ] - }, - "isOneOfWithPercentage": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "20%", - "Percentage": 20 - }, - { - "Order": 1, - "Value": "80%", - "Percentage": 80 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 4, - "ComparisonValue": "1.0.0", - "Value": "is one of (1.0.0)" - } - ] - }, - "isNotOneOf": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 5, - "ComparisonValue": "1.0.0, 1.0.1, 2.0.0 , 2.0.1, 2.0.2, ", - "Value": "Is not one of (1.0.0, 1.0.1, 2.0.0 , 2.0.1, 2.0.2, )" - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 5, - "ComparisonValue": "1.0.0, 3.0.1", - "Value": "Is not one of (1.0.0, 3.0.1)" - } - ] - }, - "isNotOneOfWithPercentage": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "20%", - "Percentage": 20 - }, - { - "Order": 1, - "Value": "80%", - "Percentage": 80 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 5, - "ComparisonValue": "1.0.0, 1.0.1, 2.0.0 , 2.0.1, 2.0.2, ", - "Value": "Is not one of (1.0.0, 1.0.1, 2.0.0 , 2.0.1, 2.0.2, )" - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 5, - "ComparisonValue": "1.0.0, 3.0.1", - "Value": "Is not one of (1.0.0, 3.0.1)" - } - ] - }, - "lessThanWithPercentage": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "20%", - "Percentage": 20 - }, - { - "Order": 1, - "Value": "80%", - "Percentage": 80 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 6, - "ComparisonValue": " 1.0.0 ", - "Value": "< 1.0.0" - } - ] - }, - "relations": { - "Value": "Default", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Custom1", - "Comparator": 6, - "ComparisonValue": "1.0.0,", - "Value": "<1.0.0," - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 6, - "ComparisonValue": "1.0.0", - "Value": "< 1.0.0" - }, - { - "Order": 2, - "ComparisonAttribute": "Custom1", - "Comparator": 7, - "ComparisonValue": "1.0.0", - "Value": "<=1.0.0" - }, - { - "Order": 3, - "ComparisonAttribute": "Custom1", - "Comparator": 8, - "ComparisonValue": "2.0.0", - "Value": ">2.0.0" - }, - { - "Order": 4, - "ComparisonAttribute": "Custom1", - "Comparator": 9, - "ComparisonValue": "2.0.0", - "Value": ">=2.0.0" - } - ] - } -} \ No newline at end of file diff --git a/src/ConfigCat.Client.Tests/data/sample_sensitive_v2.json b/src/ConfigCat.Client.Tests/data/sample_sensitive_v2.json deleted file mode 100644 index 22b4e2e2..00000000 --- a/src/ConfigCat.Client.Tests/data/sample_sensitive_v2.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "isNotOneOfSensitive": { - "Value": "ToAll", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Identifier", - "Comparator": 17, - "ComparisonValue": "68d93aa74a0aa1664f65ad6c0515f24769b15c84,8409e4e5d27a1465165012b03b2606f0e5b08250", - "Value": "Kigyo" - }, - { - "Order": 1, - "ComparisonAttribute": "Email", - "Comparator": 17, - "ComparisonValue": "2e1c7263a639cf2719f585dfa0be3953c13dd36f,532df0aa59af3cf1d3d876316225e987e63bf8a6", - "Value": "Angolna" - }, - { - "Order": 2, - "ComparisonAttribute": "Country", - "Comparator": 17, - "ComparisonValue": "707fe00aa123eb0be5010f1d3065c2b6d7934ca4,ff95dc990b9440c8ff18edd8592bf43915e510b9,e2ff49d5209adefb1d572ca4ca42701ac5b167ad", - "Value": "Ireland" - } - ] - }, - "isOneOfSensitive": { - "Value": "ToAll", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 16, - "ComparisonValue": "532df0aa59af3cf1d3d876316225e987e63bf8a6", - "Value": "Macska" - }, - { - "Order": 1, - "ComparisonAttribute": "Identifier", - "Comparator": 16, - "ComparisonValue": "cc1a672b80f85ec48aa620a588864285e2b04a45,68d93aa74a0aa1664f65ad6c0515f24769b15c84", - "Value": "Allat" - }, - { - "Order": 2, - "ComparisonAttribute": "Country", - "Comparator": 16, - "ComparisonValue": "707fe00aa123eb0be5010f1d3065c2b6d7934ca4,ff95dc990b9440c8ff18edd8592bf43915e510b9,e2ff49d5209adefb1d572ca4ca42701ac5b167ad", - "Value": "Britt" - } - ] - } - } \ No newline at end of file diff --git a/src/ConfigCat.Client.Tests/data/sample_v2.json b/src/ConfigCat.Client.Tests/data/sample_v2.json deleted file mode 100644 index 0e83ce8c..00000000 --- a/src/ConfigCat.Client.Tests/data/sample_v2.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "stringDefaultCat": { - "Value": "Cat", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [] - }, - "stringIsInDogDefaultCat": { - "Value": "Cat", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 0, - "ComparisonValue": "a@configcat.com, b@configcat.com", - "Value": "Dog" - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 0, - "ComparisonValue": "admin", - "Value": "Dog" - } - ] - }, - "stringIsNotInDogDefaultCat": { - "Value": "Cat", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 1, - "ComparisonValue": "a@configcat.com,b@configcat.com", - "Value": "Dog" - } - ] - }, - "stringContainsDogDefaultCat": { - "Value": "Cat", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 2, - "ComparisonValue": "@configcat.com", - "Value": "Dog" - } - ] - }, - "stringNotContainsDogDefaultCat": { - "Value": "Cat", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 3, - "ComparisonValue": "@configcat.com", - "Value": "Dog" - } - ] - }, - "string25Cat25Dog25Falcon25Horse": { - "Value": "Chicken", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "Cat", - "Percentage": 25 - }, - { - "Order": 1, - "Value": "Dog", - "Percentage": 25 - }, - { - "Order": 2, - "Value": "Falcon", - "Percentage": 25 - }, - { - "Order": 3, - "Value": "Horse", - "Percentage": 25 - } - ], - "RolloutRules": [] - }, - "string75Cat0Dog25Falcon0Horse": { - "Value": "Chicken", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "Cat", - "Percentage": 75 - }, - { - "Order": 1, - "Value": "Dog", - "Percentage": 0 - }, - { - "Order": 2, - "Value": "Falcon", - "Percentage": 25 - }, - { - "Order": 3, - "Value": "Horse", - "Percentage": 0 - } - ], - "RolloutRules": [] - }, - "string25Cat25Dog25Falcon25HorseAdvancedRules": { - "Value": "Chicken", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "Cat", - "Percentage": 25 - }, - { - "Order": 1, - "Value": "Dog", - "Percentage": 25 - }, - { - "Order": 2, - "Value": "Falcon", - "Percentage": 25 - }, - { - "Order": 3, - "Value": "Horse", - "Percentage": 25 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Country", - "Comparator": 0, - "ComparisonValue": "Hungary, United Kingdom", - "Value": "Dolphin" - }, - { - "Order": 1, - "ComparisonAttribute": "Custom1", - "Comparator": 2, - "ComparisonValue": "admi", - "Value": "Lion" - }, - { - "Order": 2, - "ComparisonAttribute": "Email", - "Comparator": 2, - "ComparisonValue": "@configcat.com", - "Value": "Kitten" - } - ] - }, - "boolDefaultTrue": { - "Value": true, - "SettingType": 0, - "RolloutPercentageItems": [], - "RolloutRules": [] - }, - "boolDefaultFalse": { - "Value": false, - "SettingType": 0, - "RolloutPercentageItems": [], - "RolloutRules": [] - }, - "bool30TrueAdvancedRules": { - "Value": true, - "SettingType": 0, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": true, - "Percentage": 30 - }, - { - "Order": 1, - "Value": false, - "Percentage": 70 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 0, - "ComparisonValue": "a@configcat.com, b@configcat.com", - "Value": false - }, - { - "Order": 1, - "ComparisonAttribute": "Country", - "Comparator": 2, - "ComparisonValue": "United", - "Value": false - } - ] - }, - "integer25One25Two25Three25FourAdvancedRules": { - "Value": -1, - "SettingType": 2, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": 1, - "Percentage": 25 - }, - { - "Order": 1, - "Value": 2, - "Percentage": 25 - }, - { - "Order": 2, - "Value": 3, - "Percentage": 25 - }, - { - "Order": 3, - "Value": 4, - "Percentage": 25 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 2, - "ComparisonValue": "@configcat.com", - "Value": 5 - } - ] - }, - "integerDefaultOne": { - "Value": 1, - "SettingType": 2, - "RolloutPercentageItems": [], - "RolloutRules": [] - }, - "doubleDefaultPi": { - "Value": 3.1415, - "SettingType": 3, - "RolloutPercentageItems": [], - "RolloutRules": [] - }, - "double25Pi25E25Gr25Zero": { - "Value": -1.0, - "SettingType": 3, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": 3.1415, - "Percentage": 25 - }, - { - "Order": 1, - "Value": 2.7182, - "Percentage": 25 - }, - { - "Order": 2, - "Value": 1.61803, - "Percentage": 25 - }, - { - "Order": 3, - "Value": 0.0, - "Percentage": 25 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Email", - "Comparator": 2, - "ComparisonValue": "@configcat.com", - "Value": 5.561 - } - ] - }, - "keySampleText": { - "Value": "Cat", - "SettingType": 1, - "RolloutPercentageItems": [ - { - "Order": 0, - "Value": "Falcon", - "Percentage": 50 - }, - { - "Order": 1, - "Value": "Horse", - "Percentage": 50 - } - ], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Country", - "Comparator": 0, - "ComparisonValue": "Hungary,Bahamas", - "Value": "Dog" - }, - { - "Order": 1, - "ComparisonAttribute": "SubscriptionType", - "Comparator": 0, - "ComparisonValue": "unlimited", - "Value": "Lion" - } - ] - }, - "stringUserWithIdentifier": { - "Value": "Dog", - "SettingType": 1, - "RolloutPercentageItems": [], - "RolloutRules": [ - { - "Order": 0, - "ComparisonAttribute": "Identifier", - "Comparator": 2, - "ComparisonValue": "12345", - "Value": "Cat" - } - ] - } -} \ No newline at end of file