@markers.webview
@markers.test_case('C193738')
@markers.nondestructive
@markers.parametrize('is_archive,path,expected_response_status_code', [(True, '/content/col23946', 301), (True, '/content/col23946/1.1', 301), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e', 200), (True, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e', 302), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e:7d039be2-93c6-4f32-a469-41689bab7225', 200), (True, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e:7d039be2-93c6-4f32-a469-41689bab7225', 302), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1', 200), (True, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1', 200), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1:7d039be2-93c6-4f32-a469-41689bab7225', 200), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1:7d039be2-93c6-4f32-a469-41689bab7225@5', 200), (False, '/contents/TqqPA4io', 200), (True, '/contents/TqqPA4io', 302), (False, '/contents/TqqPA4io:fQOb4pPG', 200), (True, '/contents/TqqPA4io:fQOb4pPG', 302), (False, '/contents/TqqPA4io@1.157', 200), (True, '/contents/TqqPA4io@1.157', 301), (False, '/contents/TqqPA4io@1.157:fQOb4pPG', 200), (True, '/contents/TqqPA4io@1.157:fQOb4pPG', 301), (False, '/contents/TqqPA4io@1.157:fQOb4pPG@5', 200), (True, '/contents/TqqPA4io@1.157:fQOb4pPG@5', 301)])
def test_content_status_codes(webview_base_url, archive_base_url, is_archive, path, expected_response_status_code):
    if is_archive:
        url = urljoin(archive_base_url, path)
    else:
        url = urljoin(webview_base_url, path)
    response = get(url, allow_redirects=False)
    assert (response.status_code == expected_response_status_code)
@markers.webview
@markers.test_case('C193738')
@markers.nondestructive
@markers.parametrize('is_archive,path,expected_response_status_code', [(True, '/content/col23946', 301), (True, '/content/col23946/1.1', 301), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e', 200), (True, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e', 302), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e:7d039be2-93c6-4f32-a469-41689bab7225', 200), (True, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e:7d039be2-93c6-4f32-a469-41689bab7225', 302), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1', 200), (True, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1', 200), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1:7d039be2-93c6-4f32-a469-41689bab7225', 200), (False, '/contents/4eaa8f03-88a8-485a-a777-dd3602f6c13e@1.1:7d039be2-93c6-4f32-a469-41689bab7225@5', 200), (False, '/contents/TqqPA4io', 200), (True, '/contents/TqqPA4io', 302), (False, '/contents/TqqPA4io:fQOb4pPG', 200), (True, '/contents/TqqPA4io:fQOb4pPG', 302), (False, '/contents/TqqPA4io@1.157', 200), (True, '/contents/TqqPA4io@1.157', 301), (False, '/contents/TqqPA4io@1.157:fQOb4pPG', 200), (True, '/contents/TqqPA4io@1.157:fQOb4pPG', 301), (False, '/contents/TqqPA4io@1.157:fQOb4pPG@5', 200), (True, '/contents/TqqPA4io@1.157:fQOb4pPG@5', 301)])
def test_content_status_codes(webview_base_url, archive_base_url, is_archive, path, expected_response_status_code):
    if is_archive:
        url = urljoin(archive_base_url, path)
    else:
        url = urljoin(webview_base_url, path)
    response = get(url, allow_redirects=False)
    assert (response.status_code == expected_response_status_code)