Выпуск WDTT Plus v14
This commit is contained in:
1 parent
10bf9d6f25
commit
10c6939b2a
56 files changed
+7226
-814
No files matched your search
@@ -50,6 +50,46 @@ class SshAuthenticationTest {
|
||||
assertFalse(keyMode.allowPasswordAuthentication)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun serverBootstrapAcceptsPasswordOrValidPrivateKeyFromDeploy() {
|
||||
assertTrue(
|
||||
sshProfileAccessStatus(
|
||||
host = "server.example",
|
||||
authMode = "password",
|
||||
password = "secret",
|
||||
privateKey = "",
|
||||
).available
|
||||
)
|
||||
assertTrue(
|
||||
sshProfileAccessStatus(
|
||||
host = "server.example",
|
||||
authMode = "key",
|
||||
password = "",
|
||||
privateKey = openSshKey,
|
||||
).available
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun serverBootstrapExplainsMissingOrInvalidDeployAccess() {
|
||||
val missingHost = sshProfileAccessStatus("", "password", "secret", "")
|
||||
assertFalse(missingHost.available)
|
||||
assertTrue(missingHost.unavailableReason.contains("адрес сервера"))
|
||||
|
||||
val missingPassword = sshProfileAccessStatus("server.example", "password", "", "")
|
||||
assertFalse(missingPassword.available)
|
||||
assertTrue(missingPassword.unavailableReason.contains("SSH-пароль"))
|
||||
|
||||
val invalidKey = sshProfileAccessStatus(
|
||||
host = "server.example",
|
||||
authMode = "key",
|
||||
password = "",
|
||||
privateKey = "ssh-ed25519 AAAA public-only",
|
||||
)
|
||||
assertFalse(invalidKey.available)
|
||||
assertTrue(invalidKey.unavailableReason.contains("приватный SSH-ключ"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun ed25519UsesBundledAndroidCompatibleImplementation() {
|
||||
configureJschEdDsaCompatibility()
|
||||
|
||||
Reference in new issue
Block a user