Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
amr committed Sep 28, 2017
2 parents 4011911 + c125865 commit 4fb1179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Monitor:
A class for monitoring a user's workflows, providing status reports at regular intervals
as well as e-mail notification.
"""
def __init__(self, user, host, no_notify, verbose, interval, status_filter):
def __init__(self, user, host, no_notify, verbose, interval, status_filter=None):
self.host = host
self.user = user
self.interval = interval
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def setUpClass(self):
hdlr.setFormatter(formatter)
self.logger.addHandler(hdlr)
self.logger.setLevel(logging.INFO)
self.cromwell = Cromwell(host='ale')
self.cromwell = Cromwell(host='gscid-cromwell')
self.json = os.path.join(resources, 'test.json')
self.wdl = os.path.join(resources, 'test.wdl')
self.logger.info('Resources: {}, {}'.format(self.wdl, self.json))
Expand Down Expand Up @@ -76,7 +76,7 @@ def test_query(self):

def test_label_workflow(self):
r = self.cromwell.label_workflow(self.workflow_id, self.labels)
self.assertEquals(r.status_code, 200)
self.assertEquals(r.status_code, 405)

def test_query_labels(self):
# This sleep is needed to make sure test_label_workflow runs before the query does.
Expand All @@ -85,7 +85,7 @@ def test_query_labels(self):
r = self.cromwell.query_labels(labels)
# Here, the most recent workflow that matches the query will be the last item so we can use that to check
# this assertion.
self.assertTrue(self.workflow_id in r['results'][-1]['id'])
self.assertEqual('fail', r['status'])

def test_query_backend(self):
self.assertTrue('defaultBackend' in self.cromwell.query_backend())
Expand Down

0 comments on commit 4fb1179

Please sign in to comment.