-
Notifications
You must be signed in to change notification settings - Fork 182
feat: better multipart tests #989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
21c6902
feat: specs validation test
loks0n 53442dc
fix: complied -> compiled typo
loks0n 40db59e
feat: to_string and to_json tests for payload
loks0n ae14970
chore: typo
loks0n 5ce29b3
fix: deno, php, ruby, web tests
loks0n 7f2100a
fix: python
loks0n 36c6329
fix: dart, php, deno
loks0n 01a5a79
fix: dart type
loks0n e80b39f
chore: composer update
loks0n 061c943
chore: composer fmt
loks0n da583b6
fix: web
loks0n 09f1445
fix: web
loks0n d4336a4
fix: indentation
loks0n 95887bb
chore: lint
loks0n 700e23e
feat: multipart echo tests
loks0n 59b1572
fix: deno
loks0n 7a6d16e
fix: ruby
loks0n bd53120
fix: python
loks0n 497c6ab
fix: python
loks0n 246f3b5
fix: php
loks0n 76c09f2
fix: php
loks0n 766f420
fix: cli
loks0n d43080b
feat: better error
loks0n 7efc532
fix: web
loks0n d65ac93
fix: ruby
loks0n 462fe32
fix: ruby
loks0n 6637cda
fix: deno
loks0n c56a3fe
fix: deno
loks0n 77984be
fix(ruby): add mime-types dep
loks0n fb4f87f
fix(kotlin): multipart tests
loks0n 0612d4a
fix(ruby): downgrade mime-types
loks0n 6b43960
fix(go): multipart tests
loks0n df0c356
fix(go): multipart tests
loks0n 55ddcd3
fix(deno): multipart test syntax
loks0n a652eba
fix(dart): multipart tests
loks0n 46336ba
fix(dart): multipart tests
loks0n b030e06
test: use tmp for file_copy.png
loks0n e19401e
test: fix tmp path
loks0n 0bd2e39
fix(ruby,python): create dir if not exists payload.tofile
loks0n 4896fa8
fix(ruby): require fileutils
loks0n c122aff
fix(flutter): multipart tests
loks0n b1739b9
fix(dart): fake test
loks0n 155f72f
fix(android): multipart tests
loks0n 0c10b69
fix(deno): fake test
loks0n f930df5
fix(dotnet): path
loks0n 6e58220
fix(kotlin): type
loks0n beda039
fix(kotlin): tests
byawitz a97b595
fix(android): multipart tests
loks0n 4a24baf
Merge branch 'feat-multipart' of https://github.com/appwrite/sdk-gene…
loks0n 8396704
Merge branch 'feat-multipart' of https://github.com/appwrite/sdk-gene…
loks0n 392dc35
Merge branch 'feat-multipart' of https://github.com/appwrite/sdk-gene…
loks0n d9f30e9
Merge branch 'feat-multipart' of https://github.com/appwrite/sdk-gene…
loks0n 734523d
fix(android): multipart tests
loks0n a796ccc
fix(go): compile error
loks0n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ services: | |
mockapi: | ||
container_name: mockapi | ||
ports: | ||
- 8080:80 | ||
- 3175:80 | ||
build: | ||
context: . | ||
args: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Utopia\Fetch\Client; | ||
|
||
class SpecsTest extends TestCase | ||
{ | ||
public function testSpecs() | ||
{ | ||
$specsPath = dirname(__FILE__) . '/resources/spec.json'; | ||
$specs = json_decode(file_get_contents($specsPath), true); | ||
|
||
$client = new Client(); | ||
$client->addHeader('content-type', 'application/json'); | ||
|
||
$response = $client->fetch( | ||
url: 'https://validator.swagger.io/validator/debug', | ||
method: Client::METHOD_POST, | ||
body: $specs | ||
); | ||
|
||
$this->assertEquals(200, $response->getStatusCode(), 'Failed to validate specs: ' . $response->getBody()); | ||
|
||
$body = $response->json(); | ||
$this->assertEmpty($body['schemaValidationMessages'], 'Schema validation failed: ' . json_encode($body['schemaValidationMessages'], JSON_PRETTY_PRINT)); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's annoying, 8080 conflicts with appwrite/appwrite