Skip to content

Commit 6ece109

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 868fc9a. [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent 868fc9a commit 6ece109

File tree

20 files changed

+98
-77
lines changed

20 files changed

+98
-77
lines changed

tests/output/csharp/src/generated/client/Search.test.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ public async Task ApiTest2()
5151
{
5252
CustomHosts = new List<StatefulHost>
5353
{
54+
new()
55+
{
56+
Scheme = HttpScheme.Http,
57+
Url = "localhost",
58+
Port = 6676,
59+
Up = true,
60+
LastUse = DateTime.UtcNow,
61+
Accept = CallType.Read | CallType.Write,
62+
},
5463
new()
5564
{
5665
Scheme = HttpScheme.Http,
@@ -73,7 +82,7 @@ public async Task ApiTest2()
7382
};
7483
var client = new SearchClient(_config);
7584

76-
var res = await client.CustomGetAsync("1/test/retry");
85+
var res = await client.CustomGetAsync("1/test/retry/Csharp");
7786

7887
JsonAssert.EqualOverrideDefault(
7988
"{\"message\":\"ok test server response\"}",

tests/output/dart/test/client/search_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ void main() {
4747
appId: "test-app-id",
4848
apiKey: "test-api-key",
4949
options: ClientOptions(hosts: [
50+
Host.create(url: 'localhost:6676', scheme: 'http'),
5051
Host.create(url: 'localhost:6677', scheme: 'http'),
5152
Host.create(url: 'localhost:6678', scheme: 'http'),
5253
]));
5354
requester.setOnRequest((request) {});
5455
try {
5556
final res = await client.customGet(
56-
path: "1/test/retry",
57+
path: "1/test/retry/Dart",
5758
);
5859
expectBody(res, """{"message":"ok test server response"}""");
5960
} on InterceptionException catch (_) {

tests/output/go/tests/client/search_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/output/java/src/test/java/com/algolia/client/Search.test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,14 @@ void apiTest2() {
7272
"test-api-key",
7373
withCustomHosts(
7474
Arrays.asList(
75+
new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6676),
7576
new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6677),
7677
new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6678)
7778
),
7879
false
7980
)
8081
);
81-
var res = client.customGet("1/test/retry");
82+
var res = client.customGet("1/test/retry/Java");
8283

8384
assertDoesNotThrow(() ->
8485
JSONAssert.assertEquals("{\"message\":\"ok test server response\"}", json.writeValueAsString(res), JSONCompareMode.STRICT)

tests/output/javascript/src/client/abtesting.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('commonApi', () => {
2424
expect(decodeURIComponent(result.algoliaAgent)).toMatch(
2525
/^Algolia for JavaScript \(\d+\.\d+\.\d+(-?.*)?\)(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*(; Abtesting (\(\d+\.\d+\.\d+(-?.*)?\)))(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*$/
2626
);
27-
});
27+
}, 15000);
2828

2929
test('calls api with default read timeouts', async () => {
3030
const $client = createClient();
@@ -36,7 +36,7 @@ describe('commonApi', () => {
3636
expect(result).toEqual(
3737
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 5000 })
3838
);
39-
});
39+
}, 15000);
4040

4141
test('calls api with default write timeouts', async () => {
4242
const $client = createClient();
@@ -48,7 +48,7 @@ describe('commonApi', () => {
4848
expect(result).toEqual(
4949
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 30000 })
5050
);
51-
});
51+
}, 15000);
5252
});
5353

5454
describe('parameters', () => {
@@ -62,7 +62,7 @@ describe('parameters', () => {
6262
})) as unknown as EchoResponse;
6363

6464
expect(result.host).toEqual('analytics.algolia.com');
65-
});
65+
}, 15000);
6666

6767
test('uses the correct region', async () => {
6868
const $client = abtestingClient('my-app-id', 'my-api-key', 'us', {
@@ -74,7 +74,7 @@ describe('parameters', () => {
7474
})) as unknown as EchoResponse;
7575

7676
expect(result.host).toEqual('analytics.us.algolia.com');
77-
});
77+
}, 15000);
7878

7979
test('throws when incorrect region is given', async () => {
8080
try {
@@ -90,7 +90,7 @@ describe('parameters', () => {
9090
'`region` must be one of the following: de, us'
9191
);
9292
}
93-
});
93+
}, 15000);
9494
});
9595

