[skip ci] disable very long running tests for desktop setup and remove 1 test
This commit is contained in:
parent
0d66421506
commit
e35caca49a
2 changed files with 1 additions and 29 deletions
|
@ -1,6 +1,5 @@
|
||||||
package org.domaindrivenarchitecture.provs.desktop.domain
|
package org.domaindrivenarchitecture.provs.desktop.domain
|
||||||
|
|
||||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.getConfig
|
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.ProgressType
|
import org.domaindrivenarchitecture.provs.framework.core.ProgressType
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.docker.provideContainer
|
import org.domaindrivenarchitecture.provs.framework.core.docker.provideContainer
|
||||||
|
@ -46,6 +45,7 @@ internal class DesktopServiceKtTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ExtensiveContainerTest
|
@ExtensiveContainerTest
|
||||||
|
@Disabled("Takes very long, enable if you want to test a desktop setup")
|
||||||
fun provisionDesktop() {
|
fun provisionDesktop() {
|
||||||
// given
|
// given
|
||||||
val prov = defaultTestContainer()
|
val prov = defaultTestContainer()
|
||||||
|
@ -87,28 +87,6 @@ internal class DesktopServiceKtTest {
|
||||||
// then
|
// then
|
||||||
assertTrue(res.success)
|
assertTrue(res.success)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ExtensiveContainerTest
|
|
||||||
fun provisionDesktopFromConfigFile() {
|
|
||||||
// given
|
|
||||||
val prov = defaultTestContainer()
|
|
||||||
|
|
||||||
// when
|
|
||||||
// in order to test DesktopType.OFFICE: fix installing libreoffice for a fresh container as it hangs the first time but succeeds 2nd time
|
|
||||||
val config = getConfig("src/test/resources/desktop-config-example.json")
|
|
||||||
val res = prov.provisionDesktop(
|
|
||||||
DesktopType.BASIC,
|
|
||||||
config.ssh?.keyPair(),
|
|
||||||
config.gpg?.keyPair(),
|
|
||||||
config.gitUserName,
|
|
||||||
config.gitEmail,
|
|
||||||
onlyModules = null
|
|
||||||
)
|
|
||||||
|
|
||||||
// then
|
|
||||||
assertTrue(res.success)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"ssh": null,
|
|
||||||
"gpg": null,
|
|
||||||
"gitUserName": "mygitusername",
|
|
||||||
"gitEmail": "my@git.email"
|
|
||||||
}
|
|
Loading…
Reference in a new issue