diff --git a/theodolite-quarkus/src/test/kotlin/theodolite/ResourceLimitPatcherTest.kt b/theodolite-quarkus/src/test/kotlin/theodolite/ResourceLimitPatcherTest.kt index 82e4bc5d77f3f35d217c56a377513c0e7d329170..4f4308a35df598dc4932a8ac89a6c07fb967e416 100644 --- a/theodolite-quarkus/src/test/kotlin/theodolite/ResourceLimitPatcherTest.kt +++ b/theodolite-quarkus/src/test/kotlin/theodolite/ResourceLimitPatcherTest.kt @@ -21,7 +21,7 @@ import theodolite.util.PatcherDefinition */ @QuarkusTest class ResourceLimitPatcherTest { - val testPath = "./src/main/resources/testYaml/" + val testPath = "./src/test/resources/" val loader = K8sResourceLoader(DefaultKubernetesClient().inNamespace("")) val patcherFactory = PatcherFactory() diff --git a/theodolite-quarkus/src/test/kotlin/theodolite/ResourceRequestPatcherTest.kt b/theodolite-quarkus/src/test/kotlin/theodolite/ResourceRequestPatcherTest.kt index 3cd6b012f09c5471b1b011b5cd03e61a0fab1c4e..7214422705a64f507a196a4b5f9b334665407422 100644 --- a/theodolite-quarkus/src/test/kotlin/theodolite/ResourceRequestPatcherTest.kt +++ b/theodolite-quarkus/src/test/kotlin/theodolite/ResourceRequestPatcherTest.kt @@ -21,7 +21,7 @@ import theodolite.util.PatcherDefinition */ @QuarkusTest class ResourceRequestPatcherTest { - val testPath = "./src/main/resources/testYaml/" + val testPath = "./src/test/resources/" val loader = K8sResourceLoader(DefaultKubernetesClient().inNamespace("")) val patcherFactory = PatcherFactory() diff --git a/theodolite-quarkus/src/test/kotlin/theodolite/util/IOHandlerTest.kt b/theodolite-quarkus/src/test/kotlin/theodolite/util/IOHandlerTest.kt index 062994df504d534a1de8dcb70479555029054171..6984c3935da3d26f95565b758547a98e0eeb155f 100644 --- a/theodolite-quarkus/src/test/kotlin/theodolite/util/IOHandlerTest.kt +++ b/theodolite-quarkus/src/test/kotlin/theodolite/util/IOHandlerTest.kt @@ -79,7 +79,7 @@ internal class IOHandlerTest { ) } - // Test the function `getResultFolderString + // Test the function `getResultFolderString` @Test @ClearEnvironmentVariable.ClearEnvironmentVariables( @@ -90,6 +90,16 @@ internal class IOHandlerTest { assertEquals("",IOHandler().getResultFolderURL()) } + + @Test() + @SetEnvironmentVariable.SetEnvironmentVariables( + SetEnvironmentVariable(key = "RESULTS_FOLDER", value = "./src/test/resources"), + SetEnvironmentVariable(key = "CREATE_RESULTS_FOLDER", value = "false") + ) + fun testGetResultFolderURL_FolderExist() { + assertEquals("./src/test/resources/", IOHandler().getResultFolderURL()) + } + @Test() @SetEnvironmentVariable.SetEnvironmentVariables( SetEnvironmentVariable(key = "RESULTS_FOLDER", value = "$FOLDER_URL-0"), diff --git a/theodolite-quarkus/src/main/resources/testYaml/cpu-deployment.yaml b/theodolite-quarkus/src/test/resources/cpu-deployment.yaml similarity index 100% rename from theodolite-quarkus/src/main/resources/testYaml/cpu-deployment.yaml rename to theodolite-quarkus/src/test/resources/cpu-deployment.yaml diff --git a/theodolite-quarkus/src/main/resources/testYaml/cpu-memory-deployment.yaml b/theodolite-quarkus/src/test/resources/cpu-memory-deployment.yaml similarity index 100% rename from theodolite-quarkus/src/main/resources/testYaml/cpu-memory-deployment.yaml rename to theodolite-quarkus/src/test/resources/cpu-memory-deployment.yaml diff --git a/theodolite-quarkus/src/main/resources/testYaml/memory-deployment.yaml b/theodolite-quarkus/src/test/resources/memory-deployment.yaml similarity index 100% rename from theodolite-quarkus/src/main/resources/testYaml/memory-deployment.yaml rename to theodolite-quarkus/src/test/resources/memory-deployment.yaml diff --git a/theodolite-quarkus/src/main/resources/testYaml/no-resources-deployment.yaml b/theodolite-quarkus/src/test/resources/no-resources-deployment.yaml similarity index 100% rename from theodolite-quarkus/src/main/resources/testYaml/no-resources-deployment.yaml rename to theodolite-quarkus/src/test/resources/no-resources-deployment.yaml