Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tests.unit.test_policy.TestPolicy: test_from_pb_empty failed #262

Closed
@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 542737d
buildURL: Build Status, Sponge
status: failed

Test output
self = 
def test_from_pb_empty(self):
    from google.iam.v1 import policy_pb2

    empty = frozenset()
    message = policy_pb2.Policy()
    klass = self._get_target_class()
    policy = klass.from_pb(message)
    self.assertEqual(policy.etag, b"")
    self.assertEqual(policy.version, 0)
    self.assertEqual(policy.bigtable_admins, empty)
    self.assertEqual(policy.bigtable_readers, empty)
    self.assertEqual(policy.bigtable_users, empty)
    self.assertEqual(policy.bigtable_viewers, empty)
  self.assertEqual(len(policy), 0)

E AssertionError: 4 != 0

tests/unit/test_policy.py:103: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigtableIssues related to the googleapis/python-bigtable API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions