From 4762cc2f0485ca956cf9d78cb8173c9d795197f5 Mon Sep 17 00:00:00 2001 From: yanghaojia <2453883990@qq.com> Date: Mon, 27 Nov 2023 16:26:41 +0800 Subject: [PATCH] Fix typo in WorkflowTaskTypeConstraint --- .../conductor/validations/WorkflowTaskTypeConstraint.java | 4 ++-- .../conductor/validations/WorkflowTaskTypeConstraintTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraint.java b/core/src/main/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraint.java index 99d070985..493fd76b2 100644 --- a/core/src/main/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraint.java +++ b/core/src/main/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraint.java @@ -262,7 +262,7 @@ private boolean isDoWhileTaskValid( String message = String.format( PARAM_REQUIRED_STRING_FORMAT, - "loopExpression", + "loopCondition", TaskType.DO_WHILE, workflowTask.getName()); context.buildConstraintViolationWithTemplate(message).addConstraintViolation(); @@ -272,7 +272,7 @@ private boolean isDoWhileTaskValid( String message = String.format( PARAM_REQUIRED_STRING_FORMAT, - "loopover", + "loopOver", TaskType.DO_WHILE, workflowTask.getName()); context.buildConstraintViolationWithTemplate(message).addConstraintViolation(); diff --git a/core/src/test/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraintTest.java b/core/src/test/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraintTest.java index a1105ed72..a15393248 100644 --- a/core/src/test/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraintTest.java +++ b/core/src/test/java/com/netflix/conductor/validations/WorkflowTaskTypeConstraintTest.java @@ -170,10 +170,10 @@ public void testWorkflowTaskTypeDoWhile() { assertTrue( validationErrors.contains( - "loopExpression field is required for taskType: DO_WHILE taskName: encode")); + "loopCondition field is required for taskType: DO_WHILE taskName: encode")); assertTrue( validationErrors.contains( - "loopover field is required for taskType: DO_WHILE taskName: encode")); + "loopOver field is required for taskType: DO_WHILE taskName: encode")); } @Test