diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java index 58f03821f35..1ff637a025c 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java @@ -162,7 +162,7 @@ public class TestCaseRepository extends EntityRepository { // set the test case result state in the test case entity if the state has changed if (!Objects.equals(original, updated)) { TestCase testCase = - Entity.getEntityByName(TEST_CASE, fqn, "testDefinition", Include.NON_DELETED); + Entity.getEntityByName(TEST_CASE, fqn, "testDefinition,testSuites", Include.NON_DELETED); setTestCaseResult(testCase, updated, false); } @@ -314,7 +314,8 @@ public class TestCaseRepository extends EntityRepository { // Validate the request content TestCase testCase = findByName(fqn, Include.NON_DELETED); ArrayList fields = - new ArrayList<>(List.of("testDefinition", FIELD_OWNER, FIELD_TAGS, TEST_SUITE_FIELD)); + new ArrayList<>( + List.of("testDefinition", FIELD_OWNER, FIELD_TAGS, TEST_SUITE_FIELD, "testSuites")); // set the test case resolution status reference if test failed, by either // creating a new incident or returning the stateId of an unresolved incident @@ -426,7 +427,7 @@ public class TestCaseRepository extends EntityRepository { String updatedBy, String fqn, Long timestamp) { // Validate the request content TestCase testCase = - Entity.getEntityByName(TEST_CASE, fqn, "testDefinition", Include.NON_DELETED); + Entity.getEntityByName(TEST_CASE, fqn, "testDefinition,testSuites", Include.NON_DELETED); TestCaseResult storedTestCaseResult = JsonUtils.readValue( daoCollection