move tests to correct folder
This commit is contained in:
parent
1384b6bbcf
commit
205795c5f8
8 changed files with 31 additions and 46 deletions
|
@ -25,7 +25,7 @@ fun Prov.installVSC(vararg options: String) = task {
|
|||
installExtensionsCodium(pythonExtensions)
|
||||
}
|
||||
|
||||
provisionAdditionalTools()
|
||||
provisionAdditionalToolsForVSCode()
|
||||
}
|
||||
|
||||
|
||||
|
@ -84,7 +84,7 @@ private fun Prov.installExtensionsCodium(extensions: List<String>) = optional {
|
|||
}
|
||||
|
||||
|
||||
internal fun Prov.provisionAdditionalTools() = task {
|
||||
internal fun Prov.provisionAdditionalToolsForVSCode() = task {
|
||||
// Joker
|
||||
val version = "0.18.0"
|
||||
cmd("curl -Lo joker-${version}-linux-amd64.zip https://github.com/candid82/joker/releases/download/v${version}/joker-${version}-linux-amd64.zip")
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package org.domaindrivenarchitecture.provs.framework.extensions.workplace
|
||||
package org.domaindrivenarchitecture.provs.desktop.domain
|
||||
|
||||
import org.domaindrivenarchitecture.provs.desktop.domain.DesktopType
|
||||
import org.domaindrivenarchitecture.provs.desktop.domain.provisionWorkplace
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.getConfig
|
||||
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
|
@ -1,6 +1,5 @@
|
|||
package org.domaindrivenarchitecture.provs.framework.extensions.workplace.base
|
||||
package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||||
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.installFakturama
|
||||
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
|
@ -1,17 +1,11 @@
|
|||
package org.domaindrivenarchitecture.provs.framework.extensions.workplace.base
|
||||
package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||||
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.configureGopassBridgeJsonApi
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.downloadGopassBridge
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.installGopass
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.installGopassBridgeJsonApi
|
||||
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
||||
import org.domaindrivenarchitecture.provs.framework.core.ProvResult
|
||||
import org.domaindrivenarchitecture.provs.framework.core.Secret
|
||||
import org.domaindrivenarchitecture.provs.framework.core.docker.exitAndRmContainer
|
||||
import org.domaindrivenarchitecture.provs.framework.core.local
|
||||
import org.domaindrivenarchitecture.provs.framework.core.processors.ContainerStartMode
|
||||
import org.domaindrivenarchitecture.provs.framework.extensions.test_keys.privateGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.framework.extensions.test_keys.publicGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.KeyPair
|
||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.base.configureGpgKeys
|
||||
|
@ -19,6 +13,8 @@ import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
|||
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||
import org.domaindrivenarchitecture.provs.test.tags.NonCi
|
||||
import org.domaindrivenarchitecture.provs.test_keys.privateGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.test_keys.publicGPGSnakeoilKey
|
||||
import org.junit.jupiter.api.Assertions.assertFalse
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
import org.junit.jupiter.api.Disabled
|
|
@ -1,4 +1,4 @@
|
|||
package org.domaindrivenarchitecture.provs.framework.extensions.workplace.base
|
||||
package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||||
|
||||
import org.domaindrivenarchitecture.provs.framework.core.Secret
|
||||
import org.domaindrivenarchitecture.provs.framework.core.remote
|
||||
|
@ -12,10 +12,9 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.secret.secretSources.
|
|||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.domaindrivenarchitecture.provs.framework.extensions.test_keys.privateGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.framework.extensions.test_keys.publicGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.test_keys.privateGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.test_keys.publicGPGSnakeoilKey
|
||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.*
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.*
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||
import org.junit.jupiter.api.Assertions.assertFalse
|
||||
|
|
@ -4,6 +4,8 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInsta
|
|||
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
internal class VSCodeKtTest {
|
||||
|
||||
|
@ -13,7 +15,21 @@ internal class VSCodeKtTest {
|
|||
defaultTestContainer().aptInstall("curl unzip")
|
||||
|
||||
// when
|
||||
val res = defaultTestContainer().provisionAdditionalTools()
|
||||
val res = defaultTestContainer().provisionAdditionalToolsForVSCode()
|
||||
|
||||
// then
|
||||
assertTrue(res.success)
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled("Test currently not working, needs fix. VSC is installed by snapd which is not currently supported to run inside docker")
|
||||
fun installVSC() {
|
||||
// given
|
||||
val a = defaultTestContainer()
|
||||
a.aptInstall("xvfb libgbm-dev libasound2")
|
||||
|
||||
// when
|
||||
val res = a.installVSC("python", "clojure")
|
||||
|
||||
// then
|
||||
assertTrue(res.success)
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
package org.domaindrivenarchitecture.provs.framework.extensions.workplace.base
|
||||
|
||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.installVSC
|
||||
|
||||
|
||||
internal class VSCodeKtTest {
|
||||
|
||||
@Test
|
||||
@Disabled("Test currently not working, needs fix. VSC is installed by snapd which is not currently supported to run inside docker")
|
||||
fun installVSC() {
|
||||
// given
|
||||
val a = defaultTestContainer()
|
||||
a.aptInstall("xvfb libgbm-dev libasound2")
|
||||
|
||||
// when
|
||||
val res = a.installVSC("python", "clojure")
|
||||
|
||||
// then
|
||||
assertTrue(res.success)
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package org.domaindrivenarchitecture.provs.framework.extensions.test_keys
|
||||
package org.domaindrivenarchitecture.provs.test_keys
|
||||
|
||||
|
||||
fun publicGPGSnakeoilKey(): String {
|
||||
|
@ -129,10 +129,13 @@ i+XV3Dazj3nq/DxUB0neLU/r1afAEiqZAkI=
|
|||
-----END PGP PRIVATE KEY BLOCK-----""".trimIndent()
|
||||
}
|
||||
|
||||
|
||||
@Suppress("unused")
|
||||
fun publicSSHSnakeoilKey(): String {
|
||||
return """ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOtQOq8a/Z7SdZVPrh+Icaq5rr+Qg1TZP4IPuRoFgfujUztQ2dy5DfTEbabJ0qHyo+PKwBDQorVohrW7CwvCEVQQh2NLuGgnukBN2ut5Lam7a/fZBoMjAyTvD4bXyEsUr/Bl5CLoBDkKM0elUxsc19ndzSofnDWeGyQjJIWlkNkVk/ybErAnIHVE+D+g3UxwA+emd7BF72RPqdVN39Eu4ntnxYzX0eepc8rkpFolVn6+Ai4CYHE4FaJ7bJ9WGPbwLuDl0pw/Cp3ps17cB+JlQfJ2spOq0tTVk+GcdGnt+mq0WaOnvVeQsGJ2O1HpY3VqQd1AsC2UOyHhAQ00pw7Pi9 snake@oil.com"""
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
fun privateSSHSnakeoilKey(): String {
|
||||
return """
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
Loading…
Reference in a new issue