rallytime
85f470207c
Merge branch '2016.3' into '2016.11'
...
No conflicts.
2017-01-03 10:13:06 -05:00
Daniel Wallace
048b9f6b9d
add test
2016-12-29 17:08:24 -06:00
Eric Radman
b9be6521db
Preserve trailing lines in crontab
...
This allows cron.file to install a crontab file that contains trailing
newlines. Previously a change may have been detected on every run.
2016-07-22 12:18:08 -04:00
Christophe Drevet-Droguet
4a00cc5b70
cron: support for commented cron jobs
...
This change is an implementation for managing commented cron jobs.
Before that, commented cron jobs were not manageable by salt. They were ignored
at reading, and thus lost while writing the new crontab.
This is described in issue #29082 , which should be fixed now.
There is a new `commented` parameter, defaulting to False. The cron job is
set like any other, but is prefixed by `#DISABLED#`.
2015-12-07 15:40:36 +01:00
Dmitry Kuzmenko
002b1ef9bd
Fixed use of assert_has_calls in tests.
...
The method logic was changed in mock-1.1.0.
This mades the use of the method compatible with both <1.1.0 and >=1.1.0
2015-11-25 15:31:20 +03:00
Erik Johnson
106f386df3
tests/unit/modules/cron_test.py: remove raw string formatting
2015-08-26 23:26:08 -05:00
Michael Steed
f9cf15ad46
fix new failures on ubuntu 14.04
2015-06-09 14:18:04 -06:00
Michael Steed
f725b8e4fe
lint
2015-06-09 13:14:54 -06:00
Michael Steed
ce5f14bb0e
set encoding in test__unicode_match()
2015-06-09 11:19:51 -06:00
Michael Steed
83a96367a4
Manual merge of #24414 per thatch45
2015-06-06 07:47:52 -06:00
Justin Findlay
5dc09e7da1
update cron and cmd tests for cron runas changes
2015-03-10 15:57:24 -06:00
Pedro Algarvio
60f215f191
Add from __future__ import absolute_import
2015-01-30 22:25:04 +00:00
David Boucha
9dc182a2f4
fix codeauthor misspellings
2014-05-21 18:59:02 -06:00
Mathieu Le Marec - Pasquet
de66244e65
cron: fix test
2014-04-18 14:50:50 +02:00
Mathieu Le Marec - Pasquet
cfa93f9f92
cron: Fix for #10959
2014-03-11 09:18:11 +00:00
Mathieu Le Marec - Pasquet
bfa176f110
cron: complete matching rework
2014-02-19 22:44:34 +01:00
Mathieu Le Marec - Pasquet
90dc963c1c
cron: better behavior of crontabs tracking
2014-02-19 20:39:44 +01:00
Thayne Harbaugh
446599adc5
Correctly grain for test "os" => "os_family": issue-10215
2014-02-05 14:38:45 -07:00
Nahum Shalman
b1e81a5ebb
Fix cron state to work on SmartOS
...
SmartOS and Solaris are both in the Solaris os_family
If we use that grain, the module should work on SmartOS
2014-02-04 17:00:18 -05:00
Pedro Algarvio
b03c779718
Don't assume mock
and timelib
are instaled.
2013-12-31 13:53:37 +00:00
Mike Place
d8facc96a4
Unit testing cron exec module.
2013-12-17 15:59:57 -07:00