Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
7c45fee9
Commit
7c45fee9
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2829
: logging
parent
02a77b21
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/services/copy_service/t_copy_service.py
+2
-2
2 additions, 2 deletions
SAS/TMSS/backend/services/copy_service/t_copy_service.py
with
2 additions
and
2 deletions
SAS/TMSS/backend/services/copy_service/t_copy_service.py
+
2
−
2
View file @
7c45fee9
...
...
@@ -66,7 +66,7 @@ class TestCopyService(unittest.TestCase):
def
setUp
(
self
):
def
mocked_wrap_command_in_cep4_head_node_ssh_call
(
cmd
,
*
args
,
**
kwargs
):
logger
.
info
(
'
mocked_wrap_command_in_cep4_head_node_ssh_call returning original command (without ssh): %s
'
,
'
'
.
join
(
cmd
)
)
logger
.
info
(
'
mocked_wrap_command_in_cep4_head_node_ssh_call returning original command (without ssh): %s
'
,
cmd
)
return
cmd
wrap_command_in_cep4_head_node_ssh_call_patcher
=
mock
.
patch
(
'
lofar.sas.tmss.services.copy_service.wrap_command_in_cep4_available_node_with_lowest_load_ssh_call
'
)
self
.
addCleanup
(
wrap_command_in_cep4_head_node_ssh_call_patcher
.
stop
)
...
...
@@ -74,7 +74,7 @@ class TestCopyService(unittest.TestCase):
self
.
wrap_command_in_cep4_head_node_ssh_call_mock
.
side_effect
=
mocked_wrap_command_in_cep4_head_node_ssh_call
def
mocked_wrap_command_in_ssh_call
(
cmd
,
*
args
,
**
kwargs
):
logger
.
info
(
'
wrap_command_in_ssh_call returning original command (without ssh): %s
'
,
'
'
.
join
(
cmd
)
)
logger
.
info
(
'
wrap_command_in_ssh_call returning original command (without ssh): %s
'
,
cmd
)
return
cmd
mocked_wrap_command_in_ssh_call_patcher
=
mock
.
patch
(
'
lofar.sas.tmss.services.copy_service.wrap_command_in_ssh_call
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment