Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

tests.unit.gapic.iap_v1.test_identity_aware_proxy_admin_service: test_list_tunnel_dest_groups_pager failed #94

Closed
flaky-bot bot opened this issue May 26, 2022 · 1 comment
Labels
api: iap Issues related to the googleapis/python-iap API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented May 26, 2022

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: d3be3d9
buildURL: Build Status, Sponge
status: failed

Test output
transport_name = 'grpc'
def test_list_tunnel_dest_groups_pager(transport_name: str = "grpc"):
    client = IdentityAwareProxyAdminServiceClient(
        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_tunnel_dest_groups), "__call__"
    ) as call:
        # Set the response to a series of pages.
        call.side_effect = (
            service.ListTunnelDestGroupsResponse(
                tunnel_dest_groups=[
                    service.TunnelDestGroup(),
                    service.TunnelDestGroup(),
                    service.TunnelDestGroup(),
                ],
                next_page_token="abc",
            ),
            service.ListTunnelDestGroupsResponse(
                tunnel_dest_groups=[],
                next_page_token="def",
            ),
            service.ListTunnelDestGroupsResponse(
                tunnel_dest_groups=[
                    service.TunnelDestGroup(),
                ],
                next_page_token="ghi",
            ),
            service.ListTunnelDestGroupsResponse(
                tunnel_dest_groups=[
                    service.TunnelDestGroup(),
                    service.TunnelDestGroup(),
                ],
            ),
            RuntimeError,
        )

        metadata = ()
        metadata = tuple(metadata) + (
            gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
        )
        pager = client.list_tunnel_dest_groups(request={})

        assert pager._metadata == metadata

        results = list(pager)
        assert len(results) == 6
      assert all(isinstance(i, service.TunnelDestGroup) for i in results)

E assert False
E + where False = all(<generator object test_list_tunnel_dest_groups_pager.. at 0x7ff163a4e6d0>)

tests/unit/gapic/iap_v1/test_identity_aware_proxy_admin_service.py:1809: AssertionError

@flaky-bot flaky-bot bot added flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels May 26, 2022
@product-auto-label product-auto-label bot added the api: iap Issues related to the googleapis/python-iap API. label May 26, 2022
@flaky-bot flaky-bot bot added the flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. label May 27, 2022
@flaky-bot
Copy link
Author

flaky-bot bot commented May 27, 2022

Looks like this issue is flaky. 😟

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (d3be3d9), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

@parthea parthea closed this as completed May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: iap Issues related to the googleapis/python-iap API. flakybot: flaky Tells the Flaky Bot not to close or comment on this issue. flakybot: issue An issue filed by the Flaky Bot. Should not be added manually. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant