def get_redirect_fail_action(self, url):
    '\n        This method returns the fail action dict\n        :param url: url\n        :return:\n        '
    parsed = urlparse(url)
    redirect_fail_action = {'fail_action': {'redirect': {'host': parsed.hostname, 'protocol': str(parsed.scheme).upper(), 'status_code': 'HTTP_REDIRECT_STATUS_CODE_302'}, 'type': 'FAIL_ACTION_HTTP_REDIRECT'}}
    if parsed.path:
        redirect_fail_action['fail_action']['redirect']['path'] = str(parsed.path).replace('"', '')
    if parsed.query:
        redirect_fail_action['fail_action']['redirect']['query'] = parsed.query
    return redirect_fail_action
This method returns the fail action dict
:param url: url
:return:
def get_redirect_fail_action(self, url):
    '\n        This method returns the fail action dict\n        :param url: url\n        :return:\n        '
    parsed = urlparse(url)
    redirect_fail_action = {'fail_action': {'redirect': {'host': parsed.hostname, 'protocol': str(parsed.scheme).upper(), 'status_code': 'HTTP_REDIRECT_STATUS_CODE_302'}, 'type': 'FAIL_ACTION_HTTP_REDIRECT'}}
    if parsed.path:
        redirect_fail_action['fail_action']['redirect']['path'] = str(parsed.path).replace('"', )
    if parsed.query:
        redirect_fail_action['fail_action']['redirect']['query'] = parsed.query
    return redirect_fail_action