Content-Length: 303963 | pFad | https://www.github.com/googleapis/python-asset/issues/75

82D samples.snippets.quickstart_searchallresources_test: test_search_all_resources failed · Issue #75 · googleapis/python-asset · GitHub
Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

samples.snippets.quickstart_searchallresources_test: test_search_all_resources failed #75

Closed
@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

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


commit: 4d57792
buildURL: Build Status, Sponge
status: failed

Test output
asset_dataset = 'dataset_6e92f46c6ed14102859892ce8809cfe8'
capsys = <_pytest.capture.CaptureFixture object at 0x7f4471b6a970>
def test_search_all_resources(asset_dataset, capsys):
    scope = "projects/{}".format(PROJECT)
    query = "name:{}".format(DATASET)

    # Dataset creation takes some time to propagate, so the dataset is not
    # immediately searchable. Need some time before the snippet will pass.
    @backoff.on_exception(backoff.expo, (AssertionError), max_time=120)
    def eventually_consistent_test():
        quickstart_searchallresources.search_all_resources(scope, query=query)
        out, _ = capsys.readouterr()

        assert DATASET in out
  eventually_consistent_test()

quickstart_searchallresources_test.py:62:


.nox/py-3-8/lib/python3.8/site-packages/backoff/_sync.py:94: in retry
ret = target(*args, **kwargs)


@backoff.on_exception(backoff.expo, (AssertionError), max_time=120)
def eventually_consistent_test():
    quickstart_searchallresources.search_all_resources(scope, query=query)
    out, _ = capsys.readouterr()
  assert DATASET in out

E AssertionError: assert 'dataset_6e92f46c6ed14102859892ce8809cfe8' in ''

quickstart_searchallresources_test.py:60: AssertionError

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: cloudassetIssues related to the googleapis/python-asset API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.samplesIssues that are directly related to samples.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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://www.github.com/googleapis/python-asset/issues/75

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy