Skip to content

Commit

Permalink
test_: set privileged False for jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarbu15 committed Dec 18, 2024
1 parent cbe83b9 commit 0849db3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests-functional/clients/status_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

class StatusBackend(RpcClient, SignalClient):

def __init__(self, await_signals=[]):
def __init__(self, await_signals=[], privileged=False):

if option.status_backend_url:
url = option.status_backend_url
else:
self.docker_client = docker.from_env()
host_port = random.choice(option.status_backend_port_range)

self.container = self._start_container(host_port)
self.container = self._start_container(host_port, privileged)
url = f"http://127.0.0.1:{host_port}"
option.status_backend_port_range.remove(host_port)

Expand All @@ -54,7 +54,7 @@ def __init__(self, await_signals=[]):
self.accounts_service = AccountService(self)
self.settings_service = SettingsService(self)

def _start_container(self, host_port):
def _start_container(self, host_port, privileged):
docker_project_name = option.docker_project_name

timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
Expand All @@ -66,7 +66,7 @@ def _start_container(self, host_port):
container_args = {
"image": image_name,
"detach": True,
"privileged": True,
"privileged": privileged,
"name": container_name,
"labels": {"com.docker.compose.project": docker_project_name},
"entrypoint": [
Expand Down

0 comments on commit 0849db3

Please sign in to comment.