Working functionality for filtering notifications and all tests passing.

This commit is contained in:
Nicholas Staples
2016-04-04 16:34:06 +01:00
parent dc5c552f5f
commit a41dda8884
8 changed files with 125 additions and 11 deletions

View File

@@ -21,10 +21,14 @@ class NotificationApiClient(BaseAPIClient):
params=params
)
def get_notifications_for_service(self, service_id, job_id=None, page=None):
def get_notifications_for_service(self, service_id, job_id=None, template_type=None, status=None, page=None):
params = {}
if page is not None:
params['page'] = page
if template_type is not None:
params['template_type'] = template_type
if status is not None:
params['status'] = status
if job_id:
return self.get(
url='/service/{}/job/{}/notifications'.format(service_id, job_id),