]
Michal Petrov reassigned ELY-1084:
----------------------------------
Assignee: Michal Petrov (was: Darran Lofthouse)
CS tool, There is success message when we try to remove non-existents
entry from storage file.
----------------------------------------------------------------------------------------------
Key: ELY-1084
URL:
https://issues.jboss.org/browse/ELY-1084
Project: WildFly Elytron
Issue Type: Bug
Components: Credential Store
Reporter: Hynek Švábek
Assignee: Michal Petrov
When we try remove non-existent alias entry from credential store storage file then we
get success message.
There is expected error message.
*How to reproduce:*
Create credential store storage file and add there alias
{code}
java -jar wildfly-elytron-tool.jar credential-store --remove secret_alias --password
pass123 --uri
"cr-store://test1.jceks?modifiable=true;create=true;keyStoreType=JCEKS" -l
test1.jceks
{code}
We run command for remove alias from storage and in both cases we get success message:
{code}
java -jar wildfly-elytron-tool.jar credential-store --remove secret_alias --password
pass123 --uri
"cr-store://test1.jceks?modifiable=true;create=true;keyStoreType=JCEKS" -l
test1.jceks
Alias "secret_alias" has been successfully removed
java -jar wildfly-elytron-tool.jar credential-store --remove secret_alias --password
pass123 --uri
"cr-store://test1.jceks?modifiable=true;create=true;keyStoreType=JCEKS" -l
test1.jceks
Alias "secret_alias" has been successfully removed
{code}