summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-01-22 10:33:14 -0800
committerhagbard <vyosdev@derith.de>2019-01-22 10:33:14 -0800
commit58d1afe53c2ad1385b87323c899286dab276974e (patch)
tree3a2388a054fc4add76d80bb046730c7f77c44ae3
parent0d80b06ccd33fc2a0001b8641ce45070f0e8726d (diff)
downloadvyos-1x-58d1afe53c2ad1385b87323c899286dab276974e.tar.gz
vyos-1x-58d1afe53c2ad1385b87323c899286dab276974e.zip
Revert "adjusted unit test"
This reverts commit 0d80b06ccd33fc2a0001b8641ce45070f0e8726d.
-rw-r--r--src/tests/test_task_scheduler.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/test_task_scheduler.py b/src/tests/test_task_scheduler.py
index c08dfd33d..084bd868c 100644
--- a/src/tests/test_task_scheduler.py
+++ b/src/tests/test_task_scheduler.py
@@ -88,19 +88,19 @@ class TestUpdateCrontab(unittest.TestCase):
'tasks': [{'name': 'aaa', 'interval': '60m', 'spec': '', 'executable': '/bin/ls', 'args': '-l'}],
'expected': [
'### Generated by vyos-update-crontab.py ###',
- '*/60 * * * * vyos sg vyattacfg \"/bin/ls -l\"']
+ '*/60 * * * * root sg vyattacfg \"/bin/ls -l\"']
},
{'name': 'one_task_with_hour',
'tasks': [{'name': 'aaa', 'interval': '10h', 'spec': '', 'executable': '/bin/ls', 'args': '-l'}],
'expected': [
'### Generated by vyos-update-crontab.py ###',
- '0 */10 * * * vyos sg vyattacfg \"/bin/ls -l\"']
+ '0 */10 * * * root sg vyattacfg \"/bin/ls -l\"']
},
{'name': 'one_task_with_day',
'tasks': [{'name': 'aaa', 'interval': '10d', 'spec': '', 'executable': '/bin/ls', 'args': '-l'}],
'expected': [
'### Generated by vyos-update-crontab.py ###',
- '0 0 */10 * * vyos sg vyattacfg \"/bin/ls -l\"']
+ '0 0 */10 * * root sg vyattacfg \"/bin/ls -l\"']
},
{'name': 'multiple_tasks',
'tasks': [{'name': 'aaa', 'interval': '60m', 'spec': '', 'executable': '/bin/ls', 'args': '-l'},
@@ -108,8 +108,8 @@ class TestUpdateCrontab(unittest.TestCase):
],
'expected': [
'### Generated by vyos-update-crontab.py ###',
- '*/60 * * * * vyos sg vyattacfg \"/bin/ls -l\"',
- '0 0 * * * vyos sg vyattacfg \"/bin/ls -ltr\"']
+ '*/60 * * * * root sg vyattacfg \"/bin/ls -l\"',
+ '0 0 * * * root sg vyattacfg \"/bin/ls -ltr\"']
}
]
for t in tests: