chore(release): bump to FF 123 (#1086) #118
GitHub Actions / test/test_[s]*
failed
Mar 11, 2024 in 0s
16 passed, 1 failed and 0 skipped
❌ junit-report.xml
17 tests were completed in 592s with 16 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 16✅ | 1❌ | 592s |
❌ pytest
test.test_simple_commands
✅ test_get_site_visits_table_valid[headless]
✅ test_get_site_visits_table_valid[xvfb]
✅ test_get_http_tables_valid[headless]
✅ test_get_http_tables_valid[xvfb]
✅ test_browse_site_visits_table_valid[headless]
✅ test_browse_site_visits_table_valid[xvfb]
✅ test_browse_http_table_valid[headless]
✅ test_browse_http_table_valid[xvfb]
❌ test_browse_wrapper_http_table_valid[headless]
http_params = <function http_params.<locals>.parameterize at 0x7f51d3176ca0>
✅ test_browse_wrapper_http_table_valid[xvfb]
✅ test_save_screenshot_valid[headless]
✅ test_save_screenshot_valid[xvfb]
✅ test_dump_page_source_valid[headless]
✅ test_dump_page_source_valid[xvfb]
✅ test_recursive_dump_page_source_valid[headless]
✅ test_recursive_dump_page_source_valid[xvfb]
test.test_storage_vectors
✅ test_js_profile_cookies
Annotations
Check failure on line 0 in junit-report.xml
github-actions / test/test_[s]*
pytest ► test.test_simple_commands ► test_browse_wrapper_http_table_valid[headless]
Failed test found in:
junit-report.xml
Error:
http_params = <function http_params.<locals>.parameterize at 0x7f51d3176ca0>
Raw output
http_params = <function http_params.<locals>.parameterize at 0x7f51d3176ca0>
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f51d3176f20>
display_mode = 'headless'
@pytest.mark.parametrize("display_mode", scenarios)
def test_browse_wrapper_http_table_valid(
http_params, task_manager_creator, display_mode
):
"""Check that TaskManager.browse() wrapper works and populates
http tables correctly.
NOTE: Since the browse command is choosing links randomly, there is a
(very small -- 2*0.5^20) chance this test will fail with valid
code.
"""
# Run the test crawl
manager_params, browser_params = http_params(display_mode)
manager, db = task_manager_creator((manager_params, browser_params))
# Set up two sequential browse commands to two URLS
manager.browse(url_a, num_links=20, sleep=1)
manager.browse(url_b, num_links=1, sleep=1)
manager.close()
qry_res = db_utils.query_db(db, "SELECT visit_id, site_url FROM site_visits")
# Construct dict mapping site_url to visit_id
visit_ids = dict()
for row in qry_res:
visit_ids[row[1]] = row[0]
qry_res = db_utils.query_db(
db,
"SELECT visit_id FROM http_requests WHERE url = ?",
(url_a,),
)
assert qry_res[0][0] == visit_ids[url_a]
qry_res = db_utils.query_db(
db,
"SELECT visit_id FROM http_requests WHERE url = ?",
(url_b,),
)
assert qry_res[0][0] == visit_ids[url_b]
qry_res = db_utils.query_db(
db,
"SELECT visit_id FROM http_responses WHERE url = ?",
(url_a,),
)
assert qry_res[0][0] == visit_ids[url_a]
qry_res = db_utils.query_db(
db,
"SELECT visit_id FROM http_responses WHERE url = ?",
(url_b,),
)
assert qry_res[0][0] == visit_ids[url_b]
# Page simple_a.html has three links:
# 1) An absolute link to simple_c.html
# 2) A relative link to simple_d.html
# 3) A javascript: link
# 4) A link to www.google.com
# 5) A link to example.com?localhost
# We should see page visits for 1 and 2, but not 3-5.
qry_res = db_utils.query_db(
db,
"SELECT visit_id FROM http_responses WHERE url = ?",
(url_c,),
)
> assert qry_res[0][0] == visit_ids[url_a]
E IndexError: list index out of range
/home/runner/work/OpenWPM/OpenWPM/test/test_simple_commands.py:366: IndexError
Loading