Skip to content

Release

Release #278

GitHub Actions / OpenWPM failed Dec 24, 2023 in 0s

OpenWPM ❌

Tests failed

❌ junit-report.xml

20 tests were completed in 523s with 17 passed, 1 failed and 2 skipped.

Test suite Passed Failed Skipped Time
pytest 17✅ 1❌ 2⚪ 523s

❌ 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
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
	self = <test.test_extension.TestExtension object at 0x7fae6b673f80>
test.test_extension
  ⚪ test_audio_fingerprinting

Annotations

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.test_extension.TestExtension ► test_document_cookie_instrumentation

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_extension.TestExtension object at 0x7fae6b673f80>
Raw output
self = <test.test_extension.TestExtension object at 0x7fae6b673f80>

    def test_document_cookie_instrumentation(self):
        db = self.visit(utilities.BASE_TEST_URL + "/js_cookie.html")
        rows = db_utils.get_javascript_entries(db, all_columns=True)
        captured_cookie_calls = set()
        for row in rows:
            item = (
                row["script_url"],
                row["script_line"],
                row["script_col"],
                row["func_name"],
                row["script_loc_eval"],
                row["call_stack"],
                row["symbol"],
                row["operation"],
                row["value"],
            )
            captured_cookie_calls.add(item)
>       assert captured_cookie_calls == DOCUMENT_COOKIE_READ_WRITE
E       AssertionError: assert {('http://loc...ml:1:1', ...)} == {('http://loc...ml:1:1', ...)}
E         Extra items in the left set:
E         ('http://localhost:8000/test_pages/js_cookie.html', '8', '21', 'set_cookie', '', 'set_cookie@http://localhost:8000/test_pages/js_cookie.html:8:21\nonload@http://localhost:8000/test_pages/js_cookie.html:1:1', ...)
E         Extra items in the right set:
E         ('http://localhost:8000/test_pages/js_cookie.html', '8', '9', 'set_cookie', '', 'set_cookie@http://localhost:8000/test_pages/js_cookie.html:8:9\nonload@http://localhost:8000/test_pages/js_cookie.html:1:1', ...)
E         Full diff:
E           {
E            ('http://localhost:8000/test_pages/js_cookie.html',
E             '7',
E             '9',
E             'set_cookie',
E             '',
E             'set_cookie@http://localhost:8000/test_pages/js_cookie.html:7:9\n'
E             'onload@http://localhost:8000/test_pages/js_cookie.html:1:1',
E             'window.document.cookie',
E             'set',
E             'test_cookie=Test-0123456789; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/'),
E            ('http://localhost:8000/test_pages/js_cookie.html',
E             '8',
E         -   '9',
E         ?    ^
E         +   '21',
E         ?    ^^
E             'set_cookie',
E             '',
E         -   'set_cookie@http://localhost:8000/test_pages/js_cookie.html:8:9\n'
E         ?                                                                 ^
E         +   'set_cookie@http://localhost:8000/test_pages/js_cookie.html:8:21\n'
E         ?                                                                 ^^
E             'onload@http://localhost:8000/test_pages/js_cookie.html:1:1',
E             'window.document.cookie',
E             'get',
E             'test_cookie=Test-0123456789'),
E           }

/home/runner/work/OpenWPM/OpenWPM/test/test_extension.py:405: AssertionError