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="MAIN_CLASS_NAME" value="" />
|
||||
<option name="METHOD_NAME" value="" />
|
||||
<option name="TEST_OBJECT" value="package" />
|
||||
<option name="VM_PARAMETERS" />
|
||||
<option name="TEST_OBJECT" value="tags" />
|
||||
<option name="VM_PARAMETERS" value="-DexcludeTags="extensivecontainertest"" />
|
||||
<tag value="!extensivecontainertest" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
|
|
|
@ -2,12 +2,12 @@ package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
|||
|
||||
import org.domaindrivenarchitecture.provs.framework.ubuntu.filesystem.base.fileExists
|
||||
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
|
||||
|
||||
internal class BinariesC4kKtTest {
|
||||
|
||||
@ContainerTest
|
||||
@ExtensiveContainerTest
|
||||
fun downloadC4kBinaries() {
|
||||
// when
|
||||
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.test.defaultTestContainer
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
|
||||
import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest
|
||||
import org.junit.jupiter.api.Assertions.assertTrue
|
||||
|
||||
internal class BinariesProvsKtTest {
|
||||
|
||||
@ContainerTest
|
||||
@ExtensiveContainerTest
|
||||
fun installBinariesProvs() {
|
||||
// given
|
||||
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.framework.ubuntu.filesystem.base.fileExists
|
||||
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.Test
|
||||
|
||||
internal class ProvisionWorkplaceKtTest {
|
||||
|
||||
@Test
|
||||
@ContainerTest
|
||||
@ExtensiveContainerTest
|
||||
fun provisionWorkplace() {
|
||||
// given
|
||||
val a = defaultTestContainer()
|
||||
|
@ -53,8 +50,7 @@ internal class ProvisionWorkplaceKtTest {
|
|||
}
|
||||
|
||||
|
||||
@Test
|
||||
@ContainerTest
|
||||
@ExtensiveContainerTest
|
||||
fun provision_submodule_provsbinaries() {
|
||||
// given
|
||||
val prov = defaultTestContainer()
|
||||
|
|
|
@ -62,7 +62,7 @@ internal class WebKtTest {
|
|||
a.createFile("/tmp/" + srcFile, "hello")
|
||||
|
||||
// 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
|
||||
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