Exemplo n.º 1
0
    def test_if_location_header_during_redirect_is_adjusted(
            self, agent_ar_process_perclass, mocker, valid_user_header,
            endpoint_id, basepath, location_set, location_expected, vhost):

        req_headers = copy.deepcopy(valid_user_header)
        if vhost is not None:
            req_headers["Host"] = vhost

        generic_location_header_during_redirect_is_adjusted_test(
            agent_ar_process_perclass,
            mocker,
            req_headers,
            endpoint_id,
            basepath,
            location_set,
            location_expected,
        )
Exemplo n.º 2
0
    def test_if_location_header_during_redirect_is_adjusted(
        self,
        agent_ar_process_perclass,
        mocker,
        valid_user_header,
        endpoint_id,
        basepath,
        location_set,
        location_expected,
    ):

        generic_location_header_during_redirect_is_adjusted_test(
            agent_ar_process_perclass,
            mocker,
            valid_user_header,
            endpoint_id,
            basepath,
            location_set,
            location_expected,
        )
Exemplo n.º 3
0
    def test_if_location_header_during_redirect_is_adjusted(
            self,
            agent_ar_process_perclass,
            mocker,
            valid_user_header,
            endpoint_id,
            basepath,
            location_set,
            location_expected,
            ):

        generic_location_header_during_redirect_is_adjusted_test(
            agent_ar_process_perclass,
            mocker,
            valid_user_header,
            endpoint_id,
            basepath,
            location_set,
            location_expected,
            )