# The contents of this file are subject to the terms
#  of the Common Development and Distribution License
# (the License). You may not use this file except in
# compliance with the License.
#
# You can obtain a copy of the License at
# https://opensso.dev.java.net/public/CDDLv1.0.html or
# opensso/legal/CDDLv1.0.txt
# See the License for the specific language governing
# permission and limitations under the License.
#
# When distributing Covered Code, include this CDDL
# Header Notice in each file and include the License file
# at opensso/legal/CDDLv1.0.txt.
# If applicable, add the following below the CDDL Header,
# with the fields enclosed by brackets [] replaced by
# your own identifying information:
# "Portions Copyrighted [year] [name of copyright owner]"
#
#  $Id: DeleteIdentitiesTest.properties,v 1.5 2008/05/19 21:05:44 cmwesley Exp $
# 
# Copyright 2007 Sun Microsystems Inc. All Rights Reserved
#

#
# Property definitions.
#
# description - the purpose of the test case.
# create-setup-realms - a realm or realms that should be created before the 
#         test is executed.  If multiple realms are created the realms should 
#         be separated by a semi-colon (;) and should be in heirarchical order
#         (i.e. /realm1;/realm1/realm2;/realm1/realm2/realm3).
# create-setup-identities - one or more identities that should be created prior 
#         to the execution of the test.  The various pieces of information for 
#         each identity (creation realm, identity name, identity type, and 
#         attribute values should be separated by commas. Each identity should 
#         be separated by a pipe ('|').  See the example value below ...
#         "/myrealm,newuser,User,att-name1=att-value1;att-name2=att-value2|
#         /grouprealm,mygroup,Group|..."
# use-verbose-option - a binary property indicating whether the verbose option
#         should be used.
# use-debug-option - a binary property indicating whether the debug option 
#         should be used.
# use-long-options - a binary property indicating whether the long form of 
#         the options (e.g. "--realm") instead of the short form ("-e")
# message-to-find - one or more strings that should be present in the output
#         (for a test where expected-exit-code equals 0) or the error (for a 
#         test where expected-exit-code does not equal 0).  Multiple strings
#         should be separated by a semi-colon (";").
# delete-identity-realm - the realm in which the identity will be created.
# delete-identity-names - the name(s) of the identity which will be created.
# delete-identity-type - the type of identity that will be created (e.g. "User",
#         "Role", "Group").
# use-datafile-option - a binary property indicating whether the "--datafile"
#         option should be used.
# delete-identities-attributes - a semi-colon delimited list of name and attribute
#         pairs (e.g. <attribute-name1>=<attribute-value1>; 
#         <attribute-name2>=<attribute-value2>;...;
#         <attribute-name(n)>=<attribute-value(n)>
# expected-exit-code - the expected exit status for CLI command being issued.
#         Successful commands should return "0" and failed commands should 
#         return a non-zero value.

deleteidentities-test1-description=Delete a user identity under a sub-realm using long options.
deleteidentities-test1-create-setup-realms=/ldaprealm
deleteidentities-test1-create-setup-identities=/ldaprealm,ldapuser,User,"givenname=ldapuser";"cn=ldapuser";"sn=ldapuser";"userpassword=mysecret";"mail=ldapuser@foo.com";"employeenumber=555";"telephonenumber=555-1212";"inetuserstatus=Active"|/ldaprealm,ldapgroup,Group|/ldaprealm,ldapuser2,User,"givenname=ldapuser2";"cn=ldapuser2";"sn=ldapuser2";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test1-use-verbose-option=false
deleteidentities-test1-use-debug-option=false
deleteidentities-test1-use-long-options=true
deleteidentities-test1-message-to-find=The following User was deleted from /ldaprealm.;    ldapuser
deleteidentities-test1-delete-identities-realm=/ldaprealm
deleteidentities-test1-delete-identities-names=ldapuser
deleteidentities-test1-delete-identities-type=User
deleteidentities-test1-expected-exit-code=0

deleteidentities-test2-description=Delete a user identity under a sub-realm using short options.
deleteidentities-test2-create-setup-realms=/anonrealm;/anonrealm2
deleteidentities-test2-create-setup-identities=/anonrealm,anonymous1,User,"cn=anonymous11";"sn=anonymous11";"userpassword=mysecret";"inetuserstatus=Active"|/anonrealm2,anonymous2,User,"cn=anonymous2";"sn=anonymous2";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test2-use-verbose-option=false
deleteidentities-test2-use-debug-option=false
deleteidentities-test2-use-long-options=false
deleteidentities-test2-message-to-find=The following User was deleted from /anonrealm.;    anonymous1
deleteidentities-test2-delete-identities-realm=/anonrealm
deleteidentities-test2-delete-identities-names=anonymous1
deleteidentities-test2-delete-identities-type=User
deleteidentities-test2-expected-exit-code=0

