fix tests in pipeline
This commit is contained in:
parent
e7c2c73907
commit
ac6d989bb2
2 changed files with 4 additions and 4 deletions
|
@ -23,6 +23,7 @@ internal class FilesystemKtTest {
|
||||||
fun test_createFile_locally() {
|
fun test_createFile_locally() {
|
||||||
// given
|
// given
|
||||||
val prov = testLocal()
|
val prov = testLocal()
|
||||||
|
prov.createDir("tmp")
|
||||||
|
|
||||||
// when
|
// when
|
||||||
val filename = "tmp/testfile9"
|
val filename = "tmp/testfile9"
|
||||||
|
|
|
@ -1,22 +1,20 @@
|
||||||
package org.domaindrivenarchitecture.provs.server.infrastructure
|
package org.domaindrivenarchitecture.provs.server.infrastructure
|
||||||
|
|
||||||
import org.domaindrivenarchitecture.provs.framework.core.processors.ContainerStartMode
|
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.createDirs
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.createDirs
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileContainsText
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileContainsText
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
||||||
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
|
||||||
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
|
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
|
||||||
|
import org.junit.jupiter.api.Assertions.assertTrue
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions.*
|
|
||||||
|
|
||||||
internal class NetworkKtTest {
|
internal class NetworkKtTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ContainerTest
|
@ContainerTest
|
||||||
fun test_provisionNetwork() {
|
fun test_provisionNetwork() {
|
||||||
// given
|
// given
|
||||||
val p = defaultTestContainer(ContainerStartMode.CREATE_NEW_KILL_EXISTING)
|
val p = defaultTestContainer()
|
||||||
p.task {
|
p.task {
|
||||||
aptInstall("dbus netplan.io")
|
aptInstall("dbus netplan.io")
|
||||||
createDirs("/etc/netplan", sudo = true)
|
createDirs("/etc/netplan", sudo = true)
|
||||||
|
@ -24,6 +22,7 @@ internal class NetworkKtTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
// when
|
// when
|
||||||
|
@Suppress("UNUSED_VARIABLE") // see comments below: about netplan not working in unprivileged container++++
|
||||||
val res = p.provisionNetwork( "192.168.5.1", loopbackIpv6 = "fc00::5:1")
|
val res = p.provisionNetwork( "192.168.5.1", loopbackIpv6 = "fc00::5:1")
|
||||||
|
|
||||||
// then
|
// then
|
||||||
|
|
Loading…
Reference in a new issue