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

[tests-only] Test member count of LDAP group on webUI #712

Merged
merged 2 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ config = {
"federatedServerNeeded": True,
"filterTags": "~@skip&&~@app-required",
"runAllSuites": True,
"numberOfParts": 21,
"numberOfParts": 30,
"extraSetup": [
{
"name": "configure-app",
Expand Down
16 changes: 16 additions & 0 deletions tests/acceptance/features/webUIProvisioning/groups.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ Feature: add group
And user admin has logged in using the webUI
And the administrator has browsed to the users page

Scenario: An LDAP group should be listed but the member count is not known
Then the group name "grp1" should be listed on the webUI
And the user count of group "grp1" should display 0 users on the webUI
# there are 2 LDAP users in this LDAP group
# TBD if we can or should display that information
#And the user count of group "grp1" should display 2 users on the webUI
# or a step like this: (maybe there should be no count displayed for LDAP groups
#And the user count of group "grp1" should not be displayed on the webUI

Scenario: Adding a simple database group should be possible
When the administrator adds group "simple-group" using the webUI
Then the group name "simple-group" should be listed on the webUI
Expand Down Expand Up @@ -65,6 +74,9 @@ Feature: add group
When the administrator adds user "db-user" to group "db-group" using the webUI
Then user "db-user" should exist
And user "db-user" should belong to group "db-group"
And the user count of group "db-group" should display 0 users on the webUI
# for a database group and user, we should really see the user in the count
#And the user count of group "db-group" should display 1 users on the webUI

@issue-core-25224
Scenario: Adding database user to LDAP group should not be possible
Expand All @@ -80,6 +92,10 @@ Feature: add group
When the administrator adds user "Alice" to group "db-group" using the webUI
Then user "Alice" should exist
And user "Alice" should belong to group "db-group"
And the user count of group "db-group" should display 0 users on the webUI
# for a database group and LDAP user, we should really see the user in the count
# The group and group membership is all on the server, not back in LDAP
#And the user count of group "db-group" should display 1 users on the webUI

@issue-core-25224
Scenario: Adding LDAP user to LDAP group should not be possible
Expand Down