aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/ldap_features/ldap-ocs.feature
blob: 8498ce2094b694d495cc779023734d097b5946ef (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
Feature: LDAP

  Scenario: Creating an new, empty configuration
    Given As an "admin"
    When sending "POST" to "/apps/user_ldap/api/v1/config"
    Then the OCS status code should be "100"
    And the HTTP status code should be "200"
    And the response should contain a tag "configID"

  Scenario: Delete a non-existing configuration
    Given As an "admin"
    When sending "DELETE" to "/apps/user_ldap/api/v1/config/s666"
    Then the OCS status code should be "404"
    And the HTTP status code should be "200"

  Scenario: Delete an invalid configuration
    Given As an "admin"
    When sending "DELETE" to "/apps/user_ldap/api/v1/config/hack0r"
    Then the OCS status code should be "400"
    And the HTTP status code should be "200"

  Scenario: Create and delete a configuration
    Given As an "admin"
    And creating a configuration at "/apps/user_ldap/api/v1/config"
    When deleting the configuration
    Then the OCS status code should be "100"
    And the HTTP status code should be "200"