-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Host Ansible jobs - Readable cron line (#510)
* Fixes #34460 - Host Ansible jobs - human readable cron line Convert the ansible cronline into a human readable format
- Loading branch information
1 parent
9a2ca77
commit a2fb46f
Showing
6 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { readableCron } from '../JobsTabHelper'; | ||
|
||
describe('JobTabsHelper', () => { | ||
it('readableCron', () => { | ||
expect(readableCron('01 * * * *')).toBe('hourly'); | ||
expect(readableCron('01 01 * * *')).toBe('daily'); | ||
expect(readableCron('01 01 * * 01')).toBe('weekly'); | ||
expect(readableCron('01 01 01 * *')).toBe('monthly'); | ||
expect(readableCron()).toBe('custom'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters