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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-09-28 11:15:08 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-09-28 12:19:48 +0300
commit108a8d6c4c696016d0b32ee3a82b693718a011a7 (patch)
tree425c1c9775a2156f93a3f7a55b81e7d4103cdc69
parentc759a78926b8555aa03262478a57eab9371303b0 (diff)
extend integration tests with users with numerical IDs
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--.drone.yml14
-rw-r--r--build/integration/ldap_features/openldap-numerical-id.feature31
2 files changed, 44 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml
index f22f7df69a2..5228d4e6562 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -589,6 +589,16 @@ pipeline:
when:
matrix:
TESTS: integration-ldap-openldap-uid-features
+ integration-ldap-openldap-numerical-id-features:
+ image: nextcloudci/integration-php7.0:integration-php7.0-6
+ commands:
+ - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
+ - ./occ app:enable user_ldap
+ - cd build/integration
+ - ./run.sh ldap_features/openldap-numerical-id.feature
+ when:
+ matrix:
+ TESTS: integration-ldap-openldap-numerical-id-features
integration-trashbin:
image: nextcloudci/integration-php7.0:integration-php7.0-8
commands:
@@ -860,6 +870,8 @@ matrix:
ENABLE_OPENLDAP: true
- TESTS: integration-ldap-openldap-uid-features
ENABLE_OPENLDAP: true
+ - TESTS: integration-ldap-openldap-numerical-id-features
+ ENABLE_OPENLDAP: true
- TESTS: integration-trashbin
- TESTS: integration-remote-api
- TESTS: integration-download
@@ -1042,7 +1054,7 @@ services:
matrix:
TESTS: acceptance
openldap:
- image: nextcloudci/openldap:openldap-4
+ image: nextcloudci/openldap:openldap-5
environment:
- SLAPD_DOMAIN=nextcloud.ci
- SLAPD_ORGANIZATION=Nextcloud
diff --git a/build/integration/ldap_features/openldap-numerical-id.feature b/build/integration/ldap_features/openldap-numerical-id.feature
new file mode 100644
index 00000000000..2d87ba33e6e
--- /dev/null
+++ b/build/integration/ldap_features/openldap-numerical-id.feature
@@ -0,0 +1,31 @@
+Feature: LDAP
+ Background:
+ Given using api version "2"
+ And having a valid LDAP configuration
+ And modify LDAP configuration
+ | ldapExpertUsernameAttr | employeeNumber |
+ | ldapLoginFilter | (&(objectclass=inetorgperson)(employeeNumber=%uid)) |
+
+# Those tests are dedicated to ensure Nc is working when it is provided with
+# users having numerical IDs
+
+Scenario: Look for a expected LDAP users
+ Given As an "admin"
+ And sending "GET" to "/cloud/users"
+ Then the OCS status code should be "200"
+ And the "users" result should match
+ | 92379 | 1 |
+ | 50194 | 1 |
+
+Scenario: check default home of an LDAP user
+ Given As an "admin"
+ And sending "GET" to "/cloud/users/92379"
+ Then the OCS status code should be "200"
+ And the record's fields should match
+ | storageLocation | /dev/shm/nc_int/92379 |
+
+Scenario: Test by logging in
+ Given cookies are reset
+ And Logging in using web as "92379"
+ And Sending a "GET" to "/remote.php/webdav/welcome.txt" with requesttoken
+ Then the HTTP status code should be "200"