deleteidentities-test3-description=Delete a user identity under a sub-realm using long options and the verbose option.
deleteidentities-test3-create-setup-realms=/newrealm
deleteidentities-test3-create-setup-identities=/newrealm,newuser,User,"cn=newuser";"sn=newuser";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test3-use-verbose-option=true
deleteidentities-test3-use-debug-option=false
deleteidentities-test3-use-long-options=true
deleteidentities-test3-message-to-find=Process Request ...;Constructing Request Context...;Validating mandatory options...;Processing Sub Command ...;Executing class, com.sun.identity.cli.idrepo.DeleteIdentities.;Authenticating...;Authenticated.;The following User was deleted from /newrealm.;    newuser
deleteidentities-test3-delete-identities-realm=/newrealm
deleteidentities-test3-delete-identities-names=newuser
deleteidentities-test3-delete-identities-type=User
deleteidentities-test3-expected-exit-code=0

deleteidentities-test4-description=Delete a user identity under a sub-realm using long options and the "--debug" option.
deleteidentities-test4-create-setup-realms=/debugrealm
deleteidentities-test4-create-setup-identities=/debugrealm,debuguser,User,"cn=debuguser";"sn=debuguser";"userpassword=mysecret";"inetuserstatus=Active"|/debugrealm,debuggroup,Group
deleteidentities-test4-use-verbose-option=false
deleteidentities-test4-use-debug-option=true
deleteidentities-test4-use-long-options=true
deleteidentities-test4-message-to-find=The following User was deleted from /debugrealm.;    debuguser
deleteidentities-test4-delete-identities-realm=/debugrealm
deleteidentities-test4-delete-identities-names=debuguser
deleteidentities-test4-delete-identities-type=User
deleteidentities-test4-expected-exit-code=0

deleteidentities-test5-description=Delete a user identity under a sub-realm using long options, the "--verbose" option, and the "--debug" option.
deleteidentities-test5-create-setup-realms=/jdbcrealm
deleteidentities-test5-create-setup-identities=/jdbcrealm,jdbcuser,User,"cn=jdbcuser";"sn=jdbcuser";"userpassword=mysecret";"inetuserstatus=Active"|/jdbcrealm,jdbcuser3,User,"cn=jdbcuser3";"sn=jdbcuser3";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test5-use-verbose-option=true
deleteidentities-test5-use-debug-option=true
deleteidentities-test5-use-long-options=true
deleteidentities-test5-message-to-find=Process Request ...;Constructing Request Context...;Validating mandatory options...;Processing Sub Command ...;Executing class, com.sun.identity.cli.idrepo.DeleteIdentities.;Authenticating...;Authenticated.;The following User was deleted from /jdbcrealm.;    jdbcuser
deleteidentities-test5-delete-identities-realm=/jdbcrealm
deleteidentities-test5-delete-identities-names=jdbcuser
deleteidentities-test5-delete-identities-type=User
deleteidentities-test5-expected-exit-code=0

deleteidentities-test6-description=Attempt to delete a user identity which does not exist.
deleteidentities-test6-create-setup-realms=/samerealm
deleteidentities-test6-create-setup-identities=
deleteidentities-test6-use-verbose-option=false
deleteidentities-test6-use-debug-option=false
deleteidentities-test6-use-long-options=false
deleteidentities-test6-message-to-find=Identity, userdoesnotexist of type User does not exist in realm, /samerealm.
deleteidentities-test6-delete-identities-realm=/samerealm
deleteidentities-test6-delete-identities-names=userdoesnotexist
deleteidentities-test6-delete-identities-type=User
deleteidentities-test6-expected-exit-code=127

