Skip to content

Conversation

@saranshdhingra
Copy link
Collaborator

No description provided.

@saranshdhingra saranshdhingra added api: spanner Issues related to the Spanner API. samples Issues that are directly related to samples. labels Dec 6, 2021
@saranshdhingra saranshdhingra requested a review from a team as a code owner December 6, 2021 11:49
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 6, 2021
@snippet-bot
Copy link

snippet-bot bot commented Dec 6, 2021

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@saranshdhingra saranshdhingra added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 6, 2021
Copy link
Contributor

@bshaffer bshaffer left a 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.

@saranshdhingra
Copy link
Collaborator Author

This should be ready to merge once googleapis/google-cloud-php#4732 is merged and released.

@saranshdhingra saranshdhingra added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 4, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 4, 2022
@saranshdhingra saranshdhingra removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 5, 2022
@bshaffer bshaffer merged commit 89f7930 into GoogleCloudPlatform:master Apr 5, 2022
vishwarajanand pushed a commit to vishwarajanand/php-docs-samples that referenced this pull request Apr 6, 2022
vishwarajanand added a commit that referenced this pull request Apr 12, 2022
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants