Skip to content

Commit

Permalink
chore: generated code for commit 0e13b69. [skip ci]
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
  • Loading branch information
algolia-bot and millotp committed Jul 22, 2024
1 parent 0e13b69 commit 3855f87
Show file tree
Hide file tree
Showing 20 changed files with 110 additions and 110 deletions.
2 changes: 1 addition & 1 deletion tests/output/csharp/src/generated/benchmark/Search.test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task BenchmarkTest0()
new SearchQuery(
new SearchForHits
{
IndexName = "cts_e2e_benchmark_search_Csharp",
IndexName = "cts_e2e_benchmark_search_csharp",
Query = "iphone 15 pro max 512gb",
HitsPerPage = 50,
}
Expand Down
22 changes: 11 additions & 11 deletions tests/output/csharp/src/generated/client/Search.test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public async Task ApiTest2()
};
var client = new SearchClient(_config);

var res = await client.CustomGetAsync("1/test/retry/Csharp");
var res = await client.CustomGetAsync("1/test/retry/csharp");

JsonAssert.EqualOverrideDefault(
"{\"message\":\"ok test server response\"}",
Expand Down Expand Up @@ -234,7 +234,7 @@ public async Task HelpersTest2()
var client = new SearchClient(_config);

var res = await client.ReplaceAllObjectsAsync(
"cts_e2e_replace_all_objects_Csharp",
"cts_e2e_replace_all_objects_csharp",
new List<Object>
{
new Dictionary<string, string> { { "objectID", "1" }, { "name", "Adam" } },
Expand Down Expand Up @@ -279,7 +279,7 @@ public async Task HelpersTest3()
var client = new SearchClient(_config);

var res = await client.SaveObjectsAsync(
"cts_e2e_saveObjects_Csharp",
"cts_e2e_saveObjects_csharp",
new List<Object>
{
new Dictionary<string, string> { { "objectID", "1" }, { "name", "Adam" } },
Expand Down Expand Up @@ -315,7 +315,7 @@ public async Task HelpersTest4()
var client = new SearchClient(_config);

var res = await client.PartialUpdateObjectsAsync(
"cts_e2e_partialUpdateObjects_Csharp",
"cts_e2e_partialUpdateObjects_csharp",
new List<Object>
{
new Dictionary<string, string> { { "objectID", "1" }, { "name", "Adam" } },
Expand Down Expand Up @@ -352,7 +352,7 @@ public async Task HelpersTest5()
var client = new SearchClient(_config);

var res = await client.PartialUpdateObjectsAsync(
"cts_e2e_partialUpdateObjects_Csharp",
"cts_e2e_partialUpdateObjects_csharp",
new List<Object>
{
new Dictionary<string, string> { { "objectID", "3" }, { "name", "Cyril" } },
Expand Down Expand Up @@ -389,7 +389,7 @@ public async Task HelpersTest6()
var client = new SearchClient(_config);

var res = await client.DeleteObjectsAsync(
"cts_e2e_deleteObjects_Csharp",
"cts_e2e_deleteObjects_csharp",
new List<string> { "1", "2" }
);

Expand Down Expand Up @@ -421,12 +421,12 @@ public async Task HelpersTest7()
var client = new SearchClient(_config);

var res = await client.WaitForApiKeyAsync(
"api-key-add-operation-test-Csharp",
"api-key-add-operation-test-csharp",
Enum.Parse<ApiKeyOperation>("Add")
);

JsonAssert.EqualOverrideDefault(
"{\"value\":\"api-key-add-operation-test-Csharp\",\"description\":\"my new api key\",\"acl\":[\"search\",\"addObject\"],\"validity\":300,\"maxQueriesPerIPPerHour\":100,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}",
"{\"value\":\"api-key-add-operation-test-csharp\",\"description\":\"my new api key\",\"acl\":[\"search\",\"addObject\"],\"validity\":300,\"maxQueriesPerIPPerHour\":100,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}",
JsonSerializer.Serialize(res, JsonConfig.Options),
new JsonDiffConfig(false)
);
Expand All @@ -453,7 +453,7 @@ public async Task HelpersTest8()
var client = new SearchClient(_config);

var res = await client.WaitForApiKeyAsync(
"api-key-update-operation-test-Csharp",
"api-key-update-operation-test-csharp",
Enum.Parse<ApiKeyOperation>("Update"),
new ApiKey
{
Expand All @@ -473,7 +473,7 @@ public async Task HelpersTest8()
);

JsonAssert.EqualOverrideDefault(
"{\"value\":\"api-key-update-operation-test-Csharp\",\"description\":\"my updated api key\",\"acl\":[\"search\",\"addObject\",\"deleteObject\"],\"indexes\":[\"Movies\",\"Books\"],\"referers\":[\"*google.com\",\"*algolia.com\"],\"validity\":305,\"maxQueriesPerIPPerHour\":95,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}",
"{\"value\":\"api-key-update-operation-test-csharp\",\"description\":\"my updated api key\",\"acl\":[\"search\",\"addObject\",\"deleteObject\"],\"indexes\":[\"Movies\",\"Books\"],\"referers\":[\"*google.com\",\"*algolia.com\"],\"validity\":305,\"maxQueriesPerIPPerHour\":95,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}",
JsonSerializer.Serialize(res, JsonConfig.Options),
new JsonDiffConfig(false)
);
Expand All @@ -500,7 +500,7 @@ public async Task HelpersTest9()
var client = new SearchClient(_config);

var res = await client.WaitForApiKeyAsync(
"api-key-delete-operation-test-Csharp",
"api-key-delete-operation-test-csharp",
Enum.Parse<ApiKeyOperation>("Delete")
);

Expand Down
2 changes: 1 addition & 1 deletion tests/output/dart/test/client/search_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void main() {
requester.setOnRequest((request) {});
try {
final res = await client.customGet(
path: "1/test/retry/Dart",
path: "1/test/retry/dart",
);
expectBody(res, """{"message":"ok test server response"}""");
} on InterceptionException catch (_) {
Expand Down
2 changes: 1 addition & 1 deletion tests/output/go/tests/benchmark/search_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions tests/output/go/tests/client/search_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void benchmarkTest0() {
new SearchMethodParams()
.setRequests(
List.of(
new SearchForHits().setIndexName("cts_e2e_benchmark_search_Java").setQuery("iphone 15 pro max 512gb").setHitsPerPage(50)
new SearchForHits().setIndexName("cts_e2e_benchmark_search_java").setQuery("iphone 15 pro max 512gb").setHitsPerPage(50)
)
),
Hit.class
Expand Down
22 changes: 11 additions & 11 deletions tests/output/java/src/test/java/com/algolia/client/Search.test.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void apiTest2() {
false
)
);
var res = client.customGet("1/test/retry/Java");
var res = client.customGet("1/test/retry/java");

assertDoesNotThrow(() ->
JSONAssert.assertEquals("{\"message\":\"ok test server response\"}", json.writeValueAsString(res), JSONCompareMode.STRICT)
Expand Down Expand Up @@ -213,7 +213,7 @@ void helpersTest2() {
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6679)), false)
);
var res = client.replaceAllObjects(
"cts_e2e_replace_all_objects_Java",
"cts_e2e_replace_all_objects_java",
List.of(
Map.of("objectID", "1", "name", "Adam"),
Map.of("objectID", "2", "name", "Benoit"),
Expand Down Expand Up @@ -249,7 +249,7 @@ void helpersTest3() {
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6680)), false)
);
var res = client.saveObjects(
"cts_e2e_saveObjects_Java",
"cts_e2e_saveObjects_java",
List.of(Map.of("objectID", "1", "name", "Adam"), Map.of("objectID", "2", "name", "Benoit"))
);

Expand All @@ -269,7 +269,7 @@ void helpersTest4() {
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6680)), false)
);
var res = client.partialUpdateObjects(
"cts_e2e_partialUpdateObjects_Java",
"cts_e2e_partialUpdateObjects_java",
List.of(Map.of("objectID", "1", "name", "Adam"), Map.of("objectID", "2", "name", "Benoit")),
true
);
Expand All @@ -290,7 +290,7 @@ void helpersTest5() {
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6680)), false)
);
var res = client.partialUpdateObjects(
"cts_e2e_partialUpdateObjects_Java",
"cts_e2e_partialUpdateObjects_java",
List.of(Map.of("objectID", "3", "name", "Cyril"), Map.of("objectID", "4", "name", "David")),
false
);
Expand All @@ -310,7 +310,7 @@ void helpersTest6() {
"test-api-key",
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6680)), false)
);
var res = client.deleteObjects("cts_e2e_deleteObjects_Java", List.of("1", "2"));
var res = client.deleteObjects("cts_e2e_deleteObjects_java", List.of("1", "2"));