deleteidentities-test7-description=Attempt to delete a group identity as a user identity.
deleteidentities-test7-create-setup-realms=/newrealm1;/newrealm1/newrealm2
deleteidentities-test7-create-setup-identities=/newrealm1/newrealm2,newgroup7,Group
deleteidentities-test7-use-verbose-option=false
deleteidentities-test7-use-debug-option=true
deleteidentities-test7-use-long-options=false
deleteidentities-test7-message-to-find=Identity, newgroup7 of type User does not exist in realm, /newrealm1/newrealm2.
deleteidentities-test7-delete-identities-realm=/newrealm1/newrealm2
deleteidentities-test7-delete-identities-names=newgroup7
deleteidentities-test7-delete-identities-type=User
deleteidentities-test7-expected-exit-code=127

deleteidentities-test8-description=Attempt to delete a role identity as a user identity.
deleteidentities-test8-create-setup-realms=/realm1;/realm1/realm2;/realm1/realm2/realm3
deleteidentities-test8-create-setup-identities=/realm1/realm2/realm3,newrole8,Role
deleteidentities-test8-use-verbose-option=false
deleteidentities-test8-use-debug-option=true
deleteidentities-test8-use-long-options=false
deleteidentities-test8-message-to-find=Identity, newrole8 of type User does not exist in realm, /realm1/realm2/realm3.
deleteidentities-test8-delete-identities-realm=/realm1/realm2/realm3
deleteidentities-test8-delete-identities-names=newrole8
deleteidentities-test8-delete-identities-type=User
deleteidentities-test8-expected-exit-code=127

deleteidentities-test9-description=Attempt to delete a user identity in a realm that does not exist.
deleteidentities-test9-create-setup-realms=/somerealm
deleteidentities-test9-create-setup-identities=/somerealm,someuser,User,"cn=someuser";"sn=someuser";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test9-use-verbose-option=false
deleteidentities-test9-use-debug-option=true
deleteidentities-test9-use-long-options=false
deleteidentities-test9-message-to-find=Realm /doesnotexist does not exist.
deleteidentities-test9-delete-identities-realm=/doesnotexist
deleteidentities-test9-delete-identities-names=someuser
deleteidentities-test9-delete-identities-type=User
deleteidentities-test9-expected-exit-code=127

deleteidentities-test10-description=Attempt to delete a user identity without providing any identity names.
deleteidentities-test10-create-setup-realms=/somerealm10
deleteidentities-test10-create-setup-identities=
deleteidentities-test10-use-verbose-option=false
deleteidentities-test10-use-debug-option=false
deleteidentities-test10-use-long-options=true
deleteidentities-test10-message-to-find=Incorrect option(s), {0}.
deleteidentities-test10-delete-identities-realm=/somerealm10
deleteidentities-test10-delete-identities-names=
deleteidentities-test10-delete-identities-type=User
deleteidentities-test10-expected-exit-code=11

deleteidentities-test11-description=Delete multiple users with a single command.
deleteidentities-test11-create-setup-realms=/somerealm11
deleteidentities-test11-create-setup-identities=/somerealm11,someuser1,User,"cn=someuser1";"sn=someuser1";"userpassword=mysecret";"inetuserstatus=Active"|/somerealm11,someuser2,User,"cn=someuser2";"sn=someuser2";"userpassword=mysecret";"inetuserstatus=Active"|/somerealm11,someuser3,User,"cn=someuser3";"sn=someuser3";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test11-use-verbose-option=false
deleteidentities-test11-use-debug-option=false
deleteidentities-test11-use-long-options=true
deleteidentities-test11-message-to-find=The following Users were deleted from /somerealm11.;    someuser1;    someuser2;    someuser3
deleteidentities-test11-delete-identities-realm=/somerealm11
deleteidentities-test11-delete-identities-names=someuser1 someuser2 someuser3
deleteidentities-test11-delete-identities-type=User
deleteidentities-test11-expected-exit-code=0

deleteidentities-test12-description=Delete multiple users with 240 character identity names.
deleteidentities-test12-create-setup-realms=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test12-create-setup-identities=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,a240characteridentityname678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,User,"cn=a240charid";"sn=a240charid";"userpassword=mysecret";"inetuserstatus=Active"|/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,b240characteridentityname678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,User,"cn=b240charid";"sn=b240charid";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test12-use-verbose-option=false
deleteidentities-test12-use-debug-option=false
deleteidentities-test12-use-long-options=true
deleteidentities-test12-message-to-find=The following Users were deleted from /a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.;    a240characteridentityname678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890;    b240characteridentityname678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test12-delete-identities-realm=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test12-delete-identities-names=a240characteridentityname678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 b240characteridentityname678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test12-delete-identities-type=User
deleteidentities-test12-expected-exit-code=0

