From 3855f87cb37d098442e7a7aaf39a6288e5f27e89 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Mon, 22 Jul 2024 13:15:26 +0000 Subject: [PATCH] chore: generated code for commit 0e13b695f1cc88aea7103ac5664b678e4efdef41. [skip ci] Co-authored-by: Pierre Millot --- .../src/generated/benchmark/Search.test.cs | 2 +- .../src/generated/client/Search.test.cs | 22 +++++++++---------- .../output/dart/test/client/search_test.dart | 2 +- .../output/go/tests/benchmark/search_test.go | 2 +- tests/output/go/tests/client/search_test.go | 22 +++++++++---------- .../com/algolia/benchmark/Search.test.java | 2 +- .../java/com/algolia/client/Search.test.java | 22 +++++++++---------- .../javascript/src/benchmark/search.test.ts | 2 +- .../javascript/src/client/search.test.ts | 22 +++++++++---------- .../com/algolia/benchmark/SearchTest.kt | 2 +- .../kotlin/com/algolia/client/SearchTest.kt | 22 +++++++++---------- tests/output/php/src/benchmark/SearchTest.php | 2 +- tests/output/php/src/client/SearchTest.php | 22 +++++++++---------- .../python/tests/benchmark/search_test.py | 2 +- .../output/python/tests/client/search_test.py | 22 +++++++++---------- .../output/ruby/test/benchmark/search_test.rb | 2 +- tests/output/ruby/test/client/search_test.rb | 22 +++++++++---------- .../algoliasearch/client/SearchTest.scala | 2 +- .../swift/Tests/benchmark/SearchTests.swift | 2 +- .../swift/Tests/client/SearchTests.swift | 22 +++++++++---------- 20 files changed, 110 insertions(+), 110 deletions(-) diff --git a/tests/output/csharp/src/generated/benchmark/Search.test.cs b/tests/output/csharp/src/generated/benchmark/Search.test.cs index 68e8cf99d2..9d252380cf 100644 --- a/tests/output/csharp/src/generated/benchmark/Search.test.cs +++ b/tests/output/csharp/src/generated/benchmark/Search.test.cs @@ -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, } diff --git a/tests/output/csharp/src/generated/client/Search.test.cs b/tests/output/csharp/src/generated/client/Search.test.cs index ac7075b053..b2156916be 100644 --- a/tests/output/csharp/src/generated/client/Search.test.cs +++ b/tests/output/csharp/src/generated/client/Search.test.cs @@ -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\"}", @@ -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 { new Dictionary { { "objectID", "1" }, { "name", "Adam" } }, @@ -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 { new Dictionary { { "objectID", "1" }, { "name", "Adam" } }, @@ -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 { new Dictionary { { "objectID", "1" }, { "name", "Adam" } }, @@ -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 { new Dictionary { { "objectID", "3" }, { "name", "Cyril" } }, @@ -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 { "1", "2" } ); @@ -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("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) ); @@ -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("Update"), new ApiKey { @@ -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) ); @@ -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("Delete") ); diff --git a/tests/output/dart/test/client/search_test.dart b/tests/output/dart/test/client/search_test.dart index 8aa96fa0fd..f72d56a57c 100644 --- a/tests/output/dart/test/client/search_test.dart +++ b/tests/output/dart/test/client/search_test.dart @@ -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 (_) { diff --git a/tests/output/go/tests/benchmark/search_test.go b/tests/output/go/tests/benchmark/search_test.go index 3ea4f9abe8..beb897116d 100644 --- a/tests/output/go/tests/benchmark/search_test.go +++ b/tests/output/go/tests/benchmark/search_test.go @@ -50,7 +50,7 @@ func TestSearchbenchmark0(t *testing.T) { search.NewEmptySearchMethodParams().SetRequests( []search.SearchQuery{*search.SearchForHitsAsSearchQuery( - search.NewEmptySearchForHits().SetIndexName("cts_e2e_benchmark_search_Go").SetQuery("iphone 15 pro max 512gb").SetHitsPerPage(50))}), + search.NewEmptySearchForHits().SetIndexName("cts_e2e_benchmark_search_go").SetQuery("iphone 15 pro max 512gb").SetHitsPerPage(50))}), )) require.NoError(t, err) } diff --git a/tests/output/go/tests/client/search_test.go b/tests/output/go/tests/client/search_test.go index 0e3a6d1226..322f4123e6 100644 --- a/tests/output/go/tests/client/search_test.go +++ b/tests/output/go/tests/client/search_test.go @@ -97,7 +97,7 @@ func TestSearchapi2(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.CustomGet(client.NewApiCustomGetRequest( - "1/test/retry/Go", + "1/test/retry/go", )) require.NoError(t, err) rawBody, err := json.Marshal(res) @@ -218,7 +218,7 @@ func TestSearchhelpers2(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.ReplaceAllObjects( - "cts_e2e_replace_all_objects_Go", + "cts_e2e_replace_all_objects_go", []map[string]any{map[string]any{"objectID": "1", "name": "Adam"}, map[string]any{"objectID": "2", "name": "Benoit"}, map[string]any{"objectID": "3", "name": "Cyril"}, map[string]any{"objectID": "4", "name": "David"}, map[string]any{"objectID": "5", "name": "Eva"}, map[string]any{"objectID": "6", "name": "Fiona"}, map[string]any{"objectID": "7", "name": "Gael"}, map[string]any{"objectID": "8", "name": "Hugo"}, map[string]any{"objectID": "9", "name": "Igor"}, map[string]any{"objectID": "10", "name": "Julia"}}, search.WithBatchSize(3)) require.NoError(t, err) @@ -245,7 +245,7 @@ func TestSearchhelpers3(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.SaveObjects( - "cts_e2e_saveObjects_Go", + "cts_e2e_saveObjects_go", []map[string]any{map[string]any{"objectID": "1", "name": "Adam"}, map[string]any{"objectID": "2", "name": "Benoit"}}, ) require.NoError(t, err) @@ -272,7 +272,7 @@ func TestSearchhelpers4(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.PartialUpdateObjects( - "cts_e2e_partialUpdateObjects_Go", + "cts_e2e_partialUpdateObjects_go", []map[string]any{map[string]any{"objectID": "1", "name": "Adam"}, map[string]any{"objectID": "2", "name": "Benoit"}}, search.WithCreateIfNotExists(true)) require.NoError(t, err) @@ -299,7 +299,7 @@ func TestSearchhelpers5(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.PartialUpdateObjects( - "cts_e2e_partialUpdateObjects_Go", + "cts_e2e_partialUpdateObjects_go", []map[string]any{map[string]any{"objectID": "3", "name": "Cyril"}, map[string]any{"objectID": "4", "name": "David"}}, search.WithCreateIfNotExists(false)) require.NoError(t, err) @@ -326,7 +326,7 @@ func TestSearchhelpers6(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.DeleteObjects( - "cts_e2e_deleteObjects_Go", + "cts_e2e_deleteObjects_go", []string{"1", "2"}, ) require.NoError(t, err) @@ -353,12 +353,12 @@ func TestSearchhelpers7(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.WaitForApiKey( - "api-key-add-operation-test-Go", search.ApiKeyOperation("add"), + "api-key-add-operation-test-go", search.ApiKeyOperation("add"), ) require.NoError(t, err) rawBody, err := json.Marshal(res) require.NoError(t, err) - require.JSONEq(t, `{"value":"api-key-add-operation-test-Go","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}`, string(rawBody)) + require.JSONEq(t, `{"value":"api-key-add-operation-test-go","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}`, string(rawBody)) } // wait for api key - update @@ -379,7 +379,7 @@ func TestSearchhelpers8(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.WaitForApiKey( - "api-key-update-operation-test-Go", search.ApiKeyOperation("update"), + "api-key-update-operation-test-go", search.ApiKeyOperation("update"), search.WithApiKey( search.NewEmptyApiKey().SetDescription("my updated api key").SetAcl( []search.Acl{search.Acl("search"), search.Acl("addObject"), search.Acl("deleteObject")}).SetIndexes( @@ -388,7 +388,7 @@ func TestSearchhelpers8(t *testing.T) { require.NoError(t, err) rawBody, err := json.Marshal(res) require.NoError(t, err) - require.JSONEq(t, `{"value":"api-key-update-operation-test-Go","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}`, string(rawBody)) + require.JSONEq(t, `{"value":"api-key-update-operation-test-go","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}`, string(rawBody)) } // wait for api key - delete @@ -409,7 +409,7 @@ func TestSearchhelpers9(t *testing.T) { client, err = search.NewClientWithConfig(cfg) require.NoError(t, err) res, err := client.WaitForApiKey( - "api-key-delete-operation-test-Go", search.ApiKeyOperation("delete"), + "api-key-delete-operation-test-go", search.ApiKeyOperation("delete"), ) require.NoError(t, err) require.Nil(t, res) diff --git a/tests/output/java/src/test/java/com/algolia/benchmark/Search.test.java b/tests/output/java/src/test/java/com/algolia/benchmark/Search.test.java index 80ea3e73dd..e116cb116f 100644 --- a/tests/output/java/src/test/java/com/algolia/benchmark/Search.test.java +++ b/tests/output/java/src/test/java/com/algolia/benchmark/Search.test.java @@ -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 diff --git a/tests/output/java/src/test/java/com/algolia/client/Search.test.java b/tests/output/java/src/test/java/com/algolia/client/Search.test.java index 0ed9093629..4f870b00da 100644 --- a/tests/output/java/src/test/java/com/algolia/client/Search.test.java +++ b/tests/output/java/src/test/java/com/algolia/client/Search.test.java @@ -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) @@ -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"), @@ -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")) ); @@ -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 ); @@ -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 ); @@ -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) @@ -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 @@ -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") @@ -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), @@ -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); }); diff --git a/tests/output/javascript/src/benchmark/search.test.ts b/tests/output/javascript/src/benchmark/search.test.ts index 8455a3a909..6419cb22d1 100644 --- a/tests/output/javascript/src/benchmark/search.test.ts +++ b/tests/output/javascript/src/benchmark/search.test.ts @@ -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, }, diff --git a/tests/output/javascript/src/client/search.test.ts b/tests/output/javascript/src/client/search.test.ts index 42a848f7f5..97ec1da6fd 100644 --- a/tests/output/javascript/src/client/search.test.ts +++ b/tests/output/javascript/src/client/search.test.ts @@ -47,7 +47,7 @@ describe('api', () => { ], }); - const result = await client.customGet({ path: '1/test/retry/JavaScript' }); + const result = await client.customGet({ path: '1/test/retry/javascript' }); expect(result).toEqual({ message: 'ok test server response' }); }, 15000); @@ -140,7 +140,7 @@ describe('helpers', () => { }); const result = await client.replaceAllObjects({ - indexName: 'cts_e2e_replace_all_objects_JavaScript', + indexName: 'cts_e2e_replace_all_objects_javascript', objects: [ { objectID: '1', name: 'Adam' }, { objectID: '2', name: 'Benoit' }, @@ -182,7 +182,7 @@ describe('helpers', () => { }); const result = await client.saveObjects({ - indexName: 'cts_e2e_saveObjects_JavaScript', + indexName: 'cts_e2e_saveObjects_javascript', objects: [ { objectID: '1', name: 'Adam' }, { objectID: '2', name: 'Benoit' }, @@ -200,7 +200,7 @@ describe('helpers', () => { }); const result = await client.partialUpdateObjects({ - indexName: 'cts_e2e_partialUpdateObjects_JavaScript', + indexName: 'cts_e2e_partialUpdateObjects_javascript', objects: [ { objectID: '1', name: 'Adam' }, { objectID: '2', name: 'Benoit' }, @@ -219,7 +219,7 @@ describe('helpers', () => { }); const result = await client.partialUpdateObjects({ - indexName: 'cts_e2e_partialUpdateObjects_JavaScript', + indexName: 'cts_e2e_partialUpdateObjects_javascript', objects: [ { objectID: '3', name: 'Cyril' }, { objectID: '4', name: 'David' }, @@ -238,7 +238,7 @@ describe('helpers', () => { }); const result = await client.deleteObjects({ - indexName: 'cts_e2e_deleteObjects_JavaScript', + indexName: 'cts_e2e_deleteObjects_javascript', objectIDs: ['1', '2'], }); @@ -253,12 +253,12 @@ describe('helpers', () => { }); const result = await client.waitForApiKey({ - key: 'api-key-add-operation-test-JavaScript', + key: 'api-key-add-operation-test-javascript', operation: 'add', }); expect(result).toEqual({ - value: 'api-key-add-operation-test-JavaScript', + value: 'api-key-add-operation-test-javascript', description: 'my new api key', acl: ['search', 'addObject'], validity: 300, @@ -276,7 +276,7 @@ describe('helpers', () => { }); const result = await client.waitForApiKey({ - key: 'api-key-update-operation-test-JavaScript', + key: 'api-key-update-operation-test-javascript', operation: 'update', apiKey: { description: 'my updated api key', @@ -290,7 +290,7 @@ describe('helpers', () => { }); expect(result).toEqual({ - value: 'api-key-update-operation-test-JavaScript', + value: 'api-key-update-operation-test-javascript', description: 'my updated api key', acl: ['search', 'addObject', 'deleteObject'], indexes: ['Movies', 'Books'], @@ -310,7 +310,7 @@ describe('helpers', () => { }); const result = await client.waitForApiKey({ - key: 'api-key-delete-operation-test-JavaScript', + key: 'api-key-delete-operation-test-javascript', operation: 'delete', }); diff --git a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/benchmark/SearchTest.kt b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/benchmark/SearchTest.kt index 2aed0db6f7..07ce58ead8 100644 --- a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/benchmark/SearchTest.kt +++ b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/benchmark/SearchTest.kt @@ -24,7 +24,7 @@ class SearchTest { searchMethodParams = SearchMethodParams( requests = listOf( SearchForHits( - indexName = "cts_e2e_benchmark_search_Kotlin", + indexName = "cts_e2e_benchmark_search_kotlin", query = "iphone 15 pro max 512gb", hitsPerPage = 50, ), diff --git a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/client/SearchTest.kt b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/client/SearchTest.kt index 384f024342..db4b1f9a59 100644 --- a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/client/SearchTest.kt +++ b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/client/SearchTest.kt @@ -51,7 +51,7 @@ class SearchTest { client.runTest( call = { customGet( - path = "1/test/retry/Kotlin", + path = "1/test/retry/kotlin", ) }, @@ -194,7 +194,7 @@ class SearchTest { client.runTest( call = { replaceAllObjects( - indexName = "cts_e2e_replace_all_objects_Kotlin", + indexName = "cts_e2e_replace_all_objects_kotlin", objects = listOf( buildJsonObject { put( @@ -317,7 +317,7 @@ class SearchTest { client.runTest( call = { saveObjects( - indexName = "cts_e2e_saveObjects_Kotlin", + indexName = "cts_e2e_saveObjects_kotlin", objects = listOf( buildJsonObject { put( @@ -359,7 +359,7 @@ class SearchTest { client.runTest( call = { partialUpdateObjects( - indexName = "cts_e2e_partialUpdateObjects_Kotlin", + indexName = "cts_e2e_partialUpdateObjects_kotlin", objects = listOf( buildJsonObject { put( @@ -402,7 +402,7 @@ class SearchTest { client.runTest( call = { partialUpdateObjects( - indexName = "cts_e2e_partialUpdateObjects_Kotlin", + indexName = "cts_e2e_partialUpdateObjects_kotlin", objects = listOf( buildJsonObject { put( @@ -445,7 +445,7 @@ class SearchTest { client.runTest( call = { deleteObjects( - indexName = "cts_e2e_deleteObjects_Kotlin", + indexName = "cts_e2e_deleteObjects_kotlin", objectIDs = listOf("1", "2"), ) }, @@ -466,14 +466,14 @@ class SearchTest { client.runTest( call = { waitForApiKey( - key = "api-key-add-operation-test-Kotlin", + key = "api-key-add-operation-test-kotlin", operation = ApiKeyOperation.entries.first { it.value == "add" }, ) }, response = { assertNotNull(it) - val expected = Json.parseToJsonElement("""{"value":"api-key-add-operation-test-Kotlin","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}""") + val expected = Json.parseToJsonElement("""{"value":"api-key-add-operation-test-kotlin","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}""") val actual = Json.encodeToJsonElement(it) areJsonElementsEqual(expected, actual) }, @@ -487,7 +487,7 @@ class SearchTest { client.runTest( call = { waitForApiKey( - key = "api-key-update-operation-test-Kotlin", + key = "api-key-update-operation-test-kotlin", operation = ApiKeyOperation.entries.first { it.value == "update" }, apiKey = ApiKey( description = "my updated api key", @@ -503,7 +503,7 @@ class SearchTest { response = { assertNotNull(it) - val expected = Json.parseToJsonElement("""{"value":"api-key-update-operation-test-Kotlin","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}""") + val expected = Json.parseToJsonElement("""{"value":"api-key-update-operation-test-kotlin","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}""") val actual = Json.encodeToJsonElement(it) areJsonElementsEqual(expected, actual) }, @@ -517,7 +517,7 @@ class SearchTest { client.runTest( call = { waitForApiKey( - key = "api-key-delete-operation-test-Kotlin", + key = "api-key-delete-operation-test-kotlin", operation = ApiKeyOperation.entries.first { it.value == "delete" }, ) }, diff --git a/tests/output/php/src/benchmark/SearchTest.php b/tests/output/php/src/benchmark/SearchTest.php index 32eafdd4f9..141390e78e 100644 --- a/tests/output/php/src/benchmark/SearchTest.php +++ b/tests/output/php/src/benchmark/SearchTest.php @@ -26,7 +26,7 @@ public function test0benchmark() for ($i = 1; $i <= 1000; ++$i) { $res = $client->search( ['requests' => [ - ['indexName' => 'cts_e2e_benchmark_search_PHP', + ['indexName' => 'cts_e2e_benchmark_search_php', 'query' => 'iphone 15 pro max 512gb', 'hitsPerPage' => 50, ], diff --git a/tests/output/php/src/client/SearchTest.php b/tests/output/php/src/client/SearchTest.php index 539d5074d3..b4d5545f9d 100644 --- a/tests/output/php/src/client/SearchTest.php +++ b/tests/output/php/src/client/SearchTest.php @@ -80,7 +80,7 @@ public function test2api() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6676', 'http://localhost:6677', 'http://localhost:6678'])); $res = $client->customGet( - '1/test/retry/PHP', + '1/test/retry/php', ); $this->assertEquals( '{"message":"ok test server response"}', @@ -197,7 +197,7 @@ public function test2helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6679'])); $res = $client->replaceAllObjects( - 'cts_e2e_replace_all_objects_PHP', + 'cts_e2e_replace_all_objects_php', [ ['objectID' => '1', 'name' => 'Adam', @@ -253,7 +253,7 @@ public function test3helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6680'])); $res = $client->saveObjects( - 'cts_e2e_saveObjects_PHP', + 'cts_e2e_saveObjects_php', [ ['objectID' => '1', 'name' => 'Adam', @@ -276,7 +276,7 @@ public function test4helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6680'])); $res = $client->partialUpdateObjects( - 'cts_e2e_partialUpdateObjects_PHP', + 'cts_e2e_partialUpdateObjects_php', [ ['objectID' => '1', 'name' => 'Adam', @@ -300,7 +300,7 @@ public function test5helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6680'])); $res = $client->partialUpdateObjects( - 'cts_e2e_partialUpdateObjects_PHP', + 'cts_e2e_partialUpdateObjects_php', [ ['objectID' => '3', 'name' => 'Cyril', @@ -324,7 +324,7 @@ public function test6helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6680'])); $res = $client->deleteObjects( - 'cts_e2e_deleteObjects_PHP', + 'cts_e2e_deleteObjects_php', [ '1', @@ -343,11 +343,11 @@ public function test7helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6681'])); $res = $client->waitForApiKey( - 'api-key-add-operation-test-PHP', + 'api-key-add-operation-test-php', 'add', ); $this->assertEquals( - '{"value":"api-key-add-operation-test-PHP","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}', + '{"value":"api-key-add-operation-test-php","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}', json_encode($res) ); } @@ -358,7 +358,7 @@ public function test8helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6681'])); $res = $client->waitForApiKey( - 'api-key-update-operation-test-PHP', + 'api-key-update-operation-test-php', 'update', ['description' => 'my updated api key', 'acl' => [ @@ -384,7 +384,7 @@ public function test8helpers() ], ); $this->assertEquals( - '{"value":"api-key-update-operation-test-PHP","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-php","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_encode($res) ); } @@ -395,7 +395,7 @@ public function test9helpers() $client = SearchClient::createWithConfig(SearchConfig::create('test-app-id', 'test-api-key')->setFullHosts(['http://localhost:6681'])); $res = $client->waitForApiKey( - 'api-key-delete-operation-test-PHP', + 'api-key-delete-operation-test-php', 'delete', ); $this->assertNull($res); diff --git a/tests/output/python/tests/benchmark/search_test.py b/tests/output/python/tests/benchmark/search_test.py index bbdcf870f3..8d332d7a15 100644 --- a/tests/output/python/tests/benchmark/search_test.py +++ b/tests/output/python/tests/benchmark/search_test.py @@ -21,7 +21,7 @@ async def test_benchmark_0(self): search_method_params={ "requests": [ { - "indexName": "cts_e2e_benchmark_search_Python", + "indexName": "cts_e2e_benchmark_search_python", "query": "iphone 15 pro max 512gb", "hitsPerPage": 50, }, diff --git a/tests/output/python/tests/client/search_test.py b/tests/output/python/tests/client/search_test.py index c6cc634b9c..dc7b1b5f94 100644 --- a/tests/output/python/tests/client/search_test.py +++ b/tests/output/python/tests/client/search_test.py @@ -60,7 +60,7 @@ async def test_api_2(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.custom_get( - path="1/test/retry/Python", + path="1/test/retry/python", ) assert ( _req @@ -174,7 +174,7 @@ async def test_helpers_2(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.replace_all_objects( - index_name="cts_e2e_replace_all_objects_Python", + index_name="cts_e2e_replace_all_objects_python", objects=[ { "objectID": "1", @@ -240,7 +240,7 @@ async def test_helpers_3(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.save_objects( - index_name="cts_e2e_saveObjects_Python", + index_name="cts_e2e_saveObjects_python", objects=[ { "objectID": "1", @@ -271,7 +271,7 @@ async def test_helpers_4(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.partial_update_objects( - index_name="cts_e2e_partialUpdateObjects_Python", + index_name="cts_e2e_partialUpdateObjects_python", objects=[ { "objectID": "1", @@ -303,7 +303,7 @@ async def test_helpers_5(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.partial_update_objects( - index_name="cts_e2e_partialUpdateObjects_Python", + index_name="cts_e2e_partialUpdateObjects_python", objects=[ { "objectID": "3", @@ -335,7 +335,7 @@ async def test_helpers_6(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.delete_objects( - index_name="cts_e2e_deleteObjects_Python", + index_name="cts_e2e_deleteObjects_python", object_ids=[ "1", "2", @@ -360,7 +360,7 @@ async def test_helpers_7(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.wait_for_api_key( - key="api-key-add-operation-test-Python", + key="api-key-add-operation-test-python", operation="add", ) assert ( @@ -370,7 +370,7 @@ async def test_helpers_7(self): if isinstance(_req, list) else _req.to_dict() ) == loads( - """{"value":"api-key-add-operation-test-Python","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}""" + """{"value":"api-key-add-operation-test-python","description":"my new api key","acl":["search","addObject"],"validity":300,"maxQueriesPerIPPerHour":100,"maxHitsPerQuery":20,"createdAt":1720094400}""" ) async def test_helpers_8(self): @@ -384,7 +384,7 @@ async def test_helpers_8(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.wait_for_api_key( - key="api-key-update-operation-test-Python", + key="api-key-update-operation-test-python", operation="update", api_key={ "description": "my updated api key", @@ -413,7 +413,7 @@ async def test_helpers_8(self): if isinstance(_req, list) else _req.to_dict() ) == loads( - """{"value":"api-key-update-operation-test-Python","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-python","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}""" ) async def test_helpers_9(self): @@ -427,7 +427,7 @@ async def test_helpers_9(self): ) self._client = SearchClient.create_with_config(config=_config) _req = await self._client.wait_for_api_key( - key="api-key-delete-operation-test-Python", + key="api-key-delete-operation-test-python", operation="delete", ) assert _req is None diff --git a/tests/output/ruby/test/benchmark/search_test.rb b/tests/output/ruby/test/benchmark/search_test.rb index b97c66817a..6fc758201c 100644 --- a/tests/output/ruby/test/benchmark/search_test.rb +++ b/tests/output/ruby/test/benchmark/search_test.rb @@ -26,7 +26,7 @@ def test_benchmark0 SearchMethodParams.new( requests: [ SearchForHits.new( - index_name: "cts_e2e_benchmark_search_Ruby", + index_name: "cts_e2e_benchmark_search_ruby", query: "iphone 15 pro max 512gb", hits_per_page: 50 ) diff --git a/tests/output/ruby/test/client/search_test.rb b/tests/output/ruby/test/client/search_test.rb index d7d3808287..47e45400ec 100644 --- a/tests/output/ruby/test/client/search_test.rb +++ b/tests/output/ruby/test/client/search_test.rb @@ -59,7 +59,7 @@ def test_api2 "searchClient" ) ) - req = client.custom_get("1/test/retry/Ruby") + req = client.custom_get("1/test/retry/ruby") assert_equal({:"message" => "ok test server response"}, req.is_a?(Array) ? req.map(&:to_hash) : req.to_hash) end @@ -198,7 +198,7 @@ def test_helpers2 ) ) req = client.replace_all_objects( - "cts_e2e_replace_all_objects_Ruby", + "cts_e2e_replace_all_objects_ruby", [ {objectID: "1", name: "Adam"}, {objectID: "2", name: "Benoit"}, @@ -246,7 +246,7 @@ def test_helpers3 ) ) req = client.save_objects( - "cts_e2e_saveObjects_Ruby", + "cts_e2e_saveObjects_ruby", [{objectID: "1", name: "Adam"}, {objectID: "2", name: "Benoit"}] ) assert_equal([{:"taskID" => 333, :"objectIDs" => ["1", "2"]}], req.is_a?(Array) ? req.map(&:to_hash) : req.to_hash) @@ -270,7 +270,7 @@ def test_helpers4 ) ) req = client.partial_update_objects( - "cts_e2e_partialUpdateObjects_Ruby", + "cts_e2e_partialUpdateObjects_ruby", [{objectID: "1", name: "Adam"}, {objectID: "2", name: "Benoit"}], true ) @@ -295,7 +295,7 @@ def test_helpers5 ) ) req = client.partial_update_objects( - "cts_e2e_partialUpdateObjects_Ruby", + "cts_e2e_partialUpdateObjects_ruby", [{objectID: "3", name: "Cyril"}, {objectID: "4", name: "David"}], false ) @@ -319,7 +319,7 @@ def test_helpers6 "searchClient" ) ) - req = client.delete_objects("cts_e2e_deleteObjects_Ruby", ["1", "2"]) + req = client.delete_objects("cts_e2e_deleteObjects_ruby", ["1", "2"]) assert_equal([{:"taskID" => 666, :"objectIDs" => ["1", "2"]}], req.is_a?(Array) ? req.map(&:to_hash) : req.to_hash) end @@ -340,10 +340,10 @@ def test_helpers7 "searchClient" ) ) - req = client.wait_for_api_key("api-key-add-operation-test-Ruby", "add") + req = client.wait_for_api_key("api-key-add-operation-test-ruby", "add") assert_equal( { - :"value" => "api-key-add-operation-test-Ruby", + :"value" => "api-key-add-operation-test-ruby", :"description" => "my new api key", :"acl" => ["search", "addObject"], :"validity" => 300, @@ -373,7 +373,7 @@ def test_helpers8 ) ) req = client.wait_for_api_key( - "api-key-update-operation-test-Ruby", + "api-key-update-operation-test-ruby", "update", ApiKey.new( description: "my updated api key", @@ -387,7 +387,7 @@ def test_helpers8 ) assert_equal( { - :"value" => "api-key-update-operation-test-Ruby", + :"value" => "api-key-update-operation-test-ruby", :"description" => "my updated api key", :"acl" => ["search", "addObject", "deleteObject"], :"indexes" => ["Movies", "Books"], @@ -418,7 +418,7 @@ def test_helpers9 "searchClient" ) ) - req = client.wait_for_api_key("api-key-delete-operation-test-Ruby", "delete") + req = client.wait_for_api_key("api-key-delete-operation-test-ruby", "delete") assert_nil(req) end diff --git a/tests/output/scala/src/test/scala/algoliasearch/client/SearchTest.scala b/tests/output/scala/src/test/scala/algoliasearch/client/SearchTest.scala index 5270734e3d..250c84a8df 100644 --- a/tests/output/scala/src/test/scala/algoliasearch/client/SearchTest.scala +++ b/tests/output/scala/src/test/scala/algoliasearch/client/SearchTest.scala @@ -79,7 +79,7 @@ class SearchTest extends AnyFunSuite { var res = Await.result( client.customGet[JObject]( - path = "1/test/retry/Scala" + path = "1/test/retry/scala" ), Duration.Inf ) diff --git a/tests/output/swift/Tests/benchmark/SearchTests.swift b/tests/output/swift/Tests/benchmark/SearchTests.swift index bb82e7a30d..866ca1bcbc 100644 --- a/tests/output/swift/Tests/benchmark/SearchTests.swift +++ b/tests/output/swift/Tests/benchmark/SearchTests.swift @@ -24,7 +24,7 @@ final class SearchClientClientBenchmark: XCTestCase { .searchForHits(SearchForHits( query: "iphone 15 pro max 512gb", hitsPerPage: 50, - indexName: "cts_e2e_benchmark_search_Swift" + indexName: "cts_e2e_benchmark_search_swift" )), ])) } diff --git a/tests/output/swift/Tests/client/SearchTests.swift b/tests/output/swift/Tests/client/SearchTests.swift index 709fc53cf5..4f6a69b886 100644 --- a/tests/output/swift/Tests/client/SearchTests.swift +++ b/tests/output/swift/Tests/client/SearchTests.swift @@ -48,7 +48,7 @@ final class SearchClientClientTests: XCTestCase { ) let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) - let response = try await client.customGetWithHTTPInfo(path: "1/test/retry/Swift") + let response = try await client.customGetWithHTTPInfo(path: "1/test/retry/swift") let responseBodyData = try XCTUnwrap(response.bodyData) let responseBodyJSON = try XCTUnwrap(responseBodyData.jsonString) @@ -191,7 +191,7 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.replaceAllObjects( - indexName: "cts_e2e_replace_all_objects_Swift", + indexName: "cts_e2e_replace_all_objects_swift", objects: [ ["objectID": "1", "name": "Adam"], ["objectID": "2", "name": "Benoit"], @@ -228,7 +228,7 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.saveObjects( - indexName: "cts_e2e_saveObjects_Swift", + indexName: "cts_e2e_saveObjects_swift", objects: [["objectID": "1", "name": "Adam"], ["objectID": "2", "name": "Benoit"]] ) @@ -249,7 +249,7 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.partialUpdateObjects( - indexName: "cts_e2e_partialUpdateObjects_Swift", + indexName: "cts_e2e_partialUpdateObjects_swift", objects: [["objectID": "1", "name": "Adam"], ["objectID": "2", "name": "Benoit"]], createIfNotExists: true ) @@ -271,7 +271,7 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.partialUpdateObjects( - indexName: "cts_e2e_partialUpdateObjects_Swift", + indexName: "cts_e2e_partialUpdateObjects_swift", objects: [["objectID": "3", "name": "Cyril"], ["objectID": "4", "name": "David"]], createIfNotExists: false ) @@ -292,7 +292,7 @@ final class SearchClientClientTests: XCTestCase { ) let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) - let response = try await client.deleteObjects(indexName: "cts_e2e_deleteObjects_Swift", objectIDs: ["1", "2"]) + let response = try await client.deleteObjects(indexName: "cts_e2e_deleteObjects_swift", objectIDs: ["1", "2"]) let comparableData = try XCTUnwrap("[{\"taskID\":666,\"objectIDs\":[\"1\",\"2\"]}]".data(using: .utf8)) try XCTLenientAssertEqual( @@ -311,13 +311,13 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.waitForApiKey( - key: "api-key-add-operation-test-Swift", + key: "api-key-add-operation-test-swift", operation: ApiKeyOperation.add ) let comparableData = try XCTUnwrap( - "{\"value\":\"api-key-add-operation-test-Swift\",\"description\":\"my new api key\",\"acl\":[\"search\",\"addObject\"],\"validity\":300,\"maxQueriesPerIPPerHour\":100,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}" + "{\"value\":\"api-key-add-operation-test-swift\",\"description\":\"my new api key\",\"acl\":[\"search\",\"addObject\"],\"validity\":300,\"maxQueriesPerIPPerHour\":100,\"maxHitsPerQuery\":20,\"createdAt\":1720094400}" .data(using: .utf8) ) try XCTLenientAssertEqual( @@ -336,7 +336,7 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.waitForApiKey( - key: "api-key-update-operation-test-Swift", + key: "api-key-update-operation-test-swift", operation: ApiKeyOperation.update, apiKey: ApiKey( acl: [Acl.search, Acl.addObject, Acl.deleteObject], @@ -351,7 +351,7 @@ final class SearchClientClientTests: XCTestCase { let comparableData = try XCTUnwrap( - "{\"value\":\"api-key-update-operation-test-Swift\",\"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-swift\",\"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}" .data(using: .utf8) ) try XCTLenientAssertEqual( @@ -370,7 +370,7 @@ final class SearchClientClientTests: XCTestCase { let transporter = Transporter(configuration: configuration) let client = SearchClient(configuration: configuration, transporter: transporter) let response = try await client.waitForApiKey( - key: "api-key-delete-operation-test-Swift", + key: "api-key-delete-operation-test-swift", operation: ApiKeyOperation.delete )