Skip to content

Commit

Permalink
feat(abtests): add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
febeck committed Jul 11, 2024
1 parent 21619c8 commit f9619b0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/CTS/requests/abtesting/scheduleABTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[
{
"testName": "scheduleABTest with minimal parameters",
"parameters": {
"endAt": "2022-12-31T00:00:00.000Z",
"scheduledAt": "2022-11-31T00:00:00.000Z",
"name": "myABTest",
"variants": [
{
"index": "AB_TEST_1",
"trafficPercentage": 30
},
{
"index": "AB_TEST_2",
"trafficPercentage": 50
}
]
},
"request": {
"path": "/2/abtests",
"method": "POST",
"body": {
"endAt": "2022-12-31T00:00:00.000Z",
"scheduledAt": "2022-11-31T00:00:00.000Z",
"name": "myABTest",
"variants": [
{
"index": "AB_TEST_1",
"trafficPercentage": 30
},
{
"index": "AB_TEST_2",
"trafficPercentage": 50
}
]
}
}
}
]

0 comments on commit f9619b0

Please sign in to comment.