deleteidentities-test13-description=Delete a group identity under a sub-realm using long options.
deleteidentities-test13-create-setup-realms=/ldaprealm
deleteidentities-test13-create-setup-identities=/ldaprealm,ldapuser,User,"givenname=ldapuser";"cn=ldapuser";"sn=ldapuser";"userpassword=mysecret";"mail=ldapuser@foo.com";"employeenumber=555";"telephonenumber=555-1212";"inetuserstatus=Active"|/ldaprealm,ldapgroup,Group|/ldaprealm,ldapuser2,User,"givenname=ldapuser2";"cn=ldapuser2";"sn=ldapuser2";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test13-use-verbose-option=false
deleteidentities-test13-use-debug-option=false
deleteidentities-test13-use-long-options=true
deleteidentities-test13-message-to-find=The following Group was deleted from /ldaprealm.;    ldapgroup
deleteidentities-test13-delete-identities-realm=/ldaprealm
deleteidentities-test13-delete-identities-names=ldapgroup
deleteidentities-test13-delete-identities-type=Group
deleteidentities-test13-expected-exit-code=0

deleteidentities-test14-description=Delete a group identity under a sub-realm using short options.
deleteidentities-test14-create-setup-realms=/anonrealm;/anonrealm2
deleteidentities-test14-create-setup-identities=/anonrealm,anongroup1,Group|/anonrealm2,anongroup2,Group
deleteidentities-test14-use-verbose-option=false
deleteidentities-test14-use-debug-option=false
deleteidentities-test14-use-long-options=false
deleteidentities-test14-message-to-find=The following Group was deleted from /anonrealm.;    anongroup1
deleteidentities-test14-delete-identities-realm=/anonrealm
deleteidentities-test14-delete-identities-names=anongroup1
deleteidentities-test14-delete-identities-type=Group
deleteidentities-test14-expected-exit-code=0

deleteidentities-test15-description=Delete a group identity under a sub-realm using long options and the verbose option.
deleteidentities-test15-create-setup-realms=/newrealm
deleteidentities-test15-create-setup-identities=/newrealm,newuser,User,"cn=newuser";"sn=newuser";"userpassword=mysecret";"inetuserstatus=Active"|/newrealm,newgroup,Group
deleteidentities-test15-use-verbose-option=true
deleteidentities-test15-use-debug-option=false
deleteidentities-test15-use-long-options=true
deleteidentities-test15-message-to-find=Process Request ...;Constructing Request Context...;Validating mandatory options...;Processing Sub Command ...;Executing class, com.sun.identity.cli.idrepo.DeleteIdentities.;Authenticating...;Authenticated.;The following Group was deleted from /newrealm.;    newgroup
deleteidentities-test15-delete-identities-realm=/newrealm
deleteidentities-test15-delete-identities-names=newgroup
deleteidentities-test15-delete-identities-type=Group
deleteidentities-test15-expected-exit-code=0

deleteidentities-test16-description=Delete a group identity under a sub-realm using long options and "--debug" option.
deleteidentities-test16-create-setup-realms=/debugrealm
deleteidentities-test16-create-setup-identities=/debugrealm,debuguser,User,"cn=debuguser";"sn=debuguser";"userpassword=mysecret";"inetuserstatus=Active"|/debugrealm,debuggroup,Group
deleteidentities-test16-use-verbose-option=false
deleteidentities-test16-use-debug-option=true
deleteidentities-test16-use-long-options=true
deleteidentities-test16-message-to-find=The following Group was deleted from /debugrealm.;    debuggroup
deleteidentities-test16-delete-identities-realm=/debugrealm
deleteidentities-test16-delete-identities-names=debuggroup
deleteidentities-test16-delete-identities-type=Group
deleteidentities-test16-expected-exit-code=0

deleteidentities-test17-description=Delete a group identity under a sub-realm using long options, the "--verbose" option, and the "--debug" option.
deleteidentities-test17-create-setup-realms=/jdbcrealm
deleteidentities-test17-create-setup-identities=/jdbcrealm,jdbcgroup,Group|/jdbcrealm,jdbcuser3,User,"cn=jdbcuser3";"sn=jdbcuser3";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test17-use-verbose-option=true
deleteidentities-test17-use-debug-option=true
deleteidentities-test17-use-long-options=true
deleteidentities-test17-message-to-find=Process Request ...;Constructing Request Context...;Validating mandatory options...;Processing Sub Command ...;Executing class, com.sun.identity.cli.idrepo.DeleteIdentities.;Authenticating...;Authenticated.;The following Group was deleted from /jdbcrealm.;    jdbcgroup
deleteidentities-test17-delete-identities-realm=/jdbcrealm
deleteidentities-test17-delete-identities-names=jdbcgroup
deleteidentities-test17-delete-identities-type=Group
deleteidentities-test17-expected-exit-code=0

