Release #958
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / OpenWPM
failed
Oct 21, 2023 in 1s
OpenWPM ❌
❌ junit-report.xml
20 tests were completed in 608s with 17 passed, 1 failed and 2 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 17✅ | 1❌ | 2⚪ | 608s |
❌ pytest
test.test_callback
✅ test_local_callbacks
test.test_callstack_instrument
⚪ test_http_stacktrace
test.test_crawl
✅ test_browser_profile_coverage
test.test_custom_function_command
❌ test_custom_function
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_custom_function0'), log_path=PosixPath('/...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
test.test_dataclass_validations
✅ test_display_mode
✅ test_browser_type
✅ test_tp_cookies_opt
✅ test_save_content_type
✅ test_log_file_extension
✅ test_failure_limit
✅ test_num_browser_crawl_config
test.test_dns_instrument
✅ test_name_resolution
test.test_extension.TestExtension
✅ test_property_enumeration
✅ test_canvas_fingerprinting
✅ test_extension_gets_correct_visit_id
✅ test_webrtc_localip
✅ test_js_call_stack
✅ test_js_time_stamp
✅ test_document_cookie_instrumentation
test.test_extension
⚪ test_audio_fingerprinting
Annotations
Check failure on line 0 in junit-report.xml
github-actions / OpenWPM
pytest ► test.test_custom_function_command ► test_custom_function
Failed test found in:
junit-report.xml
Error:
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_custom_function0'), log_path=PosixPath('/...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
Raw output
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_custom_function0'), log_path=PosixPath('/...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
xpi = None, server = None
def test_custom_function(default_params, xpi, server):
"""Test `custom_function` with an inline func that collects links"""
table_name = TableName("page_links")
manager_params, browser_params = default_params
path = manager_params.data_directory / "crawl-data.sqlite"
db = sqlite3.connect(path)
cur = db.cursor()
cur.execute(
"""CREATE TABLE IF NOT EXISTS %s (
top_url TEXT, link TEXT,
visit_id INTEGER, browser_id INTEGER);"""
% table_name
)
cur.close()
db.close()
storage_provider = SQLiteStorageProvider(path)
manager = TaskManager(manager_params, browser_params, storage_provider, None)
cs = command_sequence.CommandSequence(url_a)
cs.get(sleep=0, timeout=60)
cs.append_command(CollectLinksCommand(table_name, "http"))
manager.execute_command_sequence(cs)
manager.close()
query_result = db_utils.query_db(
path,
"SELECT top_url, link FROM page_links;",
as_tuple=True,
)
> assert PAGE_LINKS == set(query_result)
E AssertionError: assert {('http://loc...mple_d.html')} == {('http://loc...mple_d.html')}
E Extra items in the left set:
E ('http://localhost:8000/test_pages/simple_a.html', 'http://localhost:8000/test_pages/simple_c.html')
E Full diff:
E {
E ('http://localhost:8000/test_pages/simple_a.html',
E 'http://example.com/test.html?localhost'),
E ('http://localhost:8000/test_pages/simple_a.html',
E + 'http://localhost:8000/test_pages/simple_c.html'),
E + ('http://localhost:8000/test_pages/simple_a.html',
E 'http://localhost:8000/test_pages/simple_d.html'),
E }
/home/runner/work/OpenWPM/OpenWPM/test/test_custom_function_command.py:109: AssertionError
Loading