assertDoesNotThrow(() ->
JSONAssert.assertEquals("[{\"taskID\":666,\"objectIDs\":[\"1\",\"2\"]}]", json.writeValueAsString(res), JSONCompareMode.STRICT)
Expand All @@ -327,11 +327,11 @@ void helpersTest7() {
"test-api-key",
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6681)), false)
);
var res = client.waitForApiKey("api-key-add-operation-test-Java", ApiKeyOperation.ADD);
var res = client.waitForApiKey("api-key-add-operation-test-java", ApiKeyOperation.ADD);

assertDoesNotThrow(() ->
JSONAssert.assertEquals(
"{\"value\":\"api-key-add-operation-test-Java\",\"description\":\"my new api" +
"{\"value\":\"api-key-add-operation-test-java\",\"description\":\"my new api" +
" key\",\"acl\":[\"search\",\"addObject\"],\"validity\":300,\"maxQueriesPerIPPerHour\":100,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}",
json.writeValueAsString(res),
JSONCompareMode.STRICT
Expand All @@ -350,7 +350,7 @@ void helpersTest8() {
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6681)), false)
);
var res = client.waitForApiKey(
"api-key-update-operation-test-Java",
"api-key-update-operation-test-java",
ApiKeyOperation.UPDATE,
new ApiKey()
.setDescription("my updated api key")
Expand All @@ -364,7 +364,7 @@ void helpersTest8() {

assertDoesNotThrow(() ->
JSONAssert.assertEquals(
"{\"value\":\"api-key-update-operation-test-Java\",\"description\":\"my" +
"{\"value\":\"api-key-update-operation-test-java\",\"description\":\"my" +
" updated api" +
" key\",\"acl\":[\"search\",\"addObject\",\"deleteObject\"],\"indexes\":[\"Movies\",\"Books\"],\"referers\":[\"*google.com\",\"*algolia.com\"],\"validity\":305,\"maxQueriesPerIPPerHour\":95,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}",
json.writeValueAsString(res),
Expand All @@ -383,7 +383,7 @@ void helpersTest9() {
"test-api-key",
withCustomHosts(Arrays.asList(new Host("localhost", EnumSet.of(CallType.READ, CallType.WRITE), "http", 6681)), false)
);
var res = client.waitForApiKey("api-key-delete-operation-test-Java", ApiKeyOperation.DELETE);
var res = client.waitForApiKey("api-key-delete-operation-test-java", ApiKeyOperation.DELETE);

assertEquals(null, res);
});
Expand Down
2 changes: 1 addition & 1 deletion tests/output/javascript/src/benchmark/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('benchmark', () => {
const result = await client.search({
requests: [
{
indexName: 'cts_e2e_benchmark_search_JavaScript',
indexName: 'cts_e2e_benchmark_search_javascript',
query: 'iphone 15 pro max 512gb',
hitsPerPage: 50,
},
Expand Down
Loading

0 comments on commit 3855f87

Please sign in to comment.