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] Added acceptance tests for user:sync command with super/sub-strings in user usernames #508

Merged
merged 1 commit into from
Feb 11, 2020
Merged
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
26 changes: 26 additions & 0 deletions tests/acceptance/features/cliProvisioning/userSync.feature
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,29 @@ Feature: sync user using occ command
And LDAP user "local-user" is resynced
Then the command should have been successful
And user "local-user" should not exist

@skipOnOcV10.3
Scenario: sync a ldap user that is substring of some other ldap users
kiranparajuli589 marked this conversation as resolved.
Show resolved Hide resolved
Given these users have been created with default attributes and without skeleton files:
| username |
| regularuser |
| regular |
When the administrator sets the ldap attribute "displayname" of the entry "uid=regular,ou=TestUsers" to "Test User"
And LDAP user "regular" is resynced
Then user "regular" should exist
And user "regularuser" should exist
And the display name of user "regular" should be "Test User"
kiranparajuli589 marked this conversation as resolved.
Show resolved Hide resolved
And the display name of user "regularuser" should be "Regular User"

@skipOnOcV10.3
Scenario: sync a ldap user that is superstring of some other ldap users
kiranparajuli589 marked this conversation as resolved.
Show resolved Hide resolved
Given these users have been created with default attributes and without skeleton files:
| username |
| regularuser |
| regular |
When the administrator sets the ldap attribute "displayname" of the entry "uid=regularuser,ou=TestUsers" to "Test User"
And LDAP user "regularuser" is resynced
Then user "regular" should exist
And user "regularuser" should exist
And the display name of user "regularuser" should be "Test User"
kiranparajuli589 marked this conversation as resolved.
Show resolved Hide resolved
And the display name of user "regular" should be "Regular User"