add more tags extensivecontainertest & fix downloadFromURL_local_file_with_incorrect_checksum
This commit is contained in:
parent
63c207c2e7
commit
c9c4a31144
6 changed files with 24 additions and 13 deletions
|
@ -4,8 +4,9 @@
|
||||||
<option name="PACKAGE_NAME" value="org" />
|
<option name="PACKAGE_NAME" value="org" />
|
||||||
<option name="MAIN_CLASS_NAME" value="" />
|
<option name="MAIN_CLASS_NAME" value="" />
|
||||||
<option name="METHOD_NAME" value="" />
|
<option name="METHOD_NAME" value="" />
|
||||||
<option name="TEST_OBJECT" value="package" />
|
<option name="TEST_OBJECT" value="tags" />
|
||||||
<option name="VM_PARAMETERS" />
|
<option name="VM_PARAMETERS" value="-DexcludeTags="extensivecontainertest"" />
|
||||||
|
<tag value="!extensivecontainertest" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Make" enabled="true" />
|
<option name="Make" enabled="true" />
|
||||||
</method>
|
</method>
|
||||||
|
|
|
@ -2,12 +2,12 @@ package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||||||
|
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
||||||
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.ExtensiveContainerTest
|
||||||
import org.junit.jupiter.api.Assertions.assertTrue
|
import org.junit.jupiter.api.Assertions.assertTrue
|
||||||
|
|
||||||
internal class BinariesC4kKtTest {
|
internal class BinariesC4kKtTest {
|
||||||
|
|
||||||
@ContainerTest
|
@ExtensiveContainerTest
|
||||||
fun downloadC4kBinaries() {
|
fun downloadC4kBinaries() {
|
||||||
// when
|
// when
|
||||||
val res = defaultTestContainer().installBinariesC4k()
|
val res = defaultTestContainer().installBinariesC4k()
|
||||||
|
|
|
@ -2,12 +2,12 @@ package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||||||
|
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
||||||
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.ExtensiveContainerTest
|
||||||
import org.junit.jupiter.api.Assertions.assertTrue
|
import org.junit.jupiter.api.Assertions.assertTrue
|
||||||
|
|
||||||
internal class BinariesProvsKtTest {
|
internal class BinariesProvsKtTest {
|
||||||
|
|
||||||
@ContainerTest
|
@ExtensiveContainerTest
|
||||||
fun installBinariesProvs() {
|
fun installBinariesProvs() {
|
||||||
// given
|
// given
|
||||||
val prov = defaultTestContainer()
|
val prov = defaultTestContainer()
|
||||||
|
|
|
@ -6,15 +6,12 @@ import org.domaindrivenarchitecture.provs.desktop.domain.provisionWorkplaceSubmo
|
||||||
import org.domaindrivenarchitecture.provs.desktop.infrastructure.getConfig
|
import org.domaindrivenarchitecture.provs.desktop.infrastructure.getConfig
|
||||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
||||||
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.ExtensiveContainerTest
|
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||||
import org.junit.jupiter.api.Assertions.assertTrue
|
import org.junit.jupiter.api.Assertions.assertTrue
|
||||||
import org.junit.jupiter.api.Test
|
|
||||||
|
|
||||||
internal class ProvisionWorkplaceKtTest {
|
internal class ProvisionWorkplaceKtTest {
|
||||||
|
|
||||||
@Test
|
@ExtensiveContainerTest
|
||||||
@ContainerTest
|
|
||||||
fun provisionWorkplace() {
|
fun provisionWorkplace() {
|
||||||
// given
|
// given
|
||||||
val a = defaultTestContainer()
|
val a = defaultTestContainer()
|
||||||
|
@ -53,8 +50,7 @@ internal class ProvisionWorkplaceKtTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@ExtensiveContainerTest
|
||||||
@ContainerTest
|
|
||||||
fun provision_submodule_provsbinaries() {
|
fun provision_submodule_provsbinaries() {
|
||||||
// given
|
// given
|
||||||
val prov = defaultTestContainer()
|
val prov = defaultTestContainer()
|
||||||
|
|
|
@ -62,7 +62,7 @@ internal class WebKtTest {
|
||||||
a.createFile("/tmp/" + srcFile, "hello")
|
a.createFile("/tmp/" + srcFile, "hello")
|
||||||
|
|
||||||
// when
|
// when
|
||||||
val res = a.downloadFromURL("file:///tmp/" + srcFile, targetFile, "tmp", sha256sum = "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824WRONG")
|
val res = a.downloadFromURL("file:///tmp/" + srcFile, targetFile, "tmp", sha256sum = "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824WRONG", overwrite = true)
|
||||||
|
|
||||||
// then
|
// then
|
||||||
val res2 = a.fileExists("tmp/$targetFile")
|
val res2 = a.fileExists("tmp/$targetFile")
|
||||||
|
|
14
testextensive.run/testextensive.run.xml
Normal file
14
testextensive.run/testextensive.run.xml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="testextensive" type="JUnit" factoryName="JUnit">
|
||||||
|
<module name="provs.test" />
|
||||||
|
<option name="PACKAGE_NAME" value="org" />
|
||||||
|
<option name="MAIN_CLASS_NAME" value="" />
|
||||||
|
<option name="METHOD_NAME" value="" />
|
||||||
|
<option name="TEST_OBJECT" value="package" />
|
||||||
|
<option name="VM_PARAMETERS" />
|
||||||
|
<tag value="!extensivecontainertest" />
|
||||||
|
<method v="2">
|
||||||
|
<option name="Make" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
</component>
|
Loading…
Reference in a new issue