deleteidentities-test18-description=Attempt to delete a group identity which does not exist.
deleteidentities-test18-create-setup-realms=/samerealm
deleteidentities-test18-create-setup-identities=
deleteidentities-test18-use-verbose-option=false
deleteidentities-test18-use-debug-option=false
deleteidentities-test18-use-long-options=false
deleteidentities-test18-message-to-find=Identity, groupdoesnotexist of type Group does not exist in realm, /samerealm.
deleteidentities-test18-delete-identities-realm=/samerealm
deleteidentities-test18-delete-identities-names=groupdoesnotexist
deleteidentities-test18-delete-identities-type=Group
deleteidentities-test18-expected-exit-code=127

deleteidentities-test19-description=Attempt to delete a group identity as a group identity.
deleteidentities-test19-create-setup-realms=/newrealm1;/newrealm1/newrealm2
deleteidentities-test19-create-setup-identities=/newrealm1/newrealm2,newuser7,User,"cn=newuser7";"sn=newuser7";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test19-use-verbose-option=false
deleteidentities-test19-use-debug-option=true
deleteidentities-test19-use-long-options=false
deleteidentities-test19-message-to-find=Identity, newuser7 of type Group does not exist in realm, /newrealm1/newrealm2.
deleteidentities-test19-delete-identities-realm=/newrealm1/newrealm2
deleteidentities-test19-delete-identities-names=newuser7
deleteidentities-test19-delete-identities-type=Group
deleteidentities-test19-expected-exit-code=127

deleteidentities-test20-description=Attempt to delete a role identity as a group identity.
deleteidentities-test20-create-setup-realms=/realm1;/realm1/realm2;/realm1/realm2/realm3
deleteidentities-test20-create-setup-identities=/realm1/realm2/realm3,newrole8,Role
deleteidentities-test20-use-verbose-option=false
deleteidentities-test20-use-debug-option=true
deleteidentities-test20-use-long-options=false
deleteidentities-test20-message-to-find=Identity, newrole8 of type Group does not exist in realm, /realm1/realm2/realm3.
deleteidentities-test20-delete-identities-realm=/realm1/realm2/realm3
deleteidentities-test20-delete-identities-names=newrole8
deleteidentities-test20-delete-identities-type=Group
deleteidentities-test20-expected-exit-code=127

deleteidentities-test21-description=Attempt to delete a group identity in a realm that does not exist.
deleteidentities-test21-create-setup-realms=/somerealm
deleteidentities-test21-create-setup-identities=/somerealm,somegroup,Group
deleteidentities-test21-use-verbose-option=false
deleteidentities-test21-use-debug-option=true
deleteidentities-test21-use-long-options=false
deleteidentities-test21-message-to-find=Realm /doesnotexist does not exist.
deleteidentities-test21-delete-identities-realm=/doesnotexist
deleteidentities-test21-delete-identities-names=somegroup
deleteidentities-test21-delete-identities-type=Group
deleteidentities-test21-expected-exit-code=127

deleteidentities-test22-description=Attempt to delete a group identity without providing any identity names.
deleteidentities-test22-create-setup-realms=/somerealm22
deleteidentities-test22-create-setup-identities=
deleteidentities-test22-use-verbose-option=false
deleteidentities-test22-use-debug-option=false
deleteidentities-test22-use-long-options=false
deleteidentities-test22-message-to-find=Incorrect option(s), {0}.
deleteidentities-test22-delete-identities-realm=/somerealm22
deleteidentities-test22-delete-identities-names=
deleteidentities-test22-delete-identities-type=Group
deleteidentities-test22-expected-exit-code=11

