Navigation Menu

Skip to content

Commit

Permalink
si tests (#104)
Browse files Browse the repository at this point in the history
* adding si tests for jobs

* pep8 cleanup

* simplifying code based on pr feedback

* fixing double entry issue.  it appears to have worked but was coded incorrectly

* reverting back
  • Loading branch information
kensipe committed Nov 18, 2016
1 parent 4336d5b commit cb17dd6
Show file tree
Hide file tree
Showing 4 changed files with 722 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -16,3 +16,6 @@ project/plugins/project/
.scala_dependencies
.worksheet
.idea/

# python
*.pyc
25 changes: 25 additions & 0 deletions tests/system/common.py
@@ -0,0 +1,25 @@


def job_no_schedule(id='pikachu', cmd='sleep 10000'):
return {
'id': id,
'description': 'electrifying rodent',
'run': {
'cmd': cmd,
'cpus': 0.01,
'mem': 32,
'disk': 0
}
}


def schedule():
return {
"concurrencyPolicy": "ALLOW",
"cron": "20 0 * * *",
"enabled": True,
"id": "nightly",
"nextRunAt": "2016-07-26T00:20:00.000+0000",
"startingDeadlineSeconds": 900,
"timezone": "UTC"
}

0 comments on commit cb17dd6

Please sign in to comment.