Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: rename default_user to user0 #413

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions tests/test_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

import mock
import pytest
from reana_db.models import Job, JobStatus
from reana_commons.config import KRB5_INIT_CONTAINER_NAME, KRB5_RENEW_CONTAINER_NAME

from reana_db.models import Job, JobStatus
from reana_job_controller.job_manager import JobManager
from reana_job_controller.kubernetes_job_manager import KubernetesJobManager

Expand All @@ -26,7 +25,7 @@ def test_execute_kubernetes_job(
session,
sample_serial_workflow_in_db,
sample_workflow_workspace,
default_user,
user0,
kerberos_user_secrets,
corev1_api_client_with_user_secrets,
monkeypatch,
Expand All @@ -40,7 +39,7 @@ def test_execute_kubernetes_job(
expected_env_var = {env_var_key: env_var_value}
expected_image = "docker.io/library/busybox"
expected_command = "ls"
monkeypatch.setenv("REANA_USER_ID", str(default_user.id_))
monkeypatch.setenv("REANA_USER_ID", str(user0.id_))
job_manager = KubernetesJobManager(
docker_img=expected_image,
cmd=expected_command,
Expand Down Expand Up @@ -99,7 +98,7 @@ def test_stop_kubernetes_job(
sample_serial_workflow_in_db,
sample_workflow_workspace,
empty_user_secrets,
default_user,
user0,
corev1_api_client_with_user_secrets,
monkeypatch,
):
Expand All @@ -110,7 +109,7 @@ def test_stop_kubernetes_job(
expected_env_var_value = "value"
expected_image = "docker.io/library/busybox"
expected_command = ["ls"]
monkeypatch.setenv("REANA_USER_ID", str(default_user.id_))
monkeypatch.setenv("REANA_USER_ID", str(user0.id_))
job_manager = KubernetesJobManager(
docker_img=expected_image,
cmd=expected_command,
Expand Down
Loading