Welcome to mirror list, hosted at ThFree Co, Russian Federation.

statuscodes.feature « features « integration « tests - github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b4f303424d4f25f730ceeb8a4fe2bd907a334197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Feature: statuscodes
  Background:
    Given using api version "2"
    Given user "test1" exists
    Given As an "test1"

  Scenario: Status code when reading notifications without notifiers
    Given list of notifiers is empty
    When sending "GET" to "/apps/notifications/api/v1/notifications?format=json"
    # "204 No Content"
    Then the HTTP status code should be "204"
    # Request-Body is empty: And list of notifications has 0 entries

  Scenario: Status code when reading notifications with notifiers and without notifications
    Given list of notifiers is not empty
    When sending "GET" to "/apps/notifications/api/v1/notifications?format=json"
    Then the HTTP status code should be "200"
    And list of notifications has 0 entries

  Scenario: Status code when reading notifications with notifiers and notification
    Given list of notifiers is not empty
    Given user "test1" has notifications
    When sending "GET" to "/apps/notifications/api/v1/notifications?format=json"
    Then the HTTP status code should be "200"
    And list of notifications has 1 entries

  Scenario: Status code when reading notifications with notifiers and notifications
    Given list of notifiers is not empty
    Given user "test1" has notifications
    Given user "test1" has notifications
    Given user "test1" has notifications
    When sending "GET" to "/apps/notifications/api/v1/notifications?format=json"
    Then the HTTP status code should be "200"
    And list of notifications has 3 entries