Skip to content

Commit cf87de7

Browse files
committed
AC-2027: update workflow validator unit test
Signed-off-by: Sam Rooke <[email protected]>
1 parent b9b70a6 commit cf87de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/UnitTests/WorkflowManager.Tests/Validators/WorkflowValidatorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public async Task ValidateWorkflow_ValidatesAWorkflow_ReturnsErrorsAndHasCorrect
207207
{ "example", "value" },
208208
{ "cpu", "0.1" },
209209
{ "memory_gb", "0.1" },
210-
{ "gpu", "2" }
210+
{ "gpu_required", "2" }
211211
},
212212
TaskDestinations = new TaskDestination[]
213213
{
@@ -392,7 +392,7 @@ public async Task ValidateWorkflow_ValidatesAWorkflow_ReturnsErrorsAndHasCorrect
392392
var invalidArgoArg2 = "Task: 'test-argo-task' value '0.1' provided for argument 'memory_gb' is not valid. The value needs to be a whole number greater than 0.";
393393
Assert.Contains(invalidArgoArg2, errors);
394394

395-
var invalidArgoArg3 = "Task: 'test-argo-task' value '2' provided for argument 'gpu' is not valid. The value needs to be 'true' or 'false'.";
395+
var invalidArgoArg3 = "Task: 'test-argo-task' value '2' provided for argument 'gpu_required' is not valid. The value needs to be 'true' or 'false'.";
396396
Assert.Contains(invalidArgoArg3, errors);
397397

398398
var incorrectClinicalReviewValueFormat = $"Invalid Value property on input artifact 'Invalid Value Format' in task: 'test-clinical-review'. Incorrect format.";

0 commit comments

Comments
 (0)