Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ldap errors in behat tests #256

Merged
merged 23 commits into from
Aug 15, 2024
Merged

Remove ldap errors in behat tests #256

merged 23 commits into from
Aug 15, 2024

Conversation

heiglandreas
Copy link
Owner

@heiglandreas heiglandreas commented Aug 14, 2024

This change removes the ldap-errors that occured due to already existing
entries from previous calls. For that we first check whether the entry
already exists and if so, delete it so that it can then be recreated.

I opted for this approach instewad of keeping the old entries as the new
one might have slightly different information that would then break the
tests.

Fixes #254

This change removes the ldap-errors that occured due to already existing
entries from previous calls. For that we first check whether the entry
already exists and if so, delete it so that it can then be recreated.

I opted for this approach instewad of keeping the old entries as the new
one might have slightly different information that would then break the
tests.
This makes sure that WordPress is only installed once at the beginning
and also makes sure that the admin-email page is not displayed every now
and then. That requires some magic but as that only happes once at the
beginning that is OK.
As that is specific to the respective WP-version
This allows to set up filters before running tests.

This is especially relevant as a filter needs to be created to be able
to assign multiple roles from LDAP at once.
This allows to use all wordpress versions on all PHP-versions and not
depend on what WordPress has prebuilt
As we are now using our own matrix we can skip the exceptions as those
were required to kinda work around the odd errors from the WordPress
docker images
@heiglandreas heiglandreas merged commit 88c769c into master Aug 15, 2024
18 of 29 checks passed
@heiglandreas heiglandreas deleted the update-behat branch August 15, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Users can't access dashboard on the first login
1 participant