Skip to content

Commit 30aac91

Browse files
committed
fix: tests
1 parent 3c31ab8 commit 30aac91

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

tests/CTS/client/abtesting-v3/parameters.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
11
[
2-
{
3-
"testName": "fallbacks to the alias when region is not given",
4-
"autoCreateClient": false,
5-
"steps": [
6-
{
7-
"type": "createClient",
8-
"parameters": {
9-
"appId": "my-app-id",
10-
"apiKey": "my-api-key"
11-
}
12-
},
13-
{
14-
"type": "method",
15-
"method": "getABTest",
16-
"parameters": {
17-
"id": 123
18-
},
19-
"expected": {
20-
"type": "host",
21-
"match": "analytics.algolia.com"
22-
}
23-
}
24-
]
25-
},
262
{
273
"testName": "uses the correct region",
284
"autoCreateClient": false,

tests/CTS/requests/abtesting-v3/addABTests.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"parameters": {
55
"endAt": "2022-12-31T00:00:00.000Z",
66
"name": "myABTest",
7+
"metrics": [{"name": "myMetric"}],
78
"variants": [
89
{
910
"index": "AB_TEST_1",
@@ -21,6 +22,7 @@
2122
"body": {
2223
"endAt": "2022-12-31T00:00:00.000Z",
2324
"name": "myABTest",
25+
"metrics": [{"name": "myMetric"}],
2426
"variants": [
2527
{
2628
"index": "AB_TEST_1",

tests/CTS/requests/abtesting-v3/getTimeseries.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"id": 42
55
},
66
"request": {
7-
"path": "/3/abtests/42",
7+
"path": "/3/abtests/42/timeseries",
88
"method": "GET"
99
}
1010
}

tests/CTS/requests/abtesting-v3/scheduleABTest.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"endAt": "2022-12-31T00:00:00.000Z",
66
"scheduledAt": "2022-11-31T00:00:00.000Z",
77
"name": "myABTest",
8+
"metrics": [{"name": "myMetric"}],
89
"variants": [
910
{
1011
"index": "AB_TEST_1",
@@ -23,6 +24,7 @@
2324
"endAt": "2022-12-31T00:00:00.000Z",
2425
"scheduledAt": "2022-11-31T00:00:00.000Z",
2526
"name": "myABTest",
27+
"metrics": [{"name": "myMetric"}],
2628
"variants": [
2729
{
2830
"index": "AB_TEST_1",

0 commit comments

Comments
 (0)