9696
describe('init', () => {

tests/output/javascript/src/client/analytics.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('commonApi', () => {
2424
expect(decodeURIComponent(result.algoliaAgent)).toMatch(
2525
/^Algolia for JavaScript \(\d+\.\d+\.\d+(-?.*)?\)(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*(; Analytics (\(\d+\.\d+\.\d+(-?.*)?\)))(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*$/
2626
);
27-
});
27+
}, 15000);
2828

2929
test('calls api with default read timeouts', async () => {
3030
const $client = createClient();
@@ -36,7 +36,7 @@ describe('commonApi', () => {
3636
expect(result).toEqual(
3737
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 5000 })
3838
);
39-
});
39+
}, 15000);
4040

4141
test('calls api with default write timeouts', async () => {
4242
const $client = createClient();
@@ -48,7 +48,7 @@ describe('commonApi', () => {
4848
expect(result).toEqual(
4949
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 30000 })
5050
);
51-
});
51+
}, 15000);
5252
});
5353

5454
describe('parameters', () => {
@@ -62,7 +62,7 @@ describe('parameters', () => {
6262
})) as unknown as EchoResponse;
6363

6464
expect(result.host).toEqual('analytics.algolia.com');
65-
});
65+
}, 15000);
6666

6767
test('uses the correct region', async () => {
6868
const $client = analyticsClient('my-app-id', 'my-api-key', 'de', {
@@ -74,7 +74,7 @@ describe('parameters', () => {
7474
})) as unknown as EchoResponse;
7575

7676
expect(result.host).toEqual('analytics.de.algolia.com');
77-
});
77+
}, 15000);
7878

7979
test('throws when incorrect region is given', async () => {
8080
try {
@@ -90,7 +90,7 @@ describe('parameters', () => {
9090
'`region` must be one of the following: de, us'
9191
);
9292
}
93-
});
93+
}, 15000);
9494

9595
test('getAverageClickPosition throws without index', async () => {
9696
const $client = createClient();
@@ -105,7 +105,7 @@ describe('parameters', () => {
105105
'Parameter `index` is required when calling `getClickPositions`.'
106106
);
107107
}
108-
});
108+
}, 15000);
109109
});
110110

111111
describe('init', () => {

tests/output/javascript/src/client/ingestion.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('commonApi', () => {
2424
expect(decodeURIComponent(result.algoliaAgent)).toMatch(
2525
/^Algolia for JavaScript \(\d+\.\d+\.\d+(-?.*)?\)(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*(; Ingestion (\(\d+\.\d+\.\d+(-?.*)?\)))(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*$/
2626
);
27-
});
27+
}, 15000);
2828

2929
test('calls api with default read timeouts', async () => {
3030
const $client = createClient();
@@ -36,7 +36,7 @@ describe('commonApi', () => {
3636
expect(result).toEqual(
3737
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 5000 })
3838
);
39-
});
39+
}, 15000);
4040

4141
test('calls api with default write timeouts', async () => {
4242
const $client = createClient();
@@ -48,7 +48,7 @@ describe('commonApi', () => {
4848
expect(result).toEqual(
4949
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 30000 })
5050
);
51-
});
51+
}, 15000);
5252
});
5353

5454
describe('parameters', () => {
@@ -62,7 +62,7 @@ describe('parameters', () => {
6262
})) as unknown as EchoResponse;
6363

6464
expect(result.host).toEqual('data.us.algolia.com');
65-
});
65+
}, 15000);
6666

6767
test('throws when incorrect region is given', async () => {
6868
try {
@@ -78,7 +78,7 @@ describe('parameters', () => {
7878
'`region` is required and must be one of the following: eu, us'
7979
);
8080
}
81-
});
81+
}, 15000);
8282
});
8383

8484
describe('init', () => {

tests/output/javascript/src/client/insights.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('commonApi', () => {
2424
expect(decodeURIComponent(result.algoliaAgent)).toMatch(
2525
/^Algolia for JavaScript \(\d+\.\d+\.\d+(-?.*)?\)(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*(; Insights (\(\d+\.\d+\.\d+(-?.*)?\)))(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*$/
2626
);
27-
});
27+
}, 15000);
2828

2929
test('calls api with default read timeouts', async () => {
3030
const $client = createClient();
@@ -36,7 +36,7 @@ describe('commonApi', () => {
3636
expect(result).toEqual(
3737
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 5000 })
3838
);
39-
});
39+
}, 15000);
4040

