@unleash/client-specification
Advanced tools
Comparing version 5.1.3 to 5.1.4
{ | ||
"name": "@unleash/client-specification", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "A collection of test specifications to guide client implementations in various languages", | ||
@@ -22,5 +22,5 @@ "scripts": { | ||
"chalk": "4.1.2", | ||
"joi": "17.11.0", | ||
"joi": "17.12.0", | ||
"murmurhash3js": "3.0.1" | ||
} | ||
} |
@@ -220,2 +220,37 @@ { | ||
] | ||
}, | ||
{ | ||
"name": "Feature.strategy.variants.stickiness", | ||
"description": "Strategy variants with stickiness inherited from the strategy", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "flexibleRollout", | ||
"parameters": { | ||
"rollout": "100", | ||
"stickiness": "clientId", | ||
"groupId": "a" | ||
}, | ||
"variants": [ | ||
{ | ||
"name": "variantNameA", | ||
"weight": 1, | ||
"payload": { | ||
"type": "string", | ||
"value": "variantValueA" | ||
} | ||
}, | ||
{ | ||
"name": "variantNameB", | ||
"weight": 1, | ||
"payload": { | ||
"type": "string", | ||
"value": "variantValueB" | ||
} | ||
} | ||
], | ||
"constraints": [] | ||
} | ||
], | ||
"variants": [] | ||
} | ||
@@ -356,4 +391,40 @@ ] | ||
} | ||
}, | ||
{ | ||
"description": "Feature.strategy.variants.stickiness should inherit stickiness from the strategy - first variant", | ||
"context": { | ||
"properties": { | ||
"clientId": "1" | ||
} | ||
}, | ||
"toggleName": "Feature.strategy.variants.stickiness", | ||
"expectedResult": { | ||
"name": "variantNameA", | ||
"payload": { | ||
"type": "string", | ||
"value": "variantValueA" | ||
}, | ||
"enabled": true, | ||
"feature_enabled": true | ||
} | ||
}, | ||
{ | ||
"description": "Feature.strategy.variants.stickiness should inherit stickiness from the strategy - second variant", | ||
"context": { | ||
"properties": { | ||
"clientId": "2" | ||
} | ||
}, | ||
"toggleName": "Feature.strategy.variants.stickiness", | ||
"expectedResult": { | ||
"name": "variantNameB", | ||
"payload": { | ||
"type": "string", | ||
"value": "variantValueB" | ||
}, | ||
"enabled": true, | ||
"feature_enabled": true | ||
} | ||
} | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172447
5065