-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Storage): Add retry conformance tests (#5637)
* feat(Storage): Add contextual retry capability. * feat(Storage): Add retry conformance tests.
- Loading branch information
1 parent
fa1e622
commit a8211f2
Showing
20 changed files
with
2,366 additions
and
70 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
.github/workflows/storage-emulator-retry-conformance-tests.yaml
This file contains 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,40 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'Storage/**' | ||
- '.github/workflows/storage-emulator-retry-conformance-tests.yaml' | ||
pull_request: | ||
paths: | ||
- 'Storage/**' | ||
- '.github/workflows/storage-emulator-retry-conformance-tests.yaml' | ||
name: Run Storage Retry Conformance Tests With Emulator | ||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
emulator: | ||
image: gcr.io/cloud-devrel-public-resources/storage-testbench:v0.35.0 | ||
ports: | ||
- 9000:9000 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
|
||
- name: Install dependencies | ||
run: | | ||
composer update --prefer-dist --no-interaction --no-suggest | ||
- name: Run storage retry conformance tests | ||
run: | | ||
vendor/bin/phpunit -c Storage/phpunit-conformance.xml.dist | ||
env: | ||
STORAGE_EMULATOR_HOST: http://localhost:9000 |
This file contains 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 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 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 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 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 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 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 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 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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
<exclude> | ||
<directory suffix=".php">src/V[!a-zA-Z]*</directory> | ||
</exclude> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Conformance Test Suite"> | ||
<directory>tests/Conformance</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
Oops, something went wrong.