Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: combine a variant test with a segment contraint #92

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: combine a variant test with a segment contraint
  • Loading branch information
gastonfournier committed Sep 3, 2024
commit 1c26ca77a2ab884ac44c47b504ee9a6bb47c5dcf
59 changes: 59 additions & 0 deletions specifications/15-global-constraints.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,44 @@
"parameters": {},
"segments": [1]
}
],
"variants": [
{
"name": "blue",
"weight": 25,
"stickiness": "customField",
"payload": {
"type": "string",
"value": "val1"
}
},
{
"name": "red",
"weight": 25,
"stickiness": "customField",
"payload": {
"type": "string",
"value": "val1"
}
},
{
"name": "green",
"weight": 25,
"stickiness": "customField",
"payload": {
"type": "string",
"value": "val1"
}
},
{
"name": "yellow",
"weight": 25,
"stickiness": "customField",
"payload": {
"type": "string",
"value": "val1"
}
}
]
},
{
Expand Down Expand Up @@ -197,5 +235,26 @@
"toggleName": "F9.withSeveralConstraintsAndSegments",
"expectedResult": true
}
],
"variantTests": [
{
"description": "F9.globalSegmentOn and customField=616 yields green",
"context": {
"properties": {
"version": "1.2.2",
"customField": "616"
}
},
"toggleName": "F9.globalSegmentOn",
"expectedResult": {
"name": "green",
"payload": {
"type": "string",
"value": "val1"
},
"enabled": true,
"feature_enabled": true
}
}
]
}
Loading