Fix test failure in staging job 58/124058/1
authorliamfallon <liam.fallon@est.tech>
Fri, 10 Sep 2021 14:48:31 +0000 (15:48 +0100)
committerliamfallon <liam.fallon@est.tech>
Mon, 13 Sep 2021 08:05:48 +0000 (09:05 +0100)
commit6a48e567dd487780ae34334836c7949d46a3f3ea
tree1e91dec1248770990f166c8805e1041cbca2e1ed
parentb6b7479a46b0d8ac3ae8741554d1085fb9e4a7fe
Fix test failure in staging job

The "keytool" program does not exist in the Jenkins staging job
environment, so the test case that checks for a keytool error message
fails because an unexpected error message is received.

By changing the test case to expect "keytool" rather than "keytool
exited with", then the test will pass when the error message "Cannot
run program "keytool": error=2, No such file or directory" is returned.

Issue-ID: POLICY-3587
Change-Id: I3a6b77fb571cfbf170f5f16bf93eece2d78a7bbb
Signed-off-by: liamfallon <liam.fallon@est.tech>
utils-test/src/test/java/org/onap/policy/common/utils/security/SelfSignedKeyStoreTest.java