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

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-07-31 12:43:23 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-07-31 17:28:18 +0300
commitd187271f8154b3f313847c625ba9bfecae9581c7 (patch)
treee3ff5f1467af2d59a989dd003e3583d6aaef8972 /tests
parent740ebb4e73dd9104586b042d63d6303ea3661079 (diff)
Add test for ensuring keeping of displayname
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/Shibboleth.feature1
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/features/Shibboleth.feature b/tests/integration/features/Shibboleth.feature
index 4d2a047c..94a7990e 100644
--- a/tests/integration/features/Shibboleth.feature
+++ b/tests/integration/features/Shibboleth.feature
@@ -63,6 +63,7 @@ Feature: Shibboleth
And I should be redirected to "http://localhost/index.php/apps/files/"
Then The user value "id" should be "student1"
Then The user value "email" should be ""
+ And The user value "display-name" should be "Default displayname of student1"
Scenario: Authenticating using Shibboleth with SAML in provisioning mode and custom mapped attributes
Given The setting "type" is set to "saml"
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index af7cc519..fb0ff724 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -226,7 +226,7 @@ class FeatureContext implements Context {
public function aLocalUserWithUidExists($uid) {
shell_exec(
sprintf(
- 'sudo -u apache OC_PASS=password /opt/rh/rh-php56/root/usr/bin/php %s user:add %s --password-from-env',
+ 'sudo -u apache OC_PASS=password /opt/rh/rh-php56/root/usr/bin/php %s user:add %s --display-name "Default displayname of '.$uid.'" --password-from-env',
__DIR__ . '/../../../../../../occ',
$uid
)