forked from appwrite/sdk-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Go118Test.php
28 lines (25 loc) · 927 Bytes
/
Go118Test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
namespace Tests;
class Go118Test extends Base
{
protected string $sdkName = 'go';
protected string $sdkPlatform = 'server';
protected string $sdkLanguage = 'go';
protected string $version = '0.0.1';
protected string $language = 'go';
protected string $class = 'Appwrite\SDK\Language\Go';
protected array $build = [
'mkdir -p tests/tmp/go/src/github.com/repoowner/sdk-for-go',
'cp -Rf tests/sdks/go/* tests/tmp/go/src/github.com/repoowner/sdk-for-go/'
];
protected string $command =
'docker run --network="mockapi" --rm -v $(pwd):/app -w /app golang:1.18 sh -c "cd tests/languages/go/ && ./test.sh"';
protected array $expectedOutput = [
...Base::FOO_RESPONSES,
...Base::BAR_RESPONSES,
...Base::GENERAL_RESPONSES,
...Base::UPLOAD_RESPONSE,
...Base::DOWNLOAD_RESPONSES,
...Base::EXCEPTION_RESPONSES,
];
}