niumy0701 commented on code in PR #17726:
URL:
https://github.com/apache/dolphinscheduler/pull/17726#discussion_r2562560802
##########
dolphinscheduler-task-plugin/dolphinscheduler-task-sagemaker/src/test/java/org/apache/dolphinscheduler/plugin/task/sagemaker/SagemakerTaskTest.java:
##########
@@ -139,4 +145,33 @@ private String buildParameters() {
return JSONUtils.toJsonString(parameters);
}
+
+ @Test
+ public void testTrackApplicationStatus_InitPipelineIdThrowsException()
throws Exception {
+ doThrow(new TaskException("sagemaker applicationID is
null")).when(sagemakerTask).initPipelineId();
+
+ TaskException exception = assertThrows(TaskException.class, () -> {
+ sagemakerTask.trackApplicationStatus();
+ });
+
+ assertEquals("sagemaker applicationID is null",
exception.getMessage());
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]