[skip ci] remove redundant test tags

This commit is contained in:
ansgarz 2022-06-10 12:32:57 +02:00
parent 83f9a0e40e
commit 1384b6bbcf
17 changed files with 3 additions and 43 deletions

View file

@ -4,11 +4,9 @@ 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.Test
internal class VSCodeKtTest {
@Test
@ExtensiveContainerTest
fun provisionAdditionalTools() {
// given

View file

@ -33,7 +33,6 @@ internal class ProvTest {
assertTrue(res)
}
@Test
@ContainerTest
fun sh() {
// given
@ -52,7 +51,6 @@ internal class ProvTest {
assertTrue(res)
}
@Test
@ContainerTest
@NonCi
fun sh_with_dir_and_sudo() {

View file

@ -20,7 +20,6 @@ internal class UtilsKtTest {
assertEquals("test_getCallingMethodName", s)
}
@Test
@ContainerTest
fun runCmdInContainer() {
// when

View file

@ -8,11 +8,9 @@ import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.domaindrivenarchitecture.provs.test.tags.NonCi
import org.domaindrivenarchitecture.provs.test.testLocal
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
internal class UbuntuHostDockerKtTest {
@Test
@NonCi
@ContainerTest
fun runAndCheckAndExitContainer() {

View file

@ -78,7 +78,6 @@ internal class UbuntuProvTest {
assertTrue(res2.out?.trim() == "echoed")
}
@Test
@ContainerTest
@NonCi
fun test_user_cannot_sudo_without_password() {

View file

@ -5,11 +5,9 @@ import org.domaindrivenarchitecture.provs.test.defaultTestContainer
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
internal class ContainerProcessorTest {
@Test
@ContainerTest
fun cmd_works_with_echo() {
@ -26,7 +24,6 @@ internal class ContainerProcessorTest {
}
@Test
@ContainerTest
fun cmdNoLog_works_with_echo() {
// given

View file

@ -4,13 +4,11 @@ import org.domaindrivenarchitecture.provs.framework.core.platforms.SHELL
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.domaindrivenarchitecture.provs.test.testDockerWithSudo
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
val DEFAULT_START_MODE_TEST_CONTAINER = ContainerStartMode.USE_RUNNING_ELSE_CREATE
class ContainerUbuntuHostProcessorTest {
@Test
@ContainerTest
fun test_execution() {
// given

View file

@ -23,7 +23,6 @@ import org.junit.jupiter.api.Assertions.assertFalse
internal class GopassKtTest {
@ContainerTest
@Test
fun test_configureGopass_fails_with_path_starting_with_tilde() {
// when
val res = defaultTestContainer().task {

View file

@ -218,7 +218,6 @@ internal class FilesystemKtTest {
}
@Test
@ContainerTest
fun userHome() {
// given

View file

@ -7,12 +7,10 @@ import org.domaindrivenarchitecture.provs.test.defaultTestContainer
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class GitKtTest {
@Test
@ContainerTest
fun trustGitServers(){
// given
@ -31,7 +29,6 @@ internal class GitKtTest {
assertTrue(a.isHostKnown("gitlab.com"), "gitlab.com does not seem to be a known host")
}
@Test
@ExtensiveContainerTest
fun gitClone() {
// given

View file

@ -5,13 +5,11 @@ import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
internal class InstallKtTest {
@ContainerTest
@Test
fun aptInstall_installsPackage() {
// given
val a = defaultTestContainer()
@ -24,7 +22,6 @@ internal class InstallKtTest {
}
@ContainerTest
@Test
fun aptInstall_ignores_packages_already_installed() {
// given
val a = defaultTestContainer()
@ -38,7 +35,6 @@ internal class InstallKtTest {
}
@ContainerTest
@Test
@Disabled // run manually if needed;
// todo: replace zim by a smaller repo
fun aptInstallFromPpa_installsPackage() {

View file

@ -9,11 +9,9 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.privateGPGSnakeo
import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.publicGPGSnakeoilKey
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
internal class GpgKtTest {
@Test
@ContainerTest
fun gpgFingerprint_returnsCorrectFingerprint() {
// given
@ -29,7 +27,6 @@ internal class GpgKtTest {
}
@Test
@ContainerTest
fun configureGpgKeys() {
// given
@ -43,7 +40,6 @@ internal class GpgKtTest {
}
@Test
@ContainerTest
fun configureGpgKeysTrusted() {
// given
@ -59,7 +55,6 @@ internal class GpgKtTest {
}
@Test
@ContainerTest
fun configureGpgKeysIsIdempotent() {
// given

View file

@ -6,13 +6,10 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.privateSSHSnakeo
import org.domaindrivenarchitecture.provs.framework.ubuntu.keys.publicSSHSnakeoilKey
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Assertions.assertTrue
internal class SshKtTest {
@Test
@ContainerTest
fun configureSshKeys() {
// given

View file

@ -1,7 +1,5 @@
package org.domaindrivenarchitecture.provs.framework.ubuntu.user
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.createDir
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.createFile
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileContent
@ -11,15 +9,15 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.user.base.configureUs
import org.domaindrivenarchitecture.provs.framework.ubuntu.user.base.createUser
import org.domaindrivenarchitecture.provs.framework.ubuntu.user.base.userExists
import org.domaindrivenarchitecture.provs.framework.ubuntu.user.base.userIsInGroupSudo
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
internal class ProvisionUserKtTest {
@Test
@ExtensiveContainerTest
fun configureUser() {
// given
@ -39,7 +37,6 @@ internal class ProvisionUserKtTest {
assertTrue(res.success)
}
@Test
@ContainerTest
fun createUser() {
// given
@ -60,7 +57,6 @@ internal class ProvisionUserKtTest {
assertEquals("newdummykey", a.fileContent("/home/$newUser/.ssh/authorized_keys", sudo = true))
}
@Test
@ContainerTest
fun createUserWithSudo() {
// given

View file

@ -13,7 +13,6 @@ internal class UtilsKtTest {
val a = Prov.defaultInstance()
@ContainerTest
@Test
fun printToShell_escapes_String_successfully() {
// when
val testString = "test if newline \n and apostrophe's ' \" and special chars $$%[]\\ äöüß \$variable and tabs \t are handled correctly"
@ -54,7 +53,6 @@ internal class UtilsKtTest {
assertEquals(testMultiLineString(), resMl)
}
@Test
@ContainerTest
fun echoCommandForText_in_ubuntu_container() {
// given

View file

@ -10,11 +10,9 @@ import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.domaindrivenarchitecture.provs.test.tags.NonCi
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
internal class K3dKtTest {
@Test
@Disabled // remove line and execute manually as this test may take several minutes
@ContainerTest
@NonCi

View file

@ -11,11 +11,9 @@ import org.domaindrivenarchitecture.provs.server.domain.k3s.Node
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.Test
internal class NetworkKtTest {
@Test
@ExtensiveContainerTest
fun test_provisionNetwork() {
// given