add upgrade to firefox installation and refactor FirefoxKtTest
This commit is contained in:
parent
d59154ddf6
commit
2393844ef4
2 changed files with 9 additions and 6 deletions
|
@ -38,4 +38,5 @@ fun Prov.installFirefox() = task {
|
||||||
)
|
)
|
||||||
|
|
||||||
aptInstall("firefox")
|
aptInstall("firefox")
|
||||||
|
cmd("apt upgrade -y firefox", sudo = true)
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,13 +9,15 @@ internal class FirefoxKtTest {
|
||||||
|
|
||||||
@ExtensiveContainerTest
|
@ExtensiveContainerTest
|
||||||
fun installFirefox() {
|
fun installFirefox() {
|
||||||
|
defaultTestContainer().session {
|
||||||
// when
|
// when
|
||||||
val res = defaultTestContainer().installFirefox()
|
val res = installFirefox()
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertTrue(res.success)
|
assertTrue(res.success)
|
||||||
|
|
||||||
val ffIsInstalled = defaultTestContainer().isPackageInstalled("firefox")
|
val ffIsInstalled = isPackageInstalled("firefox")
|
||||||
assertTrue(ffIsInstalled)
|
assertTrue(ffIsInstalled)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue