Skip to content

Commit

Permalink
Fix name collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate committed Jun 18, 2024
1 parent 2bd3eb2 commit e51efe0
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion mock-server/app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/android/Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/android/Tests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class ServiceTest {
writeToFile(ex.toString())
}

mock = general.enum(MockType.FIRST)
mock = general.enums(MockType.FIRST)
writeToFile(mock.result)

try {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/apple/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/dart/tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/deno/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/languages/dotnet/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task Test1()
mock = await general.Upload("string", 123, new List<string>() { "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
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/flutter/tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/kotlin/Tests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ServiceTest {
writeToFile(ex.toString())
}

mock = general.enum(MockType.FIRST)
mock = general.enums(MockType.FIRST)
writeToFile(mock.result)

try {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/node/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/php/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/python/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/ruby/tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/swift/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/languages/web/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e51efe0

Please sign in to comment.