deleteidentities-test23-description=Delete multiple groups with a single command.
deleteidentities-test23-create-setup-realms=/somerealm23
deleteidentities-test23-create-setup-identities=/somerealm23,somegroup1,Group|/somerealm23,somegroup2,Group|/somerealm23,somegroup3,Group
deleteidentities-test23-use-verbose-option=false
deleteidentities-test23-use-debug-option=false
deleteidentities-test23-use-long-options=true
deleteidentities-test23-message-to-find=The following Groups were deleted from /somerealm23.;    somegroup1;    somegroup2;    somegroup3
deleteidentities-test23-delete-identities-realm=/somerealm23
deleteidentities-test23-delete-identities-names=somegroup1 somegroup2 somegroup3
deleteidentities-test23-delete-identities-type=Group
deleteidentities-test23-expected-exit-code=0

deleteidentities-test24-description=Delete multiple groups with 240 character identity names.
deleteidentities-test24-create-setup-realms=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test24-create-setup-identities=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,a240charactergroupname345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,Group|/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,b240charactergroupname345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,Group
deleteidentities-test24-use-verbose-option=false
deleteidentities-test24-use-debug-option=false
deleteidentities-test24-use-long-options=true
deleteidentities-test24-message-to-find=The following Groups were deleted from /a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.;    a240charactergroupname345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890;    b240charactergroupname345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test24-delete-identities-realm=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test24-delete-identities-names=a240charactergroupname345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 b240charactergroupname345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test24-delete-identities-type=Group
deleteidentities-test24-expected-exit-code=0

deleteidentities-test25-description=Delete a role identity under a sub-realm using long options.
deleteidentities-test25-create-setup-realms=/ldaprealm
deleteidentities-test25-create-setup-identities=/ldaprealm,ldapuser,User,"givenname=ldapuser";"cn=ldapuser";"sn=ldapuser";"userpassword=mysecret";"mail=ldapuser@foo.com";"employeenumber=555";"telephonenumber=555-1212";"inetuserstatus=Active"|/ldaprealm,ldaprole,Role|/ldaprealm,ldapuser2,User,"givenname=ldapuser2";"cn=ldapuser2";"sn=ldapuser2";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test25-use-verbose-option=false
deleteidentities-test25-use-debug-option=false
deleteidentities-test25-use-long-options=true
deleteidentities-test25-message-to-find=The following Role was deleted from /ldaprealm.;    ldaprole
deleteidentities-test25-delete-identities-realm=/ldaprealm
deleteidentities-test25-delete-identities-names=ldaprole
deleteidentities-test25-delete-identities-type=Role
deleteidentities-test25-expected-exit-code=0

deleteidentities-test26-description=Delete a role identity under a sub-realm using short options.
deleteidentities-test26-create-setup-realms=/anonrealm;/anonrealm2
deleteidentities-test26-create-setup-identities=/anonrealm,anonrole1,Role|/anonrealm2,anonrole2,Role
deleteidentities-test26-use-verbose-option=false
deleteidentities-test26-use-debug-option=false
deleteidentities-test26-use-long-options=false
deleteidentities-test26-message-to-find=The following Role was deleted from /anonrealm.;    anonrole1
deleteidentities-test26-delete-identities-realm=/anonrealm
deleteidentities-test26-delete-identities-names=anonrole1
deleteidentities-test26-delete-identities-type=Role
deleteidentities-test26-expected-exit-code=0

deleteidentities-test27-description=Delete a role identity under a sub-realm using long options and the verbose option.
deleteidentities-test27-create-setup-realms=/newrealm
deleteidentities-test27-create-setup-identities=/newrealm,newuser,User,"cn=newuser";"sn=newuser";"userpassword=mysecret";"inetuserstatus=Active"|/newrealm,newrole,Role
deleteidentities-test27-use-verbose-option=true
deleteidentities-test27-use-debug-option=false
deleteidentities-test27-use-long-options=true
deleteidentities-test27-message-to-find=Process Request ...;Constructing Request Context...;Validating mandatory options...;Processing Sub Command ...;Executing class, com.sun.identity.cli.idrepo.DeleteIdentities.;Authenticating...;Authenticated.;The following Role was deleted from /newrealm.;    newrole
deleteidentities-test27-delete-identities-realm=/newrealm
deleteidentities-test27-delete-identities-names=newrole
deleteidentities-test27-delete-identities-type=Role
deleteidentities-test27-expected-exit-code=0

