This repository was archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
tests.unit.gapic.privateca_v1beta1.test_certificate_authority_service: test_list_certificate_authorities_pager failed #237
Copy link
Copy link
Closed
Labels
api: security-privatecaIssues related to the googleapis/python-security-private-ca API.Issues related to the googleapis/python-security-private-ca API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.An issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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: 1857c31
buildURL: Build Status, Sponge
status: failed
Test output
transport_name = 'grpc'def test_list_certificate_authorities_pager(transport_name: str = "grpc"): client = CertificateAuthorityServiceClient( credentials=ga_credentials.AnonymousCredentials, transport=transport_name, ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( type(client.transport.list_certificate_authorities), "__call__" ) as call: # Set the response to a series of pages. call.side_effect = ( service.ListCertificateAuthoritiesResponse( certificate_authorities=[ resources.CertificateAuthority(), resources.CertificateAuthority(), resources.CertificateAuthority(), ], next_page_token="abc", ), service.ListCertificateAuthoritiesResponse( certificate_authorities=[], next_page_token="def", ), service.ListCertificateAuthoritiesResponse( certificate_authorities=[ resources.CertificateAuthority(), ], next_page_token="ghi", ), service.ListCertificateAuthoritiesResponse( certificate_authorities=[ resources.CertificateAuthority(), resources.CertificateAuthority(), ], ), RuntimeError, ) metadata = () metadata = tuple(metadata) + ( gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)), ) pager = client.list_certificate_authorities(request={}) assert pager._metadata == metadata results = list(pager) assert len(results) == 6assert all(isinstance(i, resources.CertificateAuthority) for i in results)E assert False
E + where False = all(<generator object test_list_certificate_authorities_pager.. at 0x7fc918fd18c0>)tests/unit/gapic/privateca_v1beta1/test_certificate_authority_service.py:3971: AssertionError
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: security-privatecaIssues related to the googleapis/python-security-private-ca API.Issues related to the googleapis/python-security-private-ca API.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.An issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.