Update node/src/integration-test/kotlin/net/corda/node/jmx/Publish.kt

Co-authored-by: Viktor Kolomeyko <viktor.kolomeyko@r3.com>
This commit is contained in:
Chris Cochrane 2022-06-08 16:01:25 +01:00 committed by GitHub
parent 3c0c1a01a2
commit 0232146515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,10 @@ class PublishTest {
driver(DriverParameters(notarySpecs = emptyList(), jmxPolicy = JmxPolicy.defaultEnabled())) {
val jmxAddress = startNode().get().jmxAddress.toString()
val nodeStatusURL = URL("http://$jmxAddress/jolokia/read/net.corda:*")
var httpResponse = HttpURLConnection.HTTP_NOT_FOUND
val httpResponse = with(nodeStatusURL.openConnection() as HttpURLConnection) {
requestMethod = "GET"
responseCode
}
with(nodeStatusURL.openConnection() as HttpURLConnection) {
requestMethod = "GET"
httpResponse = responseCode