deleteidentities-test28-description=Delete a role identity under a sub-realm using long options and the "--debug" option.
deleteidentities-test28-create-setup-realms=/debugrealm
deleteidentities-test28-create-setup-identities=/debugrealm,debuguser,User,"cn=debuguser";"sn=debuguser";"userpassword=mysecret";"inetuserstatus=Active"|/debugrealm,debugrole,Role
deleteidentities-test28-use-verbose-option=false
deleteidentities-test28-use-debug-option=true
deleteidentities-test28-use-long-options=true
deleteidentities-test28-message-to-find=The following Role was deleted from /debugrealm.;    debugrole
deleteidentities-test28-delete-identities-realm=/debugrealm
deleteidentities-test28-delete-identities-names=debugrole
deleteidentities-test28-delete-identities-type=Role
deleteidentities-test28-expected-exit-code=0

deleteidentities-test29-description=Delete a role identity under a sub-realm using long options, the "--verbose" option, and the "--debug" option.
deleteidentities-test29-create-setup-realms=/jdbcrealm
deleteidentities-test29-create-setup-identities=/jdbcrealm,jdbcrole,Role|/jdbcrealm,jdbcuser3,User,"cn=jdbcuser3";"sn=jdbcuser3";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test29-use-verbose-option=true
deleteidentities-test29-use-debug-option=true
deleteidentities-test29-use-long-options=true
deleteidentities-test29-message-to-find=Process Request ...;Constructing Request Context...;Validating mandatory options...;Processing Sub Command ...;Executing class, com.sun.identity.cli.idrepo.DeleteIdentities.;Authenticating...;Authenticated.;The following Role was deleted from /jdbcrealm.;    jdbcrole
deleteidentities-test29-delete-identities-realm=/jdbcrealm
deleteidentities-test29-delete-identities-names=jdbcrole
deleteidentities-test29-delete-identities-type=Role
deleteidentities-test29-expected-exit-code=0

deleteidentities-test30-description=Attempt to delete a role identity which does not exist.
deleteidentities-test30-create-setup-realms=/samerealm
deleteidentities-test30-create-setup-identities=
deleteidentities-test30-use-verbose-option=false
deleteidentities-test30-use-debug-option=false
deleteidentities-test30-use-long-options=false
deleteidentities-test30-message-to-find=Identity, roledoesnotexist of type Role does not exist in realm, /samerealm.
deleteidentities-test30-delete-identities-realm=/samerealm
deleteidentities-test30-delete-identities-names=roledoesnotexist
deleteidentities-test30-delete-identities-type=Role
deleteidentities-test30-expected-exit-code=127

deleteidentities-test31-description=Attempt to delete a user identity as a role identity.
deleteidentities-test31-create-setup-realms=/newrealm1;/newrealm1/newrealm2
deleteidentities-test31-create-setup-identities=/newrealm1/newrealm2,newuser7,User,"cn=newuser7";"sn=newuser7";"userpassword=mysecret";"inetuserstatus=Active"
deleteidentities-test31-use-verbose-option=false
deleteidentities-test31-use-debug-option=true
deleteidentities-test31-use-long-options=false
deleteidentities-test31-message-to-find=Identity, newuser7 of type Role does not exist in realm, /newrealm1/newrealm2.
deleteidentities-test31-delete-identities-realm=/newrealm1/newrealm2
deleteidentities-test31-delete-identities-names=newuser7
deleteidentities-test31-delete-identities-type=Role
deleteidentities-test31-expected-exit-code=127

deleteidentities-test32-description=Attempt to delete a group identity as a role identity.
deleteidentities-test32-create-setup-realms=/realm1;/realm1/realm2;/realm1/realm2/realm3
deleteidentities-test32-create-setup-identities=/realm1/realm2/realm3,newgroup8,Role
deleteidentities-test32-use-verbose-option=false
deleteidentities-test32-use-debug-option=true
deleteidentities-test32-use-long-options=false
deleteidentities-test32-message-to-find=Identity, newrole8 of type Role does not exist in realm, /realm1/realm2/realm3.
deleteidentities-test32-delete-identities-realm=/realm1/realm2/realm3
deleteidentities-test32-delete-identities-names=newgroup8
deleteidentities-test32-delete-identities-type=Role
deleteidentities-test32-expected-exit-code=127

deleteidentities-test33-description=Attempt to delete a role identity in a realm that does not exist.
deleteidentities-test33-create-setup-realms=/somerealm
deleteidentities-test33-create-setup-identities=/somerealm,somerole,Role
deleteidentities-test33-use-verbose-option=false
deleteidentities-test33-use-debug-option=true
deleteidentities-test33-use-long-options=false
deleteidentities-test33-message-to-find=Cannot process the request because realm /doesnotexist does not exist.
deleteidentities-test33-delete-identities-realm=/doesnotexist
deleteidentities-test33-delete-identities-names=somerole
deleteidentities-test33-delete-identities-type=Role
deleteidentities-test33-expected-exit-code=127

