Skip to main content

Notifications Vendor Test Data


Successful Scenarios

Scenario 1: Get all notifications

  • Test: Scenario 1
  • Test purpose: Get all notifications (no query parameter filters specified)
Query Parameters Expected output
None
  • Status = ‘200’
  • The response is successful, returning a list of two notifications with a mix of status values and payloads.

Scenario 2: Get all new notifications

  • Test: Scenario 2
  • Test purpose: Get all new notifications, by specifying a query parameter to select notifications with NEW status.
Query Parameters Expected output
status=NEW
  • Status = ‘200’
  • The response is successful, returning a list of a single notification with NEW status.

Scenario 3: Get all acknowledged notifications

  • Test: Scenario 3
  • Test purpose: Get all acknowledged notifications, by specifying a query parameter to select notifications with ACKNOWLEDGED status.
Query Parameters Expected output
status=ACKNOWLEDGED
  • Status = ‘200’
  • The response is successful, returning a list of a single notification with ACKNOWLEDGED status.

Error Scenarios

Scenario 4: Invalid date parameters

  • Test: Scenario 4
  • Test purpose: Submit an invalid query where the `created_after` query parameter has a date before the `created_before` query parameter date.
Query Parameters Expected output
  • created_after=2020-01-01T00:00:00
  • created_before=2015-01-01T00:00:00
  • Status = ‘400’
  • A ‘Bad Request’ error response is returned.