示例#1
0
def _assert_package_retrieval_behavior(lowercase):
    helper = _assertion_helper.SphinxHelper(get_path_fn=fixture.proxy.get_url,
                                            lowercase=lowercase)

    # The package cached assertions are the only ones relevant to
    # the proxy. Since Artifactory is out of the picture, the cache
    # within Artifactory is irrelevant.
    _assertion_helper.perform_package_cached_assertions(
        sphinx_helper=helper, expect_artifactory_specific_headers=False)
def _assert_package_retrieval_behavior(lowercase):
    helper = _assertion_helper.SphinxHelper(
        get_path_fn=fixture.proxy.get_url,
        lowercase=lowercase)

    # The package cached assertions are the only ones relevant to
    # the proxy. Since Artifactory is out of the picture, the cache
    # within Artifactory is irrelevant.
    _assertion_helper.perform_package_cached_assertions(
        sphinx_helper=helper,
        expect_artifactory_specific_headers=False)
示例#3
0
def _assert_package_retrieval_behavior(lowercase):
    helper = _assertion_helper.SphinxHelper(
        get_path_fn=fixture.artif.get_repo_url,
        lowercase=lowercase)

    _assertion_helper.perform_package_not_cached_assertions(helper)
    _assertion_helper.perform_package_cached_assertions(
        sphinx_helper=helper,
        expect_artifactory_specific_headers=True)

    with proxy_brought_down(fixture.proxy):
        _assertion_helper.perform_package_cached_assertions(
            sphinx_helper=helper,
            expect_artifactory_specific_headers=True)

        fixture.artif.flush_caches()
        _assertion_helper.perform_package_unavailable_assertions(helper)