adoroszlai opened a new pull request, #10550:
URL: https://github.com/apache/ozone/pull/10550
## What changes were proposed in this pull request?
`TestSecureOzoneCluster` fails locally (also reproducible in
`flaky-test-check`):
```
Expecting actual:
"scm-sub@localhost"
to contain:
"<hostname>"
at
org.apache.hadoop.ozone.TestSecureOzoneCluster.validateCertificate(TestSecureOzoneCluster.java:1360)
at
org.apache.hadoop.ozone.TestSecureOzoneCluster.testSecureOmReInit(TestSecureOzoneCluster.java:883)
```
because SCM is configured to `localhost`:
https://github.com/apache/ozone/blob/f9552d0bb5818f3a15b90ee58b06a45c3631ae11/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestSecureOzoneCluster.java#L213
but the test expects the actual hostname in certificate issuer name.
Also improve assertions by replacing `assertTrue` with `assertThat`.
https://issues.apache.org/jira/browse/HDDS-15621
## How was this patch tested?
```
$ mvn -am -pl :ozone-integration-test -Dtest='TestSecureOzoneCluster'
-DskipRecon clean test
...
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 232.2 s --
in org.apache.hadoop.ozone.TestSecureOzoneCluster
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]