Stealth extension #1037
3 passed, 18 failed and 0 skipped
❌ junit-report.xml
21 tests were completed in 2906s with 3 passed, 18 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 3✅ | 18❌ | 2906s |
❌ pytest
test.test_profile
❌ test_saving
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_saving0'), log_path=PosixPath('/tmp/pytes...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
❌ test_save_incomplete_profile_error
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_save_incomplete_profile_e0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
❌ test_crash_profile
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_crash_profile0'), log_path=PosixPath('/tm...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
✅ test_profile_error
❌ test_profile_saved_when_launch_crashes
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09011d00>
❌ test_seed_persistence
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_seed_persistence0'), log_path=PosixPath('...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
❌ test_dump_profile_command
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_dump_profile_command0'), log_path=PosixPa...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
✅ test_load_tar_file
✅ test_crash_during_init
❌ test_profile_recovery[on_normal_operation-stateful-without_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08fdf560>
❌ test_profile_recovery[on_normal_operation-stateful-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6ee63cd2b0>
❌ test_profile_recovery[on_normal_operation-stateless-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09028aa0>
❌ test_profile_recovery[on_crash-stateful-without_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08fddb20>
❌ test_profile_recovery[on_crash-stateful-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09015160>
❌ test_profile_recovery[on_crash-stateless-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09014aa0>
❌ test_profile_recovery[on_crash_during_launch-stateful-without_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08f4fb90>
❌ test_profile_recovery[on_crash_during_launch-stateful-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08ecdfa0>
❌ test_profile_recovery[on_crash_during_launch-stateless-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08eb4260>
❌ test_profile_recovery[on_timeout-stateful-without_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08ecf1a0>
❌ test_profile_recovery[on_timeout-stateful-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08efa420>
❌ test_profile_recovery[on_timeout-stateless-with_seed_tar]
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08ecf2c0>
Annotations
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_saving
Failed test found in:
junit-report.xml
Error:
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_saving0'), log_path=PosixPath('/tmp/pytes...'/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_saving0'), log_path=PosixPath('/tmp/pytes...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6ee5016f20>
def test_saving(default_params, task_manager_creator):
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].profile_archive_dir = (
manager_params.data_directory / "browser_profile"
)
> manager, _ = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:125: in __init__
self._launch_browsers()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:210: in _launch_browsers
self.close()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:505: in close
self._shutdown_manager(relaxed=relaxed)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:326: in _shutdown_manager
browser.shutdown_browser(during_init, force=not relaxed)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.browser_manager.BrowserManagerHandle object at 0x7f6ee5068200>
during_init = False, force = False
def shutdown_browser(self, during_init: bool, force: bool = False) -> None:
"""Runs the closing tasks for this Browser/BrowserManager"""
# Close BrowserManager process and children
self.logger.debug("BROWSER %i: Closing browser manager..." % self.browser_id)
self.close_browser_manager(force=force)
# Archive browser profile (if requested)
self.logger.debug(
"BROWSER %i: during_init=%s | profile_archive_dir=%s"
% (
self.browser_id,
str(during_init),
self.browser_params.profile_archive_dir,
)
)
if not during_init and self.browser_params.profile_archive_dir is not None:
self.logger.debug(
"BROWSER %i: Archiving browser profile directory to %s"
% (self.browser_id, self.browser_params.profile_archive_dir)
)
tar_path = self.browser_params.profile_archive_dir / "profile.tar.gz"
> assert self.current_profile_path is not None
E AssertionError
/home/runner/work/OpenWPM/OpenWPM/openwpm/browser_manager.py:631: AssertionError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_save_incomplete_profile_error
Failed test found in:
junit-report.xml
Error:
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_save_incomplete_profile_e0'), log_path=Po...'/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_save_incomplete_profile_e0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6ee50a59e0>
def test_save_incomplete_profile_error(default_params, task_manager_creator):
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].profile_archive_dir = (
manager_params.data_directory / "browser_profile"
)
> manager, _ = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:125: in __init__
self._launch_browsers()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:210: in _launch_browsers
self.close()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:505: in close
self._shutdown_manager(relaxed=relaxed)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:326: in _shutdown_manager
browser.shutdown_browser(during_init, force=not relaxed)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.browser_manager.BrowserManagerHandle object at 0x7f6f08ff8c20>
during_init = False, force = False
def shutdown_browser(self, during_init: bool, force: bool = False) -> None:
"""Runs the closing tasks for this Browser/BrowserManager"""
# Close BrowserManager process and children
self.logger.debug("BROWSER %i: Closing browser manager..." % self.browser_id)
self.close_browser_manager(force=force)
# Archive browser profile (if requested)
self.logger.debug(
"BROWSER %i: during_init=%s | profile_archive_dir=%s"
% (
self.browser_id,
str(during_init),
self.browser_params.profile_archive_dir,
)
)
if not during_init and self.browser_params.profile_archive_dir is not None:
self.logger.debug(
"BROWSER %i: Archiving browser profile directory to %s"
% (self.browser_id, self.browser_params.profile_archive_dir)
)
tar_path = self.browser_params.profile_archive_dir / "profile.tar.gz"
> assert self.current_profile_path is not None
E AssertionError
/home/runner/work/OpenWPM/OpenWPM/openwpm/browser_manager.py:631: AssertionError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_crash_profile
Failed test found in:
junit-report.xml
Error:
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_crash_profile0'), log_path=PosixPath('/tm...'/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_crash_profile0'), log_path=PosixPath('/tm...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6ee50a7060>
def test_crash_profile(default_params, task_manager_creator):
manager_params, browser_params = default_params
manager_params.num_browsers = 1
manager_params.failure_limit = 2
browser_params[0].profile_archive_dir = (
manager_params.data_directory / "browser_profile"
)
> manager, _ = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:69:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:125: in __init__
self._launch_browsers()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:210: in _launch_browsers
self.close()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:505: in close
self._shutdown_manager(relaxed=relaxed)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:326: in _shutdown_manager
browser.shutdown_browser(during_init, force=not relaxed)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.browser_manager.BrowserManagerHandle object at 0x7f6ee506b830>
during_init = False, force = False
def shutdown_browser(self, during_init: bool, force: bool = False) -> None:
"""Runs the closing tasks for this Browser/BrowserManager"""
# Close BrowserManager process and children
self.logger.debug("BROWSER %i: Closing browser manager..." % self.browser_id)
self.close_browser_manager(force=force)
# Archive browser profile (if requested)
self.logger.debug(
"BROWSER %i: during_init=%s | profile_archive_dir=%s"
% (
self.browser_id,
str(during_init),
self.browser_params.profile_archive_dir,
)
)
if not during_init and self.browser_params.profile_archive_dir is not None:
self.logger.debug(
"BROWSER %i: Archiving browser profile directory to %s"
% (self.browser_id, self.browser_params.profile_archive_dir)
)
tar_path = self.browser_params.profile_archive_dir / "profile.tar.gz"
> assert self.current_profile_path is not None
E AssertionError
/home/runner/work/OpenWPM/OpenWPM/openwpm/browser_manager.py:631: AssertionError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_profile_saved_when_launch_crashes
Failed test found in:
junit-report.xml
Error:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09011d00>
Raw output
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09011d00>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_profile_saved_when_launch0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f08f860c0>
def test_profile_saved_when_launch_crashes(
monkeypatch, default_params, task_manager_creator
):
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].profile_archive_dir = (
manager_params.data_directory / "browser_profile"
)
> manager, _ = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:125: in __init__
self._launch_browsers()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:210: in _launch_browsers
self.close()
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:505: in close
self._shutdown_manager(relaxed=relaxed)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:326: in _shutdown_manager
browser.shutdown_browser(during_init, force=not relaxed)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.browser_manager.BrowserManagerHandle object at 0x7f6ee519e900>
during_init = False, force = False
def shutdown_browser(self, during_init: bool, force: bool = False) -> None:
"""Runs the closing tasks for this Browser/BrowserManager"""
# Close BrowserManager process and children
self.logger.debug("BROWSER %i: Closing browser manager..." % self.browser_id)
self.close_browser_manager(force=force)
# Archive browser profile (if requested)
self.logger.debug(
"BROWSER %i: during_init=%s | profile_archive_dir=%s"
% (
self.browser_id,
str(during_init),
self.browser_params.profile_archive_dir,
)
)
if not during_init and self.browser_params.profile_archive_dir is not None:
self.logger.debug(
"BROWSER %i: Archiving browser profile directory to %s"
% (self.browser_id, self.browser_params.profile_archive_dir)
)
tar_path = self.browser_params.profile_archive_dir / "profile.tar.gz"
> assert self.current_profile_path is not None
E AssertionError
/home/runner/work/OpenWPM/OpenWPM/openwpm/browser_manager.py:631: AssertionError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_seed_persistence
Failed test found in:
junit-report.xml
Error:
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_seed_persistence0'), 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_seed_persistence0'), log_path=PosixPath('...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f08f84f40>
def test_seed_persistence(default_params, task_manager_creator):
manager_params, browser_params = default_params
p = Path("profile.tar.gz")
for browser_param in browser_params:
browser_param.seed_tar = p
> manager, db = task_manager_creator(default_params)
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6ee506bce0>
host = '127.0.0.1', port = 43911
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_dump_profile_command
Failed test found in:
junit-report.xml
Error:
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_dump_profile_command0'), log_path=PosixPa...'/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_dump_profile_command0'), log_path=PosixPa...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f08f860c0>
def test_dump_profile_command(default_params, task_manager_creator):
"""Test saving the browser profile using a command."""
manager_params, browser_params = default_params
manager_params.num_browsers = 1
> manager, _ = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:172:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6f09011dc0>
host = '127.0.0.1', port = 43485
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_profile_recovery[on_normal_operation-stateful-without_seed_tar]
Failed test found in:
junit-report.xml
Error:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08fdf560>
Raw output
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08fdf560>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_profile_recovery_on_norma0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f0901a840>
testcase = 'on_normal_operation', stateful = True, seed_tar = None
@pytest.mark.parametrize(
"stateful,seed_tar",
[(True, None), (True, Path("profile.tar.gz")), (False, Path("profile.tar.gz"))],
ids=[
"stateful-without_seed_tar",
"stateful-with_seed_tar",
"stateless-with_seed_tar",
],
)
@pytest.mark.parametrize(
"testcase",
["on_normal_operation", "on_crash", "on_crash_during_launch", "on_timeout"],
)
# Use -k to run this test for a specific set of parameters. For example:
# pytest -vv test_profile.py::test_profile_recovery -k on_crash-stateful-with_seed_tar
def test_profile_recovery(
monkeypatch, default_params, task_manager_creator, testcase, stateful, seed_tar
):
"""Test browser profile recovery in various scenarios."""
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].seed_tar = seed_tar
> manager, db = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6f08f4cb60>
host = '127.0.0.1', port = 39847
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_profile_recovery[on_normal_operation-stateful-with_seed_tar]
Failed test found in:
junit-report.xml
Error:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6ee63cd2b0>
Raw output
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6ee63cd2b0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_profile_recovery_on_norma1'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f08f84b80>
testcase = 'on_normal_operation', stateful = True
seed_tar = PosixPath('profile.tar.gz')
@pytest.mark.parametrize(
"stateful,seed_tar",
[(True, None), (True, Path("profile.tar.gz")), (False, Path("profile.tar.gz"))],
ids=[
"stateful-without_seed_tar",
"stateful-with_seed_tar",
"stateless-with_seed_tar",
],
)
@pytest.mark.parametrize(
"testcase",
["on_normal_operation", "on_crash", "on_crash_during_launch", "on_timeout"],
)
# Use -k to run this test for a specific set of parameters. For example:
# pytest -vv test_profile.py::test_profile_recovery -k on_crash-stateful-with_seed_tar
def test_profile_recovery(
monkeypatch, default_params, task_manager_creator, testcase, stateful, seed_tar
):
"""Test browser profile recovery in various scenarios."""
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].seed_tar = seed_tar
> manager, db = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6f09014da0>
host = '127.0.0.1', port = 43541
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_profile_recovery[on_normal_operation-stateless-with_seed_tar]
Failed test found in:
junit-report.xml
Error:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09028aa0>
Raw output
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09028aa0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_profile_recovery_on_norma2'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f0901a8e0>
testcase = 'on_normal_operation', stateful = False
seed_tar = PosixPath('profile.tar.gz')
@pytest.mark.parametrize(
"stateful,seed_tar",
[(True, None), (True, Path("profile.tar.gz")), (False, Path("profile.tar.gz"))],
ids=[
"stateful-without_seed_tar",
"stateful-with_seed_tar",
"stateless-with_seed_tar",
],
)
@pytest.mark.parametrize(
"testcase",
["on_normal_operation", "on_crash", "on_crash_during_launch", "on_timeout"],
)
# Use -k to run this test for a specific set of parameters. For example:
# pytest -vv test_profile.py::test_profile_recovery -k on_crash-stateful-with_seed_tar
def test_profile_recovery(
monkeypatch, default_params, task_manager_creator, testcase, stateful, seed_tar
):
"""Test browser profile recovery in various scenarios."""
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].seed_tar = seed_tar
> manager, db = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6f090172f0>
host = '127.0.0.1', port = 35895
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_profile_recovery[on_crash-stateful-without_seed_tar]
Failed test found in:
junit-report.xml
Error:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08fddb20>
Raw output
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f08fddb20>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_profile_recovery_on_crash0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f0901b420>
testcase = 'on_crash', stateful = True, seed_tar = None
@pytest.mark.parametrize(
"stateful,seed_tar",
[(True, None), (True, Path("profile.tar.gz")), (False, Path("profile.tar.gz"))],
ids=[
"stateful-without_seed_tar",
"stateful-with_seed_tar",
"stateless-with_seed_tar",
],
)
@pytest.mark.parametrize(
"testcase",
["on_normal_operation", "on_crash", "on_crash_during_launch", "on_timeout"],
)
# Use -k to run this test for a specific set of parameters. For example:
# pytest -vv test_profile.py::test_profile_recovery -k on_crash-stateful-with_seed_tar
def test_profile_recovery(
monkeypatch, default_params, task_manager_creator, testcase, stateful, seed_tar
):
"""Test browser profile recovery in various scenarios."""
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].seed_tar = seed_tar
> manager, db = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6f09016600>
host = '127.0.0.1', port = 36913
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError
Check failure on line 0 in junit-report.xml
github-actions / test/test_[p]*
pytest ► test.test_profile ► test_profile_recovery[on_crash-stateful-with_seed_tar]
Failed test found in:
junit-report.xml
Error:
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09015160>
Raw output
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6f09015160>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_profile_recovery_on_crash1'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f6f08e644a0>
testcase = 'on_crash', stateful = True, seed_tar = PosixPath('profile.tar.gz')
@pytest.mark.parametrize(
"stateful,seed_tar",
[(True, None), (True, Path("profile.tar.gz")), (False, Path("profile.tar.gz"))],
ids=[
"stateful-without_seed_tar",
"stateful-with_seed_tar",
"stateless-with_seed_tar",
],
)
@pytest.mark.parametrize(
"testcase",
["on_normal_operation", "on_crash", "on_crash_during_launch", "on_timeout"],
)
# Use -k to run this test for a specific set of parameters. For example:
# pytest -vv test_profile.py::test_profile_recovery -k on_crash-stateful-with_seed_tar
def test_profile_recovery(
monkeypatch, default_params, task_manager_creator, testcase, stateful, seed_tar
):
"""Test browser profile recovery in various scenarios."""
manager_params, browser_params = default_params
manager_params.num_browsers = 1
browser_params[0].seed_tar = seed_tar
> manager, db = task_manager_creator((manager_params, browser_params[:1]))
/home/runner/work/OpenWPM/OpenWPM/test/test_profile.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:472: in save_configuration
sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:389: in __init__
self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <openwpm.socket_interface.ClientSocket object at 0x7f6f08ecd580>
host = '127.0.0.1', port = 42217
def connect(self, host, port):
if self.verbose:
print("Connecting to: %s:%i" % (host, port))
> self.sock.connect((host, port))
E ConnectionRefusedError: [Errno 111] Connection refused
/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError