this 'keytool' invocation was moved from qa/tasks/s3tests_java.py to
qa/tasks/rgw.py so that it would also cover the java checksum tests
but that means it runs for any rgw job with https enabled, even if it
doesn't install or use any java stuff. the 'keytool' command itself
comes from jdk packages which aren't installed by default
ignore errors from this command so that subsuites can use https without
installing java
Signed-off-by: Casey Bodley <cbodley@redhat.com>
# add the ssl certificate path
frontends += ' ssl_certificate={}'.format(endpoint.cert.certificate)
frontends += ' ssl_port={}'.format(endpoint.port)
+
+ # install the cert to the java store for java tests. this may fail
+ # with 'keytool: command not found' for jobs that don't install java
+ # stuff, so add check_status=False to ignore
path = 'lib/security/cacerts'
ctx.cluster.only(client).run(
args=['sudo',
'-file', endpoint.cert.certificate,
'-storepass', 'changeit',
],
- stdout=BytesIO()
+ stdout=BytesIO(),
+ check_status=False
)
else: