-
Notifications
You must be signed in to change notification settings - Fork 1k
feat(spanner): Added sample for copyBackup #1568
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
feat(spanner): Added sample for copyBackup #1568
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
bshaffer
left a comment
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.
Looks great! I'll hold off approval until it's ready to merge and the tests pass.
|
This should be ready to merge once googleapis/google-cloud-php#4732 is merged and released. |
## Goal Implement four samples: ``` storage_print_pubsub_bucket_notification storage_create_bucket_notifications storage_delete_bucket_notification storage_list_bucket_notifications ``` ## Change Summary 1. Added a new sample for `storage_create_bucket_notifications` 2. Added tests for the sample in `BucketNotificationsTest`, will support all `storage_*_bucket_notifications` samples 3. Added pubsub in composer, otherwise a clean test run will fail. ## Tests ``` ➜ storage git:(storage_bucket_notifications) ✗ XDEBUG_MODE=coverage ../testing/vendor/bin/phpunit --verbose -c phpunit.xml.dist test/BucketNotificationsTest.php PHPUnit 8.5.23 by Sebastian Bergmann and contributors. Runtime: PHP 7.4.28 with Xdebug 3.1.2 Configuration: /usr/local/google/home/vishwarajanand/github/php-docs-samples/storage/phpunit.xml.dist .... 4 / 4 (100%) Time: 1.66 minutes, Memory: 14.00 MB OK (4 tests, 7 assertions) Generating code coverage report in Clover XML format ... done [247 ms] ➜ storage git:(storage_bucket_notifications) ``` > Squashed following commits: * untested create bucket notifications sample * Sample for creating notification * Tests ready * nit fix removed redundant null check * Addressing PR comments * Fixed filename to match region tag * nit fix added a new line after print statements * Added new samples * Print notification sample and test * Added tests for delete bucket notifications sample * feat: [Storage] complex upload download samples (#1606) * feat(spanner): sample for copyBackup (#1568) * nit fix linting errors * Fixing indentation in composer.json * nit fix linting errors * nit fix minor indentation issues Co-authored-by: Saransh Dhingra <[email protected]>
No description provided.