diff --git a/node/src/integration-test/kotlin/net/corda/node/AuthDBTests.kt b/node/src/integration-test/kotlin/net/corda/node/AuthDBTests.kt index d7810db393..c05824f972 100644 --- a/node/src/integration-test/kotlin/net/corda/node/AuthDBTests.kt +++ b/node/src/integration-test/kotlin/net/corda/node/AuthDBTests.kt @@ -11,16 +11,12 @@ import net.corda.core.messaging.startFlow import net.corda.finance.flows.CashIssueFlow import net.corda.node.internal.Node import net.corda.node.internal.StartedNode -import net.corda.node.services.config.AuthDataSourceType import net.corda.node.services.Permissions import net.corda.node.services.config.PasswordEncryption -import net.corda.node.services.config.SecurityConfiguration -import net.corda.nodeapi.internal.config.User -import net.corda.nodeapi.internal.config.toConfig import net.corda.testing.ALICE_NAME import net.corda.testing.internal.IntegrationTestSchemas -import net.corda.testing.node.internal.NodeBasedTest import net.corda.testing.internal.toDatabaseSchemaName +import net.corda.testing.node.internal.NodeBasedTest import org.apache.activemq.artemis.api.core.ActiveMQSecurityException import org.apache.shiro.authc.credential.DefaultPasswordService import org.junit.After @@ -42,13 +38,7 @@ class AuthDBTests : NodeBasedTest() { companion object { @ClassRule @JvmField val databaseSchemas = IntegrationTestSchemas(ALICE_NAME.toDatabaseSchemaName()) - } - private lateinit var node: StartedNode - private lateinit var client: CordaRPCClient - private lateinit var db: UsersDB - - companion object { private val cacheExpireAfterSecs: Long = 1 @JvmStatic @@ -56,6 +46,10 @@ class AuthDBTests : NodeBasedTest() { fun encFormats() = arrayOf(PasswordEncryption.NONE, PasswordEncryption.SHIRO_1_CRYPT) } + private lateinit var node: StartedNode + private lateinit var client: CordaRPCClient + private lateinit var db: UsersDB + @Parameterized.Parameter lateinit var passwordEncryption: PasswordEncryption diff --git a/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt b/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt index d32a24fabd..3ec641e49f 100644 --- a/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt +++ b/node/src/integration-test/kotlin/net/corda/node/SSHServerTest.kt @@ -14,21 +14,19 @@ import net.corda.core.utilities.unwrap import net.corda.node.services.Permissions.Companion.startFlow import net.corda.nodeapi.internal.config.User import net.corda.testing.ALICE_NAME +import net.corda.testing.driver.driver import net.corda.testing.internal.IntegrationTest import net.corda.testing.internal.IntegrationTestSchemas -import net.corda.testing.driver.driver import net.corda.testing.internal.toDatabaseSchemaName import org.assertj.core.api.Assertions.assertThat import org.bouncycastle.util.io.Streams import org.junit.ClassRule +import org.junit.Ignore import org.junit.Test import java.net.ConnectException import java.util.regex.Pattern import kotlin.test.assertTrue import kotlin.test.fail -import org.assertj.core.api.Assertions.assertThat -import org.junit.Ignore -import java.util.regex.Pattern class SSHServerTest : IntegrationTest() { companion object {