Uh oh!
There was an error while loading. Please reload this page.
Add system tests for bucket notifications. - #4021
Conversation
| session.install('../test_utils/') | ||
| session.install('.') | ||
| session.install('../pubsub') | ||
| session.install('-e', '.') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| with Config.CLIENT.batch(): | ||
| for bucket_name in self.case_buckets_to_delete: | ||
| bucket = Config.CLIENT.bucket(bucket_name) | ||
| retry_429(bucket.delete)() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| self.assertEqual(len(notifications), 1) | ||
| self.assertEqual(notifications[0].topic_name, self.TOPIC_NAME) | ||
| finally: | ||
| notification.delete() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| self.assertIsNotNone(notification.id) | ||
| notifications = list(bucket.list_notifications()) | ||
| self.assertEqual(len(notifications), 1) | ||
| self.assertEqual(notifications[0].topic_name, self.TOPIC_NAME) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tseaver
commented
Sep 22, 2017
Branch build with new system tests passes the storage system tests. CircleCI failures are unrelated vision flakiness (#4035) |
9eb9a46 to
352aeedCompareDefault it to 'NONE'.
N.B.: the tests currently fail with a 403.
The back-end uses 'object_name_prefix'.
tseaver
commented
Sep 25, 2017
I rebased the target branch against |
| policy = self.publisher_client.get_iam_policy(self.topic_path) | ||
| binding = policy.bindings.add() | ||
| binding.role = 'roles/pubsub.publisher' | ||
| binding.members.append( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
N.B.: the tests currently fail with a 403:
See
#3956https://github.com/GoogleCloudPlatform/google-cloud-common/issues/231 where I ask for help on that issue.