#2708 pki user-membership-add command add non-existing user in to the group.
Closed: migrated by dmoluguw. Opened by mharmsen.

user-membership-add command adding non-exist user in the group.

Steps to Reproduce:

1.root@pki1 cli # pki -d /root/multihost_tests/certdb/ -h pki1.example.com -p
20080 -n CA_AdminV -c <password> user-membership-add xkdifsd Administrators
------------------------------------
Added membership in "Administrators"
------------------------------------
  Group: Administrators
2. root@pki1 cli # pki -d /root/multihost_tests/certdb/ -h pki1.example.com -p
20080 -n CA_AdminV -c <password> user-membership-del xkdifsd Administrators
--------------------------------------------
Deleted membership in group "Administrators"
--------------------------------------------
3. root@pki1 cli # pki -d /root/multihost_tests/certdb/ -h pki1.example.com -p
20080 -n CA_AdminV -c <password> user-membership-find xkdifsd Administrators
UserNotFoundException: User xkdifsd not found

Actual results:

It adding non existing user to the group.

Expected results:

First it check for user then add it to the group.

Metadata Update from @mharmsen:
- Custom field component adjusted to General
- Custom field feature adjusted to ''
- Custom field origin adjusted to Community
- Custom field proposedmilestone adjusted to ''
- Custom field proposedpriority adjusted to ''
- Custom field reviewer adjusted to ''
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1454625
- Custom field type adjusted to defect
- Custom field version adjusted to ''
- Issue set to the milestone: 0.0 NEEDS_TRIAGE

Metadata Update from @mharmsen:
- Custom field origin adjusted to QE (was: Community)

Per PKI Bug Council of May 25, 2017: 10.5

Metadata Update from @mharmsen:
- Issue set to the milestone: 10.5 (was: 0.0 NEEDS_TRIAGE)

Metadata Update from @mharmsen:
- Custom field lowhangingfruit adjusted to vakwetu: X
- Issue priority set to: minor
- Issue set to the milestone: FUTURE (was: 10.5)

Per 10.5.x/10.6 Triage: FUTURE

edewata: negative case

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2828

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

Metadata