Skip to content

Commit ae01973

Browse files
committed
fix test argo workflow builder
1 parent 6f49e87 commit ae01973

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

run/src/main/kotlin/com/cosmotech/run/workflow/argo/WorkflowBuilders.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ internal const val VOLUME_CLAIM_DATASETS_SUBPATH = "datasetsdir"
4444
internal const val VOLUME_CLAIM_PARAMETERS_SUBPATH = "parametersdir"
4545
internal const val VOLUME_CLAIM_OUTPUT_SUBPATH = "outputdir"
4646
internal const val VOLUME_CLAIM_TEMP_SUBPATH = "tempdir"
47+
internal const val VOLUME_COAL_PATH = "/mnt/coal"
4748

48-
private const val VOLUME_COAL_PATH = "/mnt/coal"
4949
private const val VOLUME_DATASETS_PATH = "/mnt/scenariorun-data"
5050
private const val VOLUME_PARAMETERS_PATH = "/mnt/scenariorun-parameters"
5151
private const val VOLUME_OUTPUT_PATH = "/pkg/share/Simulation/Output"

run/src/test/kotlin/com/cosmotech/run/workflow/argo/WorkflowBuildersTests.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@ class WorkflowBuildersTests {
481481
.name(VOLUME_CLAIM)
482482
.mountPath("/usr/tmp")
483483
.subPath(VOLUME_CLAIM_TEMP_SUBPATH),
484+
V1VolumeMount()
485+
.name("coal-config")
486+
.mountPath(VOLUME_COAL_PATH + "/coal-config.toml")
487+
.subPath("coal-config.toml")
484488
)
485489
assertEquals(expected, template.container?.volumeMounts)
486490
}

0 commit comments

Comments
 (0)