add upgrade to firefox installation and refactor FirefoxKtTest

This commit is contained in:
az 2023-04-21 15:57:50 +02:00
parent d59154ddf6
commit 2393844ef4
2 changed files with 9 additions and 6 deletions

View file

@ -38,4 +38,5 @@ fun Prov.installFirefox() = task {
)
aptInstall("firefox")
cmd("apt upgrade -y firefox", sudo = true)
}

View file

@ -9,13 +9,15 @@ internal class FirefoxKtTest {
@ExtensiveContainerTest
fun installFirefox() {
// when
val res = defaultTestContainer().installFirefox()
defaultTestContainer().session {
// when
val res = installFirefox()
// then
assertTrue(res.success)
// then
assertTrue(res.success)
val ffIsInstalled = defaultTestContainer().isPackageInstalled("firefox")
assertTrue(ffIsInstalled)
val ffIsInstalled = isPackageInstalled("firefox")
assertTrue(ffIsInstalled)
}
}
}