deleteidentities-test34-description=Attempt to delete a role identity without providing any identity names.
deleteidentities-test34-create-setup-realms=/somerealm34
deleteidentities-test34-create-setup-identities=
deleteidentities-test34-use-verbose-option=false
deleteidentities-test34-use-debug-option=false
deleteidentities-test34-use-long-options=false
deleteidentities-test34-message-to-find=Incorrect option(s), {0}.
deleteidentities-test34-delete-identities-realm=/somerealm34
deleteidentities-test34-delete-identities-names=
deleteidentities-test34-delete-identities-type=Role
deleteidentities-test34-expected-exit-code=11

deleteidentities-test35-description=Delete multiple roles with a single command.
deleteidentities-test35-create-setup-realms=/somerealm35
deleteidentities-test35-create-setup-identities=/somerealm35,somerole1,Role|/somerealm35,somerole2,Role|/somerealm35,somerole3,Role
deleteidentities-test35-use-verbose-option=false
deleteidentities-test35-use-debug-option=false
deleteidentities-test35-use-long-options=true
deleteidentities-test35-message-to-find=The following Roles were deleted from /somerealm35.;    somerole1;    somerole2;    somerole3
deleteidentities-test35-delete-identities-realm=/somerealm35
deleteidentities-test35-delete-identities-names=somerole1 somerole2 somerole3
deleteidentities-test35-delete-identities-type=Role
deleteidentities-test35-expected-exit-code=0

deleteidentities-test36-description=Delete multiple roles with 240 character identity names.
deleteidentities-test36-create-setup-realms=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test36-create-setup-identities=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,a240characterrolename2345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,Role|/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,b240characterrolename2345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890,Role
deleteidentities-test36-use-verbose-option=false
deleteidentities-test36-use-debug-option=false
deleteidentities-test36-use-long-options=true
deleteidentities-test36-message-to-find=The following Roles were deleted from /a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890.;    a240characterrolename2345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890;    b240characterrolename2345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test36-delete-identities-realm=/a240characterrealmname34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test36-delete-identities-names=a240characterrolename2345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 b240characterrolename2345678901234567890123456789012345678901234567890123456789012345678900123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
deleteidentities-test36-delete-identities-type=Role
deleteidentities-test36-expected-exit-code=0

deleteidentities-test37-description=Attempt to delete an identity using an invalid identity type.
deleteidentities-test37-create-setup-realms=/somerealm
deleteidentities-test37-create-setup-identities=/somerealm,somerole,Role
deleteidentities-test37-use-verbose-option=false
deleteidentities-test37-use-debug-option=true
deleteidentities-test37-use-long-options=false
deleteidentities-test37-message-to-find=Not a supported type: Notvalid.
deleteidentities-test37-delete-identities-realm=/somerealm
deleteidentities-test37-delete-identities-names=somerole
deleteidentities-test37-delete-identities-type=Notvalid
deleteidentities-test37-expected-exit-code=127

deleteidentities-test38-description=Attempt to delete an identity without providing an identity type.
deleteidentities-test38-create-setup-realms=/somerealm
deleteidentities-test38-create-setup-identities=/somerealm,somerole,Role
deleteidentities-test38-use-verbose-option=false
deleteidentities-test38-use-debug-option=false
deleteidentities-test38-use-long-options=true
deleteidentities-test38-message-to-find=Incorrect option(s), {0}.
deleteidentities-test38-delete-identities-realm=/somerealm
deleteidentities-test38-delete-identities-names=somerole
deleteidentities-test38-delete-identities-type=
deleteidentities-test38-expected-exit-code=11

deleteidentities-test39-description=Attempt to delete an identity without providing a realm.
deleteidentities-test39-create-setup-realms=/somerealm
deleteidentities-test39-create-setup-identities=/somerealm,somerole,Role
deleteidentities-test39-use-verbose-option=false
deleteidentities-test39-use-debug-option=false
deleteidentities-test39-use-long-options=true
deleteidentities-test39-message-to-find=Incorrect option(s), {0}.
deleteidentities-test39-delete-identities-realm=
deleteidentities-test39-delete-identities-names=somerole
deleteidentities-test39-delete-identities-type=Role
deleteidentities-test39-expected-exit-code=11
