From 746d5df4c59b5c1994e8c39e3758c58a261db472 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 30 Apr 2020 17:35:18 +0200 Subject: [PATCH] Document LDAP restart for corrupt users Added more detail about how to wipe the users from LDAP by restarting the container. --- docs/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/testing.md b/docs/testing.md index 580efa5b8..c23d77ed0 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -146,5 +146,5 @@ If you want to work on a specific issue If the changes also affect the `ocis` repository make sure the changes get ported over there immediately, otherwise the tests will start failing there. ### Notes -- in a normal case the test-code cleans up users after the test-run, but if a test-run is interrupted (e.g. by CTRL+C) users might have been left on the LDAP server. In that case rerunning the tests requires wiping the users in the ldap server, otherwise the tests will fail when trying to populate the users. +- in a normal case the test-code cleans up users after the test-run, but if a test-run is interrupted (e.g. by CTRL+C) users might have been left on the LDAP server. In that case rerunning the tests requires wiping the users in the ldap server, otherwise the tests will fail when trying to populate the users. This can be done by simply running `docker stop docker-slapd && docker rm docker-slapd` and [restarting the LDAP server container](#run-a-ldap-server-in-a-docker-container) - the tests usually create users in the OU `TestUsers` with usernames specified in the feature file. If not defined in the feature file, most users have the password `123456`, defined by `regularUserPassword` in `behat.yml`, but other passwords are also used, see [`\FeatureContext::getPasswordForUser()`](https://github.com/owncloud/core/blob/master/tests/acceptance/features/bootstrap/FeatureContext.php#L386) for mapping and [`\FeatureContext::__construct`](https://github.com/owncloud/core/blob/master/tests/acceptance/features/bootstrap/FeatureContext.php#L1668) for the password definitions.