4141
test('calls api with default write timeouts', async () => {
4242
const $client = createClient();
@@ -48,7 +48,7 @@ describe('commonApi', () => {
4848
expect(result).toEqual(
4949
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 30000 })
5050
);
51-
});
51+
}, 15000);
5252
});
5353

5454
describe('parameters', () => {
@@ -74,7 +74,7 @@ describe('parameters', () => {
7474
})) as unknown as EchoResponse;
7575

7676
expect(result.host).toEqual('insights.algolia.io');
77-
});
77+
}, 15000);
7878

7979
test('uses the correct region', async () => {
8080
const $client = insightsClient('my-app-id', 'my-api-key', 'us', {
@@ -86,7 +86,7 @@ describe('parameters', () => {
8686
})) as unknown as EchoResponse;
8787

8888
expect(result.host).toEqual('insights.us.algolia.io');
89-
});
89+
}, 15000);
9090

9191
test('throws when incorrect region is given', async () => {
9292
try {
@@ -102,7 +102,7 @@ describe('parameters', () => {
102102
'`region` must be one of the following: de, us'
103103
);
104104
}
105-
});
105+
}, 15000);
106106
});
107107

108108
describe('init', () => {

tests/output/javascript/src/client/monitoring.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('commonApi', () => {
2424
expect(decodeURIComponent(result.algoliaAgent)).toMatch(
2525
/^Algolia for JavaScript \(\d+\.\d+\.\d+(-?.*)?\)(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*(; Monitoring (\(\d+\.\d+\.\d+(-?.*)?\)))(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*$/
2626
);
27-
});
27+
}, 15000);
2828

2929
test('calls api with default read timeouts', async () => {
3030
const $client = createClient();
@@ -36,7 +36,7 @@ describe('commonApi', () => {
3636
expect(result).toEqual(
3737
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 5000 })
3838
);
39-
});
39+
}, 15000);
4040

4141
test('calls api with default write timeouts', async () => {
4242
const $client = createClient();
@@ -48,7 +48,7 @@ describe('commonApi', () => {
4848
expect(result).toEqual(
4949
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 30000 })
5050
);
51-
});
51+
}, 15000);
5252
});
5353

5454
describe('parameters', () => {
@@ -62,7 +62,7 @@ describe('parameters', () => {
6262
})) as unknown as EchoResponse;
6363

6464
expect(result.host).toEqual('status.algolia.com');
65-
});
65+
}, 15000);
6666
});
6767

6868
describe('init', () => {

tests/output/javascript/src/client/personalization.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('commonApi', () => {
2626
expect(decodeURIComponent(result.algoliaAgent)).toMatch(
2727
/^Algolia for JavaScript \(\d+\.\d+\.\d+(-?.*)?\)(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*(; Personalization (\(\d+\.\d+\.\d+(-?.*)?\)))(; [a-zA-Z. ]+ (\(\d+((\.\d+)?\.\d+)?(-?.*)?\))?)*$/
2828
);
29-
});
29+
}, 15000);
3030

3131
test('calls api with default read timeouts', async () => {
3232
const $client = createClient();
@@ -38,7 +38,7 @@ describe('commonApi', () => {
3838
expect(result).toEqual(
3939
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 5000 })
4040
);
41-
});
41+
}, 15000);
4242

4343
test('calls api with default write timeouts', async () => {
4444
const $client = createClient();
@@ -50,7 +50,7 @@ describe('commonApi', () => {
5050
expect(result).toEqual(
5151
expect.objectContaining({ connectTimeout: 2000, responseTimeout: 30000 })
5252
);
53-
});
53+
}, 15000);
5454
});
5555

5656
describe('parameters', () => {
@@ -65,7 +65,7 @@ describe('parameters', () => {
6565
'`region` is required and must be one of the following: eu, us'
6666
);
6767
}
68-
});
68+
}, 15000);
6969

7070
test('throws when incorrect region is given', async () => {
7171
try {
@@ -81,13 +81,13 @@ describe('parameters', () => {
8181
'`region` is required and must be one of the following: eu, us'
8282
);
8383
}
84-
});
84+
}, 15000);
8585

8686
test('does not throw when region is given', async () => {
8787
const $client = personalizationClient('my-app-id', 'my-api-key', 'us', {
8888
requester: echoRequester(),
8989
});
90-
});
90+
}, 15000);
9191
});
9292

9393
describe('init', () => {

0 commit comments

Comments
 (0)