diff --git a/mock-server/app/http.php b/mock-server/app/http.php index 26911f8b6..4c7bdcdeb 100644 --- a/mock-server/app/http.php +++ b/mock-server/app/http.php @@ -495,7 +495,7 @@ ->label('scope', 'public') ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) ->label('sdk.namespace', 'general') - ->label('sdk.method', 'enum') + ->label('sdk.method', 'enums') ->label('sdk.description', 'Mock an enum parameter.') ->label('sdk.mock', true) ->param('mockType', '', new WhiteList(['first', 'second', 'third']), 'Sample enum param') diff --git a/tests/languages/android/Tests.java b/tests/languages/android/Tests.java index 73ed1ee5b..9f68617c5 100644 --- a/tests/languages/android/Tests.java +++ b/tests/languages/android/Tests.java @@ -140,7 +140,7 @@ public void test() throws IOException { writeToFile(ex.toString()); } - general.enum(MockType.FIRST, new CoroutineCallback<>(this::writeMockResult)); + general.enums(MockType.FIRST, new CoroutineCallback<>(this::writeMockResult)); try { general.error400(); diff --git a/tests/languages/android/Tests.kt b/tests/languages/android/Tests.kt index e98ce59d1..9d59b2562 100644 --- a/tests/languages/android/Tests.kt +++ b/tests/languages/android/Tests.kt @@ -135,7 +135,7 @@ class ServiceTest { writeToFile(ex.toString()) } - mock = general.enum(MockType.FIRST) + mock = general.enums(MockType.FIRST) writeToFile(mock.result) try { diff --git a/tests/languages/apple/Tests.swift b/tests/languages/apple/Tests.swift index b7c09c7e4..79997e0b0 100644 --- a/tests/languages/apple/Tests.swift +++ b/tests/languages/apple/Tests.swift @@ -115,7 +115,7 @@ class Tests: XCTestCase { print(error.localizedDescription) } - mock = try await general.xenum(mockType: .first) + mock = try await general.enums(mockType: .first) print(mock.result) do { diff --git a/tests/languages/dart/tests.dart b/tests/languages/dart/tests.dart index 5682307ae..78fdb8d64 100644 --- a/tests/languages/dart/tests.dart +++ b/tests/languages/dart/tests.dart @@ -75,7 +75,7 @@ void main() async { response = await general.upload(x: 'string', y: 123, z: ['string in array'], file: file); print(response.result); - response = await general.xenum(mockType: MockType.first); + response = await general.enums(mockType: MockType.first); print(response.result); try { diff --git a/tests/languages/deno/tests.ts b/tests/languages/deno/tests.ts index 9afe1c747..d8406aeb8 100644 --- a/tests/languages/deno/tests.ts +++ b/tests/languages/deno/tests.ts @@ -110,7 +110,7 @@ async function start() { // @ts-ignore console.log(response.result); - response = await general.enum(appwrite.MockType.First); + response = await general.enums(appwrite.MockType.First); // @ts-ignore console.log(response.result); diff --git a/tests/languages/dotnet/Tests.cs b/tests/languages/dotnet/Tests.cs index 41fa28886..a90cd2341 100644 --- a/tests/languages/dotnet/Tests.cs +++ b/tests/languages/dotnet/Tests.cs @@ -81,7 +81,7 @@ public async Task Test1() mock = await general.Upload("string", 123, new List() { "string in array" }, InputFile.FromStream(info.OpenRead(), "large_file.mp4", "video/mp4")); TestContext.WriteLine(mock.Result); - mock = await general.Enum(MockType.First); + mock = await general.Enums(MockType.First); TestContext.WriteLine(mock.Result); try diff --git a/tests/languages/flutter/tests.dart b/tests/languages/flutter/tests.dart index 2df554ccd..ba198c38a 100644 --- a/tests/languages/flutter/tests.dart +++ b/tests/languages/flutter/tests.dart @@ -102,7 +102,7 @@ void main() async { response = await general.upload(x: 'string', y: 123, z: ['string in array'], file: file); print(response.result); - response = await general.xenum(mockType: MockType.first); + response = await general.enums(mockType: MockType.first); print(response.result); try { diff --git a/tests/languages/kotlin/Tests.kt b/tests/languages/kotlin/Tests.kt index 13044b210..7b6758c7e 100644 --- a/tests/languages/kotlin/Tests.kt +++ b/tests/languages/kotlin/Tests.kt @@ -101,7 +101,7 @@ class ServiceTest { writeToFile(ex.toString()) } - mock = general.enum(MockType.FIRST) + mock = general.enums(MockType.FIRST) writeToFile(mock.result) try { diff --git a/tests/languages/node/test.js b/tests/languages/node/test.js index 8032ce23c..374616989 100644 --- a/tests/languages/node/test.js +++ b/tests/languages/node/test.js @@ -79,7 +79,7 @@ async function start() { response = await general.upload('string', 123, ['string in array'], InputFile.fromBuffer(largeBuffer, 'large_file.mp4')) console.log(response.result); - response = await general.enum(MockType.First); + response = await general.enums(MockType.First); console.log(response.result); try { diff --git a/tests/languages/php/test.php b/tests/languages/php/test.php index f182257b5..7f049f328 100644 --- a/tests/languages/php/test.php +++ b/tests/languages/php/test.php @@ -86,7 +86,7 @@ $response = $general->upload('string', 123, ['string in array'], InputFile::withPath(__DIR__ .'/../../resources/large_file.mp4')); echo "{$response['result']}\n"; -$response = $general->enum(MockType::FIRST()); +$response = $general->enums(MockType::FIRST()); echo "{$response['result']}\n"; try { diff --git a/tests/languages/python/tests.py b/tests/languages/python/tests.py index 789373789..b60e5d426 100644 --- a/tests/languages/python/tests.py +++ b/tests/languages/python/tests.py @@ -75,7 +75,7 @@ response = general.upload('string', 123, ['string in array'], InputFile.from_bytes(data, 'large_file.mp4','video/mp4')) print(response['result']) -response = general.enum(MockType.FIRST) +response = general.enums(MockType.FIRST) print(response['result']) try: diff --git a/tests/languages/ruby/tests.rb b/tests/languages/ruby/tests.rb index ffff2d137..f9c1bbfd5 100644 --- a/tests/languages/ruby/tests.rb +++ b/tests/languages/ruby/tests.rb @@ -83,7 +83,7 @@ puts e end -response = general.enum(mock_type: MockType::FIRST) +response = general.enums(mock_type: MockType::FIRST) puts response.result begin diff --git a/tests/languages/swift/Tests.swift b/tests/languages/swift/Tests.swift index 3c89e6b89..cba87e096 100644 --- a/tests/languages/swift/Tests.swift +++ b/tests/languages/swift/Tests.swift @@ -105,7 +105,7 @@ class Tests: XCTestCase { print(error.localizedDescription) } - mock = try await general.xenum(mockType: .first) + mock = try await general.enums(mockType: .first) print(mock.result) do { diff --git a/tests/languages/web/index.html b/tests/languages/web/index.html index e3fcfe1f5..c396bd360 100644 --- a/tests/languages/web/index.html +++ b/tests/languages/web/index.html @@ -89,7 +89,7 @@ console.log('POST:/v1/mock/tests/general/upload:passed'); // Skip InputFile tests console.log('POST:/v1/mock/tests/general/upload:passed'); // Skip InputFile tests - response = await general.enum(MockType.First); + response = await general.enums(MockType.First); console.log(response.result); try { diff --git a/tests/languages/web/node.js b/tests/languages/web/node.js index 590779735..0a56818fb 100644 --- a/tests/languages/web/node.js +++ b/tests/languages/web/node.js @@ -49,7 +49,7 @@ async function start() { console.log('POST:/v1/mock/tests/general/upload:passed'); // Skip file upload test on Node.js console.log('POST:/v1/mock/tests/general/upload:passed'); // Skip big file upload test on Node.js - response = await general.enum(MockType.First); + response = await general.enums(MockType.First); console